Files
OmagPHOTO/TopCommandBar/TopCommandBarV.xaml
Nicola Pievani 9b5eacf876 OmagPHOTO 2.2h1:
-> gestione delle immagini tramite libreria EgtSTONELib.
2020-08-18 15:43:33 +00:00

49 lines
2.2 KiB
XML

<StackPanel x:Class="TopCommandBarV"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:OmagPHOTO="clr-namespace:OmagPHOTO"
Orientation="Horizontal">
<!--Barra superiore dei comandi-->
<Button Command="{Binding NewCommand}"
ToolTip="{Binding NewToolTip}">
<Image Source="/Resources/TopCommandBar/New.png" Stretch="Uniform"/>
</Button>
<ToggleButton IsChecked="{Binding Search_IsChecked}"
IsEnabled="{Binding Search_IsEnabled}"
ToolTip="{Binding SearchToolTip}">
<Image Source="/Resources/TopCommandBar/Search.png" Stretch="Uniform"/>
</ToggleButton>
<!--<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 OptionsCommand}"
ToolTip="{Binding OptionsToolTip}"
IsEnabled="{Binding IsEnabled}">
<Image Source="/Resources/TopCommandBar/Options.png" Stretch="Uniform"/>
</Button>
</StackPanel>