1ab69a9cf3
-aggiornato finestre con nuova egwbaselib
125 lines
6.2 KiB
XML
125 lines
6.2 KiB
XML
<EgtBEAMWALLCORE:OptimizerWindow x:Class="MachiningDbWindowV"
|
|
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
|
|
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
|
|
xmlns:sys="clr-namespace:System;assembly=mscorlib"
|
|
xmlns:EgtWPFLib5="clr-namespace:EgtWPFLib5;assembly=EgtWPFLib5"
|
|
xmlns:EgtBEAMWALLCORE="clr-namespace:EgtBEAMWALL.Core"
|
|
Title="{Binding Title}"
|
|
TitleBarHeight="30"
|
|
WindowStartupLocation="CenterOwner" ShowInTaskbar="False"
|
|
Style="{StaticResource OptimizerWindow.Dialog.NoClose}">
|
|
|
|
<EgtBEAMWALLCORE:OptimizerWindow.InputBindings>
|
|
<KeyBinding Key="Escape" Command="{Binding ReloadMachiningCommand}"
|
|
CommandParameter="{Binding Path=SelectedItem,ElementName=MachiningsTreeView}"/>
|
|
</EgtBEAMWALLCORE:OptimizerWindow.InputBindings>
|
|
|
|
<EgtBEAMWALLCORE:OptimizerWindow.Resources>
|
|
<EgtWPFLib5:DepthUnitConverter x:Key="DepthUnitConverter"/>
|
|
<EgtWPFLib5:ErrorVisibilityConverter x:Key="ErrorVisibilityConverter"/>
|
|
</EgtBEAMWALLCORE:OptimizerWindow.Resources>
|
|
|
|
<Grid>
|
|
<Grid.ColumnDefinitions>
|
|
<ColumnDefinition Width="0.75*"/>
|
|
<ColumnDefinition Width="2*"/>
|
|
<ColumnDefinition Width="1*"/>
|
|
</Grid.ColumnDefinitions>
|
|
|
|
<Grid>
|
|
<Grid.RowDefinitions>
|
|
<RowDefinition Height="Auto"/>
|
|
<RowDefinition Height="10*"/>
|
|
<RowDefinition Height="Auto"/>
|
|
</Grid.RowDefinitions>
|
|
|
|
<UniformGrid Columns="3">
|
|
<Button Content="{Binding NewMsg}"
|
|
Command="{Binding NewCommand}"
|
|
CommandParameter="{Binding Path=SelectedItem, ElementName=MachiningsTreeView}"
|
|
IsEnabled="{Binding IsEnabledNewBtn, Mode=OneWay}"
|
|
Style="{StaticResource MachiningDB_Button}"/>
|
|
<Button Content="{Binding SaveMsg}"
|
|
Command="{Binding SaveCommand}"
|
|
CommandParameter="{Binding Path=SelectedItem, ElementName=MachiningsTreeView}"
|
|
IsEnabled="{Binding IsEnabledSaveBtn, Mode=OneWay}"
|
|
Style="{StaticResource MachiningDB_Button}"/>
|
|
<Button Content="{Binding RemoveMsg}"
|
|
Command="{Binding RemoveCommand}"
|
|
CommandParameter="{Binding Path=SelectedItem, ElementName=MachiningsTreeView}"
|
|
IsEnabled="{Binding IsEnabledRemoveBtn, Mode=OneWay}"
|
|
Style="{StaticResource MachiningDB_Button}"/>
|
|
</UniformGrid>
|
|
|
|
<TreeView Grid.Row="1"
|
|
Name="MachiningsTreeView"
|
|
ItemsSource="{Binding Path=MachiningsList}"
|
|
Style="{StaticResource MachiningDB_TreeView}">
|
|
<TreeView.ItemContainerStyle>
|
|
<Style TargetType="{x:Type TreeViewItem}">
|
|
<Setter Property="IsSelected" Value="{Binding IsSelected, Mode=TwoWay}" />
|
|
<Setter Property="IsExpanded" Value="{Binding IsExpanded, Mode=TwoWay}" />
|
|
<Setter Property="IsEnabled" Value="{Binding IsEnabled, Mode=TwoWay}" />
|
|
</Style>
|
|
</TreeView.ItemContainerStyle>
|
|
<TreeView.Resources>
|
|
<HierarchicalDataTemplate DataType="{x:Type EgtWPFLib5:FamilyMachiningTreeViewItem}"
|
|
ItemsSource="{Binding Items}">
|
|
<Grid Style="{StaticResource MachiningDB_Grid}">
|
|
<Grid.ColumnDefinitions>
|
|
<ColumnDefinition Width="Auto"/>
|
|
<ColumnDefinition Width="1*"/>
|
|
<ColumnDefinition Width="Auto"/>
|
|
</Grid.ColumnDefinitions>
|
|
<Image Source="{Binding PictureString}"
|
|
Style="{StaticResource MachiningDB_Image}"/>
|
|
<TextBlock Grid.Column="1"
|
|
Text="{Binding Name}"
|
|
Style="{StaticResource MachiningDB_TextBlock}"/>
|
|
<Ellipse Grid.Column="2"
|
|
Fill="{Binding FamilyColor}"
|
|
Style="{StaticResource SetUp_Ellipse}"/>
|
|
</Grid>
|
|
</HierarchicalDataTemplate>
|
|
<DataTemplate DataType="{x:Type EgtWPFLib5:MachiningTreeViewItem}">
|
|
<Grid Style="{StaticResource MachiningDB_Grid}">
|
|
<Grid.ColumnDefinitions>
|
|
<ColumnDefinition Width="Auto"/>
|
|
<ColumnDefinition Width="1*"/>
|
|
<ColumnDefinition Width="Auto"/>
|
|
</Grid.ColumnDefinitions>
|
|
<TextBlock Grid.Column="1"
|
|
Text="{Binding NamePar}"
|
|
Style="{StaticResource MachiningDB_TextBlock}"/>
|
|
<Ellipse Grid.Column="2"
|
|
Fill="{Binding ToolColor}"
|
|
Style="{StaticResource SetUp_Ellipse}"/>
|
|
</Grid>
|
|
</DataTemplate>
|
|
</TreeView.Resources>
|
|
</TreeView>
|
|
|
|
<UniformGrid Grid.Row="2"
|
|
Columns="3">
|
|
<Button Content="{Binding ImportMsg}"
|
|
Command="{Binding ImportCommand}"
|
|
Style="{StaticResource MachiningDB_Button}"/>
|
|
<Button Content="{Binding ExportMsg}"
|
|
Command="{Binding ExportCommand}"
|
|
Style="{StaticResource MachiningDB_Button}"/>
|
|
<Button Content="{Binding ResetMsg}"
|
|
Command="{Binding ReloadMachiningCommand}"
|
|
CommandParameter="{Binding Path=SelectedItem,ElementName=MachiningsTreeView}"
|
|
Style="{StaticResource MachiningDB_Button}"/>
|
|
</UniformGrid>
|
|
|
|
</Grid>
|
|
|
|
<ContentControl Grid.Column="1"
|
|
Grid.ColumnSpan="2"
|
|
Content="{Binding Path=ParamPageV}"/>
|
|
|
|
</Grid>
|
|
|
|
</EgtBEAMWALLCORE:OptimizerWindow>
|