feat: layout calculation.

This commit is contained in:
rabbitism
2024-02-21 22:48:11 +08:00
parent ab4b74d055
commit 6f4e11c7f5
6 changed files with 166 additions and 34 deletions

View File

@@ -10,15 +10,16 @@
mc:Ignorable="d" d:DesignWidth="800" d:DesignHeight="450"
x:Class="Ursa.Demo.Pages.ToolBarDemo">
<StackPanel>
<u:ToolBar>
<u:ToolBar HorizontalAlignment="Left">
<Button Content="Button 1" />
<Button Content="Button 2" />
<Button Content="Button 3" />
<Button Content="Button 3" u:ToolBar.OverflowMode="Always" />
</u:ToolBar>
<u:ToolBar ItemsSource="{Binding Items}">
<u:ToolBar ItemsSource="{Binding Items}" HorizontalAlignment="Left">
<u:ToolBar.ItemTemplate>
<template:ToolBarItemTemplateSelector/>
</u:ToolBar.ItemTemplate>
</u:ToolBar>
<CheckBox Content="Check"></CheckBox>
</StackPanel>
</UserControl>