Mouse Wheel Zoom

Aug 25, 2009 at 3:13 PM

I've got a WPF app in PowerShell. I have a Grid with 1 Row and 2 Columns.

A textbox and NodeXL side by side.

When I mouse wheel to zoom, the control eventually takes up the entire form.

I am hoping there is a property I can set or embed the NodeXL control in another container to clip the region.

I have not worked this up in a C# app yet it could be a WPF PowerShell issue.


Aug 25, 2009 at 11:32 PM

It's not a PowerShell issue, it's a NodeXLControl issue.  I'll have to figure out the proper fix.  In the meantime, a short-term solution that worked in my tests is to put a DockPanel in column 0 with the DockPanel's Background set to some color, and then put the TextBox in the DockPanel.  Here is the XAML:

<Window x:Class="WpfApplication1.Window1"
    Title="Window1" Height="300" Width="300" xmlns:my="clr-namespace:Microsoft.NodeXL.Visualization.Wpf;assembly=Microsoft.NodeXL.Control.Wpf" Loaded="Window_Loaded">
    <Grid ShowGridLines="True">
            <RowDefinition />
            <ColumnDefinition />
            <ColumnDefinition />
        <my:NodeXLControl Grid.Column="1" Name="nodeXLControl1"  />
        <DockPanel Name="dockPanel1" Background="White">
            <TextBox Height="23" Name="textBox1" Width="120">TextBox</TextBox>