124 lines
6.5 KiB
XML
124 lines
6.5 KiB
XML
<EgtWPFLib5:EgtCustomWindow x:Class="MySetUpDbWindowV"
|
|
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:omagoffice="clr-namespace:OmagOFFICE"
|
|
Title="{Binding Title}"
|
|
Style="{DynamicResource {x:Type EgtWPFLib5:EgtCustomWindow}}"
|
|
WindowStyle="None" ResizeMode="NoResize" TitleBarHeight="30" IsResizable="False"
|
|
IsMinimizable="False" WindowStartupLocation="CenterScreen" ShowInTaskbar="False"
|
|
CloseCommand="{Binding CloseSetUpCommand, Mode=OneWay, UpdateSourceTrigger=PropertyChanged}">
|
|
|
|
<Grid Background="Transparent">
|
|
<Grid.ColumnDefinitions>
|
|
<ColumnDefinition Width="0.95*"/>
|
|
<ColumnDefinition Width="2*"/>
|
|
<ColumnDefinition Width="1*"/>
|
|
</Grid.ColumnDefinitions>
|
|
|
|
<Grid Background="Transparent">
|
|
<Grid.RowDefinitions>
|
|
<RowDefinition Height="0.75*"/>
|
|
<RowDefinition Height="12*"/>
|
|
</Grid.RowDefinitions>
|
|
|
|
<UniformGrid Grid.Row="0" Columns="8">
|
|
<Button ToolTip="New" Command="{Binding NewCommand}"
|
|
CommandParameter="{Binding Path=SelectedItem, ElementName=MachiningsTreeView}"
|
|
IsEnabled="{Binding IsEnabledNewBtn, Mode=OneWay}"
|
|
Style = "{DynamicResource MachiningDB_Button}">
|
|
<Image Source="/Resources/TopCommandBar/New.png" Stretch="Uniform"/>
|
|
</Button>
|
|
<Button ToolTip="Save" Command="{Binding SaveCommand}"
|
|
CommandParameter="{Binding Path=SelectedItem, ElementName=MachiningsTreeView}"
|
|
IsEnabled="{Binding IsEnabledSaveBtn, Mode=OneWay}"
|
|
Style = "{DynamicResource MachiningDB_Button}">
|
|
<Image Source="/Resources/TopCommandBar/Save.png" Stretch="Uniform"/>
|
|
</Button>
|
|
<Button ToolTip="Remove" Command="{Binding RemoveCommand}"
|
|
CommandParameter="{Binding Path=SelectedItem, ElementName=MachiningsTreeView}"
|
|
IsEnabled="{Binding IsEnabledRemoveBtn, Mode=OneWay}"
|
|
Style = "{DynamicResource MachiningDB_Button}">
|
|
<Image Source="/Resources/TopCommandBar/Remove.png" Stretch="Uniform"/>
|
|
</Button>
|
|
|
|
<Button ToolTip="Import"
|
|
CommandParameter="{Binding Path=SelectedItem, ElementName=MachiningsTreeView}"
|
|
IsEnabled="{Binding IsEnabledNewBtn, Mode=OneWay}"
|
|
Style = "{DynamicResource MachiningDB_Button}">
|
|
<Image Source="/Resources/TopCommandBar/Import.png" Stretch="Uniform"/>
|
|
</Button>
|
|
<Button ToolTip="Export"
|
|
CommandParameter="{Binding Path=SelectedItem, ElementName=MachiningsTreeView}"
|
|
IsEnabled="{Binding IsEnabledSaveBtn, Mode=OneWay}"
|
|
Style = "{DynamicResource MachiningDB_Button}">
|
|
<Image Source="/Resources/TopCommandBar/Export_1.png" Stretch="Uniform"/>
|
|
</Button>
|
|
<Button ToolTip="Reset"
|
|
CommandParameter="{Binding Path=SelectedItem, ElementName=MachiningsTreeView}"
|
|
IsEnabled="{Binding IsEnabledRemoveBtn, Mode=OneWay}"
|
|
Style = "{DynamicResource MachiningDB_Button}">
|
|
<Image Source="/Resources/TopCommandBar/Reset.png" Stretch="Uniform"/>
|
|
</Button>
|
|
</UniformGrid>
|
|
|
|
|
|
<!--<TreeView Name="SetUpTreeView" Grid.Row="1"
|
|
Background="Transparent" BorderThickness="0"
|
|
ItemsSource="{Binding Path=MachiningsList}">
|
|
<TreeView.ItemContainerStyle>
|
|
<Style TargetType="{x:Type TreeViewItem}">
|
|
<Setter Property="FontSize" Value="10" />
|
|
<Setter Property="Foreground" Value="{StaticResource Omag_White}" />
|
|
<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 Background="Transparent">
|
|
<Grid.ColumnDefinitions>
|
|
<ColumnDefinition Width="Auto"/>
|
|
<ColumnDefinition Width="1*"/>
|
|
<ColumnDefinition Width="Auto"/>
|
|
</Grid.ColumnDefinitions>
|
|
|
|
<Image Grid.Column="0" Source="{Binding PictureString}" Height="32" Width="32" Margin="0" />
|
|
<TextBlock Grid.Column="1" Text="{Binding Name}" FontSize="15" Margin="5,0,10,0" VerticalAlignment="Center" HorizontalAlignment="left" />
|
|
<Ellipse Grid.Column="2" Height="10" Width="10" Fill="{Binding FamilyColor}" />
|
|
|
|
</Grid>
|
|
|
|
</HierarchicalDataTemplate>
|
|
|
|
<DataTemplate DataType="{x:Type EgtWPFLib5:MachiningTreeViewItem}">
|
|
<Grid Background="Transparent">
|
|
<Grid.ColumnDefinitions>
|
|
<ColumnDefinition Width="Auto"/>
|
|
<ColumnDefinition Width="1*"/>
|
|
<ColumnDefinition Width="Auto"/>
|
|
</Grid.ColumnDefinitions>
|
|
|
|
--><!--<Image Grid.Column="0" Source="{Binding PictureString}" Height="32" Margin="0,8,6,4" />--><!--
|
|
<TextBlock Grid.Column="1" Text="{Binding NamePar}" Height="21" FontSize="13" Margin="30,0,10,0"
|
|
VerticalAlignment="Center" HorizontalAlignment="left"/>
|
|
<Ellipse Grid.Column="2" Height="10" Width="10" Fill="{Binding ToolColor}" />
|
|
|
|
</Grid>
|
|
|
|
</DataTemplate>
|
|
</TreeView.Resources>
|
|
|
|
</TreeView>-->
|
|
|
|
|
|
</Grid>
|
|
|
|
</Grid>
|
|
|
|
</EgtWPFLib5:EgtCustomWindow>
|
|
|