74 lines
3.4 KiB
XML
74 lines
3.4 KiB
XML
<StackPanel x:Class="TopCommandBarV"
|
|
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
|
|
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
|
|
Orientation="Horizontal"
|
|
Height="32">
|
|
|
|
<!--Barra superiore dei comandi-->
|
|
<Button Command="{Binding NewCommand}"
|
|
ToolTip="{Binding NewToolTip}"
|
|
IsEnabled="{Binding IsEnabled}"
|
|
Style = "{DynamicResource TopCmdBar_Button}">
|
|
<Image Source="/Resources/TopCommandBar/New.png" Stretch="Uniform"/>
|
|
</Button>
|
|
<Button Command="{Binding OpenCommand}"
|
|
ToolTip="{Binding OpenToolTip}"
|
|
IsEnabled="{Binding IsEnabled}"
|
|
ContextMenuService.Placement="Bottom"
|
|
Style = "{DynamicResource TopCmdBar_Button}"
|
|
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}"
|
|
IsEnabled="{Binding IsEnabled}"
|
|
Style = "{DynamicResource TopCmdBar_Button}">
|
|
<Image Source="/Resources/TopCommandBar/Save.png" Stretch="Uniform"/>
|
|
</Button>
|
|
<Button Command="{Binding SaveAsCommand}"
|
|
ToolTip="{Binding SaveAsToolTip}"
|
|
IsEnabled="{Binding IsEnabled}"
|
|
Style = "{DynamicResource TopCmdBar_Button}">
|
|
<Image Source="/Resources/TopCommandBar/SaveAs.png" Stretch="Uniform"/>
|
|
</Button>
|
|
<Button Command="{Binding ExportCommand}"
|
|
ToolTip="{Binding ExportToolTip}"
|
|
IsEnabled="{Binding IsEnabled}"
|
|
Style = "{DynamicResource TopCmdBar_Button}">
|
|
<Image Source="/Resources/TopCommandBar/Export.png" Stretch="Uniform"/>
|
|
</Button>
|
|
<Button Command="{Binding DxfOutCommand}"
|
|
ToolTip="{Binding DxfOutToolTip}"
|
|
IsEnabled="{Binding IsEnabled}"
|
|
Style = "{DynamicResource TopCmdBar_Button}">
|
|
<Image Source="/Resources/TopCommandBar/DxfOut.png" Stretch="Uniform"/>
|
|
</Button>
|
|
<Button Command="{Binding OptionsCommand}"
|
|
ToolTip="{Binding OptionsToolTip}"
|
|
IsEnabled="{Binding IsEnabled}"
|
|
Style = "{DynamicResource TopCmdBar_Button}"
|
|
Width="{Binding RelativeSource={RelativeSource Self}, Path=ActualHeight}">
|
|
<Image Source="/Resources/TopCommandBar/Options.png" Height="22" />
|
|
</Button>
|
|
<Button Command="{Binding SendFeedbackCommand}"
|
|
ToolTip="{Binding SendFeedbackToolTip}"
|
|
IsEnabled="{Binding IsEnabled}"
|
|
Style = "{DynamicResource TopCmdBar_Button}">
|
|
<Image Source="/Resources/TopCommandBar/Send.png" Height="22" Margin="3,0,3,0" />
|
|
</Button>
|
|
|
|
</StackPanel>
|