122 lines
6.8 KiB
XML
122 lines
6.8 KiB
XML
<UserControl x:Class="ProjectManagerV"
|
|
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
|
|
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
|
|
xmlns:DOORCreator="clr-namespace:EgtDOORCreator" >
|
|
|
|
<StackPanel Orientation="Horizontal" IsEnabled="{Binding EnableProjectManager}" Height="32">
|
|
|
|
<!--Barra superiore dei comandi-->
|
|
<Button Command="{Binding NewCommand}" ToolTip="{Binding NewToolTip}" Focusable="False"
|
|
IsEnabled="{Binding EnableModifyDDF}">
|
|
<Image Source="{Binding NewProjectImg}" Stretch="Uniform"/>
|
|
</Button>
|
|
<!--Visibility="{Binding VisibilityDeleteDDF}"-->
|
|
<Button Command="{Binding DeleteCommand}" ToolTip="{Binding DeleteToolTip}" Focusable="False"
|
|
IsEnabled="{Binding EnableModifyDDF}">
|
|
<Image Source="{Binding DeleteProjectImg}" Stretch="Uniform"/>
|
|
</Button>
|
|
<Button Command="{Binding OpenCommand}" ToolTip="{Binding OpenToolTip}"
|
|
Focusable="False"
|
|
ContextMenuService.Placement="Bottom"
|
|
Tag="{Binding}">
|
|
<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>
|
|
<Image Source="/Resources/TopCommandBar/Open.png" Stretch="Uniform"/>
|
|
</Button>
|
|
<Button Command="{Binding ReloadCommand}" ToolTip="{Binding ReloadToolTip}" Focusable="False"
|
|
IsEnabled="{Binding EnableModifyDDF}">
|
|
<Image Source="/Resources/Refresh/RefreshDir.png" Stretch="Uniform"/>
|
|
</Button>
|
|
<Button Command="{Binding SaveCommand}" ToolTip="{Binding SaveToolTip}" Focusable="False"
|
|
IsEnabled="{Binding EnableModifyDDF}">
|
|
<Image Source="/Resources/TopCommandBar/Save.png" Stretch="Uniform"/>
|
|
<!--<Image Source="{Binding IsModifiedImage}" Stretch="Uniform"/>-->
|
|
</Button>
|
|
<Button Command="{Binding DuplicaCommand}" ToolTip="{Binding DuplicaToolTip}" Focusable="False"
|
|
IsEnabled="{Binding EnableModifyDDF}">
|
|
<ContentControl>
|
|
<Image Source="/Resources/TopCommandBar/SaveAs.png" Stretch="Uniform" />
|
|
</ContentControl>
|
|
</Button>
|
|
<Button Command="{Binding CreateTemplateCommand}" ToolTip="{Binding TemplateDoorToolTip}" Focusable="False"
|
|
Visibility="{Binding VisibilityTemplate}" IsEnabled="{Binding EnableModifyDDF}">
|
|
<ContentControl>
|
|
<Image Source="/Resources/TopCommandBar/SaveAsTemplate.png" Stretch="Uniform" />
|
|
</ContentControl>
|
|
</Button>
|
|
<Button Command="{Binding CopyCommand}" ToolTip="{Binding CopyToolTip}" Focusable="False"
|
|
IsEnabled="{Binding EnableModifyDDF}">
|
|
<ContentControl>
|
|
<Image Source="/Resources/TopCommandBar/Export.png" Stretch="Uniform" />
|
|
</ContentControl>
|
|
</Button>
|
|
<Button Command="{Binding OpenCamCommand}" ToolTip="{Binding OpenCamToolTip}" Focusable="False"
|
|
Visibility="{Binding VisibilityEgtCAM}" IsEnabled="{Binding EnableModifyDDF}">
|
|
<ContentControl>
|
|
<Image Source="/Resources/EgtCAM5.png" Stretch="Uniform" />
|
|
</ContentControl>
|
|
</Button>
|
|
<Button Command="{Binding PrintCommand}" ToolTip="{Binding PrintToolTip}" Focusable="False">
|
|
<ContentControl>
|
|
<Image Source="/Resources/InstrumentPanel/Print.png" 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}">
|
|
<ContentControl>
|
|
<Image Source="/Resources/TopCommandBar/Create Assembly.png" Stretch="Uniform" />
|
|
</ContentControl>
|
|
</Button>
|
|
<Button Command="{Binding OptionsCommand}" ToolTip="{Binding OptionsToolTip}" Focusable="False"
|
|
Width="{Binding RelativeSource={RelativeSource Self}, Path=ActualHeight}" IsEnabled="{Binding EnableModifyDDF}">
|
|
<Image Source="/Resources/TopCommandBar/Options.png" Height="22" />
|
|
</Button>
|
|
|
|
<DOORCreator:SpecialPanelV DataContext="{StaticResource SpecialPanelVM}"/>
|
|
|
|
<Button Command="{Binding SendFeedbackCommand}" ToolTip="{Binding SendFeedbackToolTip}" Focusable="False"
|
|
IsEnabled="{Binding EnableModifyDDF}">
|
|
<Image Source="/Resources/TopCommandBar/Send.png" Height="22" Margin="3,0,3,0" />
|
|
</Button>
|
|
<Button Command="{Binding GuideCommand}" ToolTip="{Binding GuideToolTip}" Focusable="False">
|
|
<ContentControl>
|
|
<Image Source="/Resources/TopCommandBar/Help.png" Stretch="Uniform" />
|
|
</ContentControl>
|
|
</Button>
|
|
<!--Door-->
|
|
<RadioButton Style="{StaticResource ModeButton}" Visibility="{Binding DisableHM}"
|
|
ToolTip="{Binding DoorToolTip}"
|
|
IsChecked="{Binding DoorIsChecked}"
|
|
Content="{Binding DoorToolTip}"
|
|
IsEnabled="{Binding EnableModifyDDF}">
|
|
</RadioButton>
|
|
<!--Hardware-->
|
|
<RadioButton Style="{StaticResource ModeButton}" Visibility="{Binding DisableHM}"
|
|
Command="{Binding HardwareCommand}" ToolTip="{Binding HardwareToolTip}"
|
|
Content="{Binding HardwareToolTip}"
|
|
IsEnabled="{Binding EnableModifyDDF}">
|
|
</RadioButton>
|
|
</StackPanel>
|
|
</UserControl>
|