Files
EgtDOORCreator/ProjectManager/ProjectManagerHardwareV.xaml
T
2024-12-16 12:07:28 +01:00

120 lines
5.0 KiB
XML

<UserControl x:Class="ProjectManagerHardwareV"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml">
<StackPanel Orientation="Horizontal"
IsEnabled="{Binding EnableProjectManagerHardware}"
Height="32">
<!--Barra superiore dei comandi-->
<!--nuovo brand-->
<Button Command="{Binding NewDirCommand}"
ToolTip="{Binding NewDirToolTip}"
Focusable="False"
Style="{DynamicResource DoorsBtn}">
<ContentControl>
<Image Source="{DynamicResource NewFolder}" Stretch="Uniform"/>
</ContentControl>
</Button>
<!--nuovo template-->
<Button Command="{Binding NewCommand}"
ToolTip="{Binding NewToolTip}"
Focusable="False"
Style="{DynamicResource DoorsBtn}">
<ContentControl>
<Image Source="{DynamicResource NewFile}" Stretch="Uniform"/>
</ContentControl>
</Button>
<!--salva-->
<Button Command="{Binding SaveCommand}"
ToolTip="{Binding SaveToolTip}"
Focusable="False"
Style="{DynamicResource DoorsBtn}">
<!--<Image Source="{Binding IsModifiedImage}" Stretch="Uniform"/>-->
<ContentControl>
<Image Source="{DynamicResource Save}" Stretch="Uniform"/>
</ContentControl>
</Button>
<!--duplica-->
<Button Command="{Binding DuplicaCommand}"
ToolTip="{Binding DuplicaToolTip}"
Focusable="False"
Style="{DynamicResource DoorsBtn}">
<ContentControl>
<Image Source="{DynamicResource CopyFile}" Stretch="Uniform"/>
</ContentControl>
</Button>
<!--elimina-->
<Button Command="{Binding DeleteCommand}"
ToolTip="{Binding DeleteToolTip}"
Focusable="False"
Visibility="{Binding DisableDeleteCommandHM}"
Style="{DynamicResource DoorsBtn}">
<ContentControl>
<Image Source="{DynamicResource DeleteFile}" Stretch="Uniform"/>
</ContentControl>
</Button>
<!--Aaggiorna-->
<Button Command="{Binding RefreshDirCommand}"
ToolTip="{Binding RefreshDirToolTip}"
Focusable="False"
Style="{DynamicResource DoorsBtn}">
<ContentControl>
<Image Source="{DynamicResource Refresh}" Stretch="Uniform"/>
</ContentControl>
</Button>
<!--go back door-->
<!--
<Button Command="{Binding DoorCommand}" ToolTip="{Binding DoorToolTip}" Focusable="False">
<ContentControl>
<Image Source="/Resources/TopCommandBar/Door.png" Stretch="Uniform" />
</ContentControl>
</Button>-->
<!--<Button Command="{Binding DimensionCommand}" ToolTip="{Binding DimensionToolTip}" Focusable="False">
<ContentControl>
<Image Source="/Resources/TopCommandBar/HPart.png" Stretch="Uniform" Width="25" Height="17" RenderTransformOrigin="0.497,0.509" />
</ContentControl>
</Button>-->
<!--Opzioni-->
<Button Command="{Binding OptionsCommand}"
ToolTip="{Binding OptionsToolTip}"
Focusable="False"
Width="{Binding RelativeSource={RelativeSource Self}, Path=ActualHeight}"
Style="{DynamicResource DoorsBtn}">
<ContentControl>
<Image Source="{DynamicResource Option}" Height="22" Stretch="Uniform"/>
</ContentControl>
</Button>
<!--feed back-->
<Button Command="{Binding SendFeedbackCommand}"
ToolTip="{Binding SendFeedbackToolTip}"
Focusable="False"
Style="{DynamicResource DoorsBtn}">
<ContentControl>
<Image Source="{DynamicResource FeedBack}" Height="22" Stretch="Uniform"/>
</ContentControl>
</Button>
<!--help-->
<Button Command="{Binding GuideCommand}"
ToolTip="{Binding GuideToolTip}"
Focusable="False"
Style="{DynamicResource DoorsBtn}">
<ContentControl>
<Image Source="{DynamicResource Help}" Stretch="Uniform"/>
</ContentControl>
</Button>
<!--Door-->
<RadioButton Command="{Binding DoorCommand}"
Content="{Binding DoorToolTip}"
ToolTip="{Binding DoorToolTip}"
Style="{DynamicResource ModeButton}">
</RadioButton>
<!--Hardware-->
<RadioButton Content="{Binding HardwareToolTip}"
ToolTip="{Binding HardwareToolTip}"
IsChecked="{Binding HardwareIsChecked}"
Style="{DynamicResource ModeButton}">
</RadioButton>
</StackPanel>
</UserControl>