8c45250a6f
- modifiche per consentire feedback anche in Simulazione (solo se progetto non è da salvare) - modifica per entrare da TS3 modalità Vista con Simulazione non bloccata.
71 lines
3.7 KiB
XML
71 lines
3.7 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">
|
|
|
|
<!--Barra superiore dei comandi-->
|
|
<UniformGrid Rows="1"
|
|
Visibility="{Binding ProjectManager_Visibility}">
|
|
<Button Command="{Binding NewCommand}" ToolTip="{Binding NewToolTip}"
|
|
IsEnabled="{Binding DrawIsChecked}">
|
|
<Image Source="/Resources/TopCommandBar/New.png" Stretch="Uniform"/>
|
|
</Button>
|
|
<Button Command="{Binding OpenCommand}" ToolTip="{Binding OpenToolTip}"
|
|
ContextMenuService.Placement="Bottom" IsEnabled="{Binding DrawIsChecked}"
|
|
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 SaveIsEnabled}">
|
|
<Image Source="/Resources/TopCommandBar/Save.png" Stretch="Uniform"/>
|
|
</Button>
|
|
<Button Command="{Binding SaveAsCommand}" ToolTip="{Binding SaveAsToolTip}"
|
|
IsEnabled="{Binding SaveIsEnabled}">
|
|
<Image Source="/Resources/TopCommandBar/SaveAs.png" Stretch="Uniform"/>
|
|
</Button>
|
|
<Button Command="{Binding InsertCommand}" ToolTip="{Binding InsertToolTip}"
|
|
IsEnabled="{Binding DrawIsChecked}">
|
|
<Image Source="/Resources/TopCommandBar/Insert.png" Stretch="Uniform"/>
|
|
</Button>
|
|
<Button Command="{Binding ImportCommand}" ToolTip="{Binding ImportToolTip}"
|
|
IsEnabled="{Binding DrawIsChecked}">
|
|
<Image Source="/Resources/TopCommandBar/Import.png" Stretch="Uniform"/>
|
|
</Button>
|
|
<Button Command="{Binding ExportCommand}" ToolTip="{Binding ExportToolTip}"
|
|
IsEnabled="{Binding DrawIsChecked}">
|
|
<Image Source="/Resources/TopCommandBar/Export.png" Stretch="Uniform"/>
|
|
</Button>
|
|
<Button Command="{Binding PrintCommand}" ToolTip="{Binding PrintToolTip}"
|
|
IsEnabled="True">
|
|
<Image Source="/Resources/TopCommandBar/Print.png" Height="22" />
|
|
</Button>
|
|
</UniformGrid>
|
|
<Button Command="{Binding OptionsCommand}" ToolTip="{Binding OptionsToolTip}"
|
|
IsEnabled="{Binding SaveIsEnabled}">
|
|
<Image Source="/Resources/TopCommandBar/Options.png" Height="22" />
|
|
</Button>
|
|
<Button Command="{Binding SendFeedbackCommand}" ToolTip="{Binding SendFeedbackToolTip}"
|
|
IsEnabled="{Binding SendFeedbackIsEnabled}">
|
|
<Image Source="/Resources/TopCommandBar/Send.png" Height="22" Margin="3,0,3,0" />
|
|
</Button>
|
|
<UniformGrid Rows="1">
|
|
<RadioButton Style="{StaticResource ModeButton}" Content="{Binding DrawMsg}"
|
|
IsChecked="{Binding DrawIsChecked}" IsEnabled="{Binding DrawIsEnabled}"/>
|
|
<RadioButton Style="{StaticResource ModeButton}" Content="{Binding MachiningMsg}"
|
|
IsChecked="{Binding MachiningIsChecked}" IsEnabled="{Binding MachiningIsEnabled}"/>
|
|
</UniformGrid>
|
|
|
|
</StackPanel>
|
|
|