47 lines
2.7 KiB
XML
47 lines
2.7 KiB
XML
<UserControl x:Class="FieldVisualizer.Windows.UserControls.FieldViewer"
|
|
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
|
|
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
|
|
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
|
|
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
|
|
xmlns:local="clr-namespace:FieldVisualizer.Windows.UserControls"
|
|
mc:Ignorable="d"
|
|
d:DesignHeight="450" d:DesignWidth="800">
|
|
<Grid>
|
|
<Grid.ColumnDefinitions>
|
|
<ColumnDefinition/>
|
|
<ColumnDefinition Width="220"/>
|
|
</Grid.ColumnDefinitions>
|
|
<Grid>
|
|
<Grid.RowDefinitions>
|
|
<RowDefinition Height="30"/>
|
|
<RowDefinition/>
|
|
</Grid.RowDefinitions>
|
|
<StackPanel Orientation="Horizontal">
|
|
<Button x:Name="RebuildButton" Content="Rebuild" Command="{Binding RebuildCommand}"/>
|
|
<Button x:Name="ZoomInButton" Content="ZoomIn" Command="{Binding ZoomInCommand}"/>
|
|
<Button x:Name="ZoomOutButton" Content="ZoomOut" Command="{Binding ZoomOutCommand}"/>
|
|
<Button x:Name="ChangeColorMapButton" Content="ColorMap" Command="{Binding ChangeColorMapCommand}"/>
|
|
</StackPanel>
|
|
<ScrollViewer Name="WorkPlaneViewer" Grid.Row="1" HorizontalScrollBarVisibility="Visible">
|
|
<ScrollViewer.Background>
|
|
<LinearGradientBrush EndPoint="0.5,1" StartPoint="0.5,0">
|
|
<GradientStop Color="Black"/>
|
|
<GradientStop Color="White" Offset="1"/>
|
|
<GradientStop Color="#FF00EDFF" Offset="0"/>
|
|
</LinearGradientBrush>
|
|
</ScrollViewer.Background>
|
|
<Viewbox Name="WorkPlaneBox" Margin="10">
|
|
<Canvas Name="WorkPlaneCanvas"/>
|
|
</Viewbox>
|
|
</ScrollViewer>
|
|
</Grid>
|
|
<StackPanel Grid.Column="2">
|
|
<CheckBox x:Name="cbMinValueEnabled" Margin="3" Content="Minimum Value"/>
|
|
<TextBox x:Name="tbMinValue" Margin="20,3,3,3" IsEnabled="{Binding IsChecked, ElementName=cbMinValueEnabled}" Text="{Binding Path=UserValueRange.BottomValue}"/>
|
|
<CheckBox x:Name="cbMaxValueEnabled" Margin="3" Content="Maximum Value"/>
|
|
<TextBox x:Name="tbMaxValue" Margin="20,3,3,3" IsEnabled="{Binding IsChecked, ElementName=cbMaxValueEnabled}" Text="{Binding Path=UserValueRange.TopValue}"/>
|
|
<local:VerticalLegend x:Name="LegendViewer" Margin="3" Grid.Column="2"/>
|
|
</StackPanel>
|
|
</Grid>
|
|
</UserControl>
|