feat: unify to only one template.

This commit is contained in:
rabbitism
2024-02-23 18:27:43 +08:00
parent 0965f9d1f8
commit 791269a34e
2 changed files with 20 additions and 57 deletions

View File

@@ -23,20 +23,13 @@
<Button u:ToolBar.OverflowMode="AsNeeded" Content="Button 3" />
<ToggleButton Content="Toggle"></ToggleButton>
</u:ToolBar>
<u:ToolBar
HorizontalAlignment="Left"
DockPanel.Dock="Top"
ItemsSource="{Binding Items}">
<u:ToolBar.ItemTemplate>
<template:ToolBarItemTemplateSelector />
</u:ToolBar.ItemTemplate>
</u:ToolBar>
<u:EnumSelector EnumType="Orientation" Name="Orientation" DockPanel.Dock="Top"></u:EnumSelector>
<u:ToolBar
HorizontalAlignment="Left"
VerticalAlignment="Top"
DockPanel.Dock="Top"
ItemsSource="{Binding Items}"
Orientation="Vertical">
Orientation="{Binding #Orientation.Value}"
ItemsSource="{Binding Items}">
<u:ToolBar.ItemTemplate>
<template:ToolBarItemTemplateSelector />
</u:ToolBar.ItemTemplate>