ac4cf2b7fb
- miglioramento del metodo per la selezione dall'elenco assemblati/porte, - gestione visibilità del bottone "Save as Template".
77 lines
3.9 KiB
XML
77 lines
3.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">
|
|
|
|
<!--Barra superiore dei comandi-->
|
|
<Button Command="{Binding NewCommand}" ToolTip="{Binding NewToolTip}" Focusable="False">
|
|
<Image Source="/Resources/TopCommandBar/NewFile.png" 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 SaveCommand}" ToolTip="{Binding SaveToolTip}" Focusable="False">
|
|
<Image Source="/Resources/TopCommandBar/Save.png" Stretch="Uniform"/>
|
|
</Button>
|
|
<!--<Button Command="{Binding SaveAsCommand}" ToolTip="{Binding SaveAsToolTip}">
|
|
<Image Source="/Resources/TopCommandBar/SaveAs.png" Stretch="Uniform"/>
|
|
</Button>-->
|
|
<Button Command="{Binding CreateTemplateCommand}" ToolTip="{Binding TemplateDoorToolTip}" Focusable="False"
|
|
Visibility="{Binding VisibilityTemplate}">
|
|
<ContentControl>
|
|
<Image Source="/Resources/TopCommandBar/SaveAs.png" Stretch="Uniform" />
|
|
</ContentControl>
|
|
</Button>
|
|
<Button Command="{Binding DuplicaCommand}" ToolTip="{Binding DuplicaToolTip}" Focusable="False">
|
|
<ContentControl>
|
|
<Image Source="/Resources/TopCommandBar/CopyDDF.png" Stretch="Uniform" />
|
|
</ContentControl>
|
|
</Button>
|
|
<Button Command="{Binding CopyCommand}" ToolTip="{Binding CopyToolTip}" Focusable="False">
|
|
<ContentControl>
|
|
<Image Source="/Resources/TopCommandBar/Export.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 HardwareCommand}" ToolTip="{Binding HardwareToolTip}" Focusable="False"
|
|
Visibility="{Binding DisableHM}">
|
|
<ContentControl>
|
|
<Image Source="/Resources/InstrumentPanel/Hardware.png" Stretch="Uniform" />
|
|
</ContentControl>
|
|
</Button>
|
|
<Button Command="{Binding OptionsCommand}" ToolTip="{Binding OptionsToolTip}" Focusable="False">
|
|
<Image Source="/Resources/TopCommandBar/Options.png" Height="22" />
|
|
</Button>
|
|
<Button Command="{Binding SendFeedbackCommand}" ToolTip="{Binding SendFeedbackToolTip}" Focusable="False">
|
|
<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>
|
|
</StackPanel>
|
|
</UserControl>
|