<Controls:MetroWindow.LeftWindowCommands> //窗口工具栏左边部分
<Controls:WindowCommands> //窗口布局
<Button Click="LaunchMahAppsOnGitHub" ToolTip="MahApps.Metro on GitHub">
<iconPacks:PackIconModern Width="22"
Height="22"
Kind="SocialGithubOctocat" />
</Button>
</Controls:WindowCommands>
</Controls:MetroWindow.LeftWindowCommands>
<Controls:MetroWindow.RightWindowCommands> //窗口工具栏右边部分
<Controls:WindowCommands ShowLastSeparator="False">
//ShowLastSeparator="False"是否在最后显示分隔符
<Button Click="LaunchVisualStudioDemo"
Content="VS"
ToolTip="Visual Studio style demo" />
<Button Click="LaunchFlyoutDemo"
Content="Flyouts"
ToolTip="Flyouts demo window" />
<Button Click="LaunchIcons"
Content="Icons"
ToolTip="All MahApp icons" />
<Button Click="LauchCleanDemo"
Content="Clean"
ToolTip="Clean window style demo" />
<Button Click="InteropDemo"
Content="Interop"
ToolTip="The interop demo" />
<Button Click="LaunchNavigationDemo"
Content="Navigation"
ToolTip="Window navigation demo" />
<ToggleButton x:Name="MagicToggleButton"
Content="ToggleButton"
IsChecked="{Binding MagicToggleButtonIsChecked}"
ToolTip="Shows the toggle button magic" />
<ToggleButton Content="Confirm quit"
IsChecked="{Binding QuitConfirmationEnabled}"
ToolTip="Enable quit confirmation dialog on exit" />
</Controls:WindowCommands>
</Controls:MetroWindow.RightWindowCommands>
MahApps.Metro之窗口标题工具栏
最新推荐文章于 2024-08-08 07:27:14 发布