5106b8ef80
- aggiunta finestra ImportDxf - gestione unità di misura - gestione cambio lingua - varie migliorie.
52 lines
2.4 KiB
XML
52 lines
2.4 KiB
XML
<UserControl x:Class="TopCommandBarV"
|
|
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
|
|
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml">
|
|
|
|
<!--Barra superiore dei comandi-->
|
|
<StackPanel Orientation="Horizontal">
|
|
<Button Command="{Binding NewCommand}"
|
|
ToolTip="{Binding NewToolTip}"
|
|
IsEnabled="{Binding IsEnabled}">
|
|
<Image Source="/Resources/TopCommandBar/New.png" Stretch="Uniform"/>
|
|
</Button>
|
|
<Button Command="{Binding OpenCommand}"
|
|
ToolTip="{Binding OpenToolTip}"
|
|
IsEnabled="{Binding IsEnabled}"
|
|
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}"
|
|
IsEnabled="{Binding IsEnabled}">
|
|
<Image Source="/Resources/TopCommandBar/Save.png" Stretch="Uniform"/>
|
|
</Button>
|
|
<Button Command="{Binding SaveAsCommand}"
|
|
ToolTip="{Binding SaveAsToolTip}"
|
|
IsEnabled="{Binding IsEnabled}">
|
|
<Image Source="/Resources/TopCommandBar/SaveAs.png" Stretch="Uniform"/>
|
|
</Button>
|
|
<Button Command="{Binding OptionsCommand}"
|
|
ToolTip="{Binding OptionsToolTip}"
|
|
IsEnabled="{Binding IsEnabled}">
|
|
<Image Source="/Resources/TopCommandBar/Options.png" Height="22" />
|
|
</Button>
|
|
<!--<Button Command="{Binding SendFeedbackCommand}" ToolTip="{Binding SendFeedbackToolTip}">
|
|
<Image Source="/Resources/TopCommandBar/Send.png" Height="22" Margin="3,0,3,0" />
|
|
</Button>-->
|
|
|
|
</StackPanel>
|
|
|
|
</UserControl>
|