AlgoTemplateToolBar - display menu items in same order as AlgoStudioWindow
This commit is contained in:
1 parent
edfa926e95
commit
9ac63751bc
1 file changed
+14
-15
@@ -61,6 +61,20 @@
|
||||
<Image Source="{x:Static u:Icons.AddBoxes}"/>
|
||||
</MenuItem.Header>
|
||||
</MenuItem>
|
||||
<MenuItem
|
||||
x:Name="PART_Rename_MenuItem"
|
||||
Command="{x:Static uag:AlgoTemplateToolBar.BeginSaveAsCommand}"
|
||||
CommandTarget="{Binding RelativeSource={RelativeSource TemplatedParent}}"
|
||||
Style="{StaticResource AlgoMenuItem}"
|
||||
Width="{x:Static sys:Double.NaN}"
|
||||
>
|
||||
<MenuItem.Header>
|
||||
<Image Source="{x:Static u:Icons.Pencil}"/>
|
||||
</MenuItem.Header>
|
||||
<MenuItem.ToolTip>
|
||||
<TextBlock Text="{Binding SelectedItem.name, RelativeSource={RelativeSource TemplatedParent}, StringFormat='{}Save \'{0}\' As..'}"/>
|
||||
</MenuItem.ToolTip>
|
||||
</MenuItem>
|
||||
<MenuItem
|
||||
x:Name="PART_Save_MenuItem"
|
||||
Command="{x:Static uag:AlgoTemplateToolBar.BeginSaveCommand}"
|
||||
@@ -75,21 +89,6 @@
|
||||
<TextBlock Text="{Binding SelectedItem.name, RelativeSource={RelativeSource TemplatedParent}, StringFormat='{}Save \'{0}\''}"/>
|
||||
</MenuItem.ToolTip>
|
||||
</MenuItem>
|
||||
<MenuItem
|
||||
x:Name="PART_Rename_MenuItem"
|
||||
Command="{x:Static uag:AlgoTemplateToolBar.BeginSaveAsCommand}"
|
||||
CommandTarget="{Binding RelativeSource={RelativeSource TemplatedParent}}"
|
||||
HorizontalContentAlignment="Center"
|
||||
Style="{StaticResource AlgoMenuItem}"
|
||||
Width="{x:Static sys:Double.NaN}"
|
||||
>
|
||||
<MenuItem.Header>
|
||||
<Image Source="{x:Static u:Icons.Pencil}"/>
|
||||
</MenuItem.Header>
|
||||
<MenuItem.ToolTip>
|
||||
<TextBlock Text="{Binding SelectedItem.name, RelativeSource={RelativeSource TemplatedParent}, StringFormat='{}Save \'{0}\' As..'}"/>
|
||||
</MenuItem.ToolTip>
|
||||
</MenuItem>
|
||||
<MenuItem
|
||||
x:Name="PART_Undo_MenuItem"
|
||||
Command="{TemplateBinding UndoCommand}"
|
||||
|
||||
Reference in new issue
Block a user