179 lines
7.9 KiB
XML
179 lines
7.9 KiB
XML
<UserControl x:Class="ProjectManagerV"
|
|
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
|
|
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml">
|
|
|
|
<StackPanel Orientation="Horizontal" IsEnabled="{Binding EnableProjectManager}" Height="32">
|
|
|
|
<!--Barra superiore dei comandi-->
|
|
<Button Command="{Binding NewCommand}"
|
|
ToolTip="{Binding NewToolTip}"
|
|
Focusable="False"
|
|
IsEnabled="{Binding EnableModifyDDF}"
|
|
Style="{DynamicResource DoorsBtn}">
|
|
<ContentControl>
|
|
<Image Source="{DynamicResource NewFile}" Stretch="Uniform"/>
|
|
</ContentControl>
|
|
</Button>
|
|
<!--Visibility="{Binding VisibilityDeleteDDF}"-->
|
|
<Button Command="{Binding DeleteCommand}"
|
|
ToolTip="{Binding DeleteToolTip}"
|
|
Focusable="False"
|
|
IsEnabled="{Binding EnableModifyDDF}"
|
|
Style="{DynamicResource DoorsBtn}">
|
|
<ContentControl>
|
|
<Image Source="{DynamicResource DeleteFile}" Stretch="Uniform"/>
|
|
</ContentControl>
|
|
</Button>
|
|
<Button Command="{Binding OpenCommand}"
|
|
ToolTip="{Binding OpenToolTip}"
|
|
Focusable="False"
|
|
ContextMenuService.Placement="Bottom"
|
|
Tag="{Binding}"
|
|
Style="{DynamicResource DoorsBtn}">
|
|
<Button.ContextMenu>
|
|
<ContextMenu ItemsSource="{Binding MruFileNames}">
|
|
<ContextMenu.Resources>
|
|
<Style TargetType="{x:Type MenuItem}">
|
|
<Setter Property="Command"
|
|
Value="{Binding PlacementTarget.Tag.OpenMruFileCommand,
|
|
RelativeSource={RelativeSource Mode=FindAncestor,
|
|
AncestorType=ContextMenu}}"/>
|
|
<Setter Property="CommandParameter" Value="{Binding}"/>
|
|
</Style>
|
|
</ContextMenu.Resources>
|
|
</ContextMenu>
|
|
</Button.ContextMenu>
|
|
<ContentControl>
|
|
<Image Source="{DynamicResource OpenFolder}" Stretch="Uniform"/>
|
|
</ContentControl>
|
|
</Button>
|
|
<Button Command="{Binding ReloadCommand}"
|
|
ToolTip="{Binding ReloadToolTip}"
|
|
Focusable="False"
|
|
IsEnabled="{Binding EnableModifyDDF}"
|
|
Style="{DynamicResource DoorsBtn}">
|
|
<ContentControl>
|
|
<Image Source="{DynamicResource Refresh}" Stretch="Uniform"/>
|
|
</ContentControl>
|
|
</Button>
|
|
<Button Command="{Binding SaveCommand}"
|
|
ToolTip="{Binding SaveToolTip}"
|
|
Focusable="False"
|
|
IsEnabled="{Binding EnableModifyDDF}"
|
|
Style="{DynamicResource DoorsBtn}">
|
|
<ContentControl>
|
|
<Image Source="{DynamicResource Save}" Stretch="Uniform"/>
|
|
</ContentControl>
|
|
<!--<Image Source="{Binding IsModifiedImage}" Stretch="Uniform"/>-->
|
|
</Button>
|
|
<Button Command="{Binding DuplicaCommand}"
|
|
ToolTip="{Binding DuplicaToolTip}"
|
|
Focusable="False"
|
|
IsEnabled="{Binding EnableModifyDDF}"
|
|
Style="{DynamicResource DoorsBtn}">
|
|
<ContentControl>
|
|
<Image Source="{DynamicResource SaveAs}" Stretch="Uniform"/>
|
|
</ContentControl>
|
|
</Button>
|
|
<Button Command="{Binding CreateTemplateCommand}"
|
|
ToolTip="{Binding TemplateDoorToolTip}"
|
|
Focusable="False"
|
|
Visibility="{Binding VisibilityTemplate}"
|
|
IsEnabled="{Binding EnableModifyDDF}"
|
|
Style="{DynamicResource DoorsBtn}">
|
|
<ContentControl>
|
|
<Image Source="{DynamicResource SaveAsTemplate}" Stretch="Uniform"/>
|
|
</ContentControl>
|
|
</Button>
|
|
<Button Command="{Binding CopyCommand}"
|
|
ToolTip="{Binding CopyToolTip}"
|
|
Focusable="False"
|
|
IsEnabled="{Binding EnableModifyDDF}"
|
|
Style="{DynamicResource DoorsBtn}">
|
|
<ContentControl>
|
|
<Image Source="{DynamicResource ExportToMachine}" Stretch="Uniform"/>
|
|
</ContentControl>
|
|
</Button>
|
|
<Button Command="{Binding OpenCamCommand}"
|
|
ToolTip="{Binding OpenCamToolTip}"
|
|
Focusable="False"
|
|
Visibility="{Binding VisibilityEgtCAM}"
|
|
IsEnabled="{Binding EnableModifyDDF}"
|
|
Style="{DynamicResource DoorsBtn}">
|
|
<ContentControl>
|
|
<Image Source="/Resources/EgtCAM5.png" Stretch="Uniform"/>
|
|
</ContentControl>
|
|
</Button>
|
|
<Button Command="{Binding PrintCommand}"
|
|
ToolTip="{Binding PrintToolTip}"
|
|
Focusable="False"
|
|
Style="{DynamicResource DoorsBtn}">
|
|
<ContentControl>
|
|
<Image Source="{DynamicResource Print}" Stretch="Uniform"/>
|
|
</ContentControl>
|
|
</Button>
|
|
<!--<Button Command="{Binding RefreshDirCommand}" ToolTip="{Binding RefreshDirToolTip}" Focusable="False">
|
|
<Image Source="/Resources/Refresh/RefreshDir.png" Stretch="Uniform"/>
|
|
</Button>-->
|
|
<!--Hardware-->
|
|
<!--<Button Command="{Binding HardwareCommand}" ToolTip="{Binding HardwareToolTip}" Focusable="False"
|
|
Visibility="{Binding DisableHM}">
|
|
<ContentControl>
|
|
<Image Source="/Resources/InstrumentPanel/Hardware.png" Stretch="Uniform" />
|
|
</ContentControl>
|
|
</Button>-->
|
|
<Button Command="{Binding CreateAssemblyCommand}"
|
|
ToolTip="{Binding CreateAssemblyToolTip}"
|
|
Focusable="False"
|
|
Visibility="{Binding VisibilityCreateAssembly}"
|
|
IsEnabled="{Binding EnableModifyDDF}"
|
|
Style="{DynamicResource DoorsBtn}">
|
|
<ContentControl>
|
|
<Image Source="{DynamicResource CreateAssembly}" Stretch="Uniform"/>
|
|
</ContentControl>
|
|
</Button>
|
|
<Button Command="{Binding OptionsCommand}"
|
|
ToolTip="{Binding OptionsToolTip}"
|
|
Focusable="False"
|
|
IsEnabled="{Binding EnableModifyDDF}"
|
|
Style="{DynamicResource DoorsBtn}">
|
|
<ContentControl>
|
|
<Image Source="{DynamicResource Option}" Stretch="Uniform"/>
|
|
</ContentControl>
|
|
</Button>
|
|
<Button Command="{Binding SendFeedbackCommand}"
|
|
ToolTip="{Binding SendFeedbackToolTip}"
|
|
Focusable="False"
|
|
IsEnabled="{Binding EnableModifyDDF}"
|
|
Style="{DynamicResource DoorsBtn}">
|
|
<ContentControl>
|
|
<Image Source="{DynamicResource FeedBack}" Stretch="Uniform"/>
|
|
</ContentControl>
|
|
</Button>
|
|
<Button Command="{Binding GuideCommand}"
|
|
ToolTip="{Binding GuideToolTip}"
|
|
Focusable="False"
|
|
Style="{DynamicResource DoorsBtn}">
|
|
<ContentControl>
|
|
<Image Source="{DynamicResource Help}" Stretch="Uniform"/>
|
|
</ContentControl>
|
|
</Button>
|
|
<!--Door-->
|
|
<RadioButton Content="{Binding DoorToolTip}"
|
|
IsChecked="{Binding DoorIsChecked}"
|
|
ToolTip="{Binding DoorToolTip}"
|
|
IsEnabled="{Binding EnableModifyDDF}"
|
|
Visibility="{Binding DisableHM}"
|
|
Style="{DynamicResource ModeButton}">
|
|
</RadioButton>
|
|
<!--Hardware-->
|
|
<RadioButton Content="{Binding HardwareToolTip}"
|
|
Command="{Binding HardwareCommand}"
|
|
ToolTip="{Binding HardwareToolTip}"
|
|
IsEnabled="{Binding EnableModifyDDF}"
|
|
Visibility="{Binding DisableHM}"
|
|
Style="{DynamicResource ModeButton}">
|
|
</RadioButton>
|
|
</StackPanel>
|
|
</UserControl>
|