79b9e49ae0
- Aggiunto bottoni per mandare mail all'assistenza in TopCommandBar. - Corretta visualizzazione tooltip in setup quando caricato da archivio.
51 lines
2.7 KiB
XML
51 lines
2.7 KiB
XML
<UserControl x:Class="TopCommandBarView"
|
|
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 DrawIsChecked}">
|
|
<Image Source="/Resources/TopCommandBar/New.png" Stretch="Uniform"/>
|
|
</Button>
|
|
<Button Command="{Binding OpenCommand}" ToolTip="{Binding OpenToolTip}"
|
|
ContextMenuService.Placement="Bottom" IsEnabled="{Binding DrawIsChecked}">
|
|
<Button.ContextMenu>
|
|
<ContextMenu ItemsSource="{Binding MruFileNames}" ItemContainerStyle="{StaticResource MruFileItem}">
|
|
</ContextMenu>
|
|
</Button.ContextMenu>
|
|
<Image Source="/Resources/TopCommandBar/Open.png" Stretch="Uniform"/>
|
|
</Button>
|
|
<Button Command="{Binding SaveCommand}" ToolTip="{Binding SaveToolTip}">
|
|
<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 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 OptionsCommand}" ToolTip="{Binding OptionsToolTip}">
|
|
<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>
|
|
<UniformGrid Rows="1">
|
|
<RadioButton Style="{StaticResource ModeButton}" Content="{Binding DrawMsg}" IsChecked="{Binding DrawIsChecked}"/>
|
|
<RadioButton Style="{StaticResource ModeButton}" Content="{Binding MachiningMsg}" IsChecked="{Binding MachiningIsChecked}"/>
|
|
</UniformGrid>
|
|
|
|
</StackPanel>
|
|
|
|
</UserControl>
|