VPet/VPet-Simulator.Core/Display/ToolBar.xaml
2022-12-28 18:03:47 +08:00

32 lines
1.4 KiB
XML

<UserControl x:Class="VPet_Simulator.Core.ToolBar" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
xmlns:d="http://schemas.microsoft.com/expression/blend/2008" xmlns:local="clr-namespace:VPet_Simulator.Core"
mc:Ignorable="d" xmlns:pu="clr-namespace:Panuon.WPF.UI;assembly=Panuon.WPF.UI"
MouseEnter="UserControl_MouseEnter" MouseLeave="UserControl_MouseLeave" Height="500" Width="500">
<UserControl.Resources>
<ResourceDictionary Source="Theme.xaml" />
</UserControl.Resources>
<Grid>
<Menu Width="500"
VerticalAlignment="Bottom"
Style="{DynamicResource ToolBarMenuStyle}">
<Menu.ItemsPanel>
<ItemsPanelTemplate>
<UniformGrid Columns="5"/>
</ItemsPanelTemplate>
</Menu.ItemsPanel>
<MenuItem Header="投喂">
<MenuItem Header="食物" />
<MenuItem Header="饮料" />
<MenuItem Header="药品" />
</MenuItem>
<MenuItem Header="面板" />
<MenuItem Header="打工" />
<MenuItem Header="睡觉" />
<MenuItem Header="设置"
Click="MenuSetting_Click"/>
</Menu>
</Grid>
</UserControl>