C# 自定义应用程序栏| Windows Phone
我正在尝试自定义Windows Phone应用程序中的菜单项。通常是这样的:C# 自定义应用程序栏| Windows Phone,c#,windows-phone,menuitem,appbar,C#,Windows Phone,Menuitem,Appbar,我正在尝试自定义Windows Phone应用程序中的菜单项。通常是这样的: <phone:PhoneApplicationPage.ApplicationBar> <shell:ApplicationBar IsVisible="True" IsMenuEnabled="True"> <shell:ApplicationBarIconButton IconUri="/Images/appbar_button1.png" Text="Butt
<phone:PhoneApplicationPage.ApplicationBar>
<shell:ApplicationBar IsVisible="True" IsMenuEnabled="True">
<shell:ApplicationBarIconButton IconUri="/Images/appbar_button1.png" Text="Button 1"/>
<shell:ApplicationBarIconButton IconUri="/Images/appbar_button2.png" Text="Button 2"/>
<shell:ApplicationBarIconButton IconUri="/Images/appbar_button3.png" Text="Button 3"/>
<shell:ApplicationBarIconButton IconUri="/Images/appbar_button4.png" Text="Button 4"/>
<shell:ApplicationBar.MenuItems>
<shell:ApplicationBarMenuItem Text="MenuItem 1"/>
<shell:ApplicationBarMenuItem Text="MenuItem 2"/>
</shell:ApplicationBar.MenuItems>
</shell:ApplicationBar>
</phone:PhoneApplicationPage.ApplicationBar>
我想从Coding4Fun实现ColorSlider,而不是MenuItem 1:
xmlns:fun="clr-namespace:Coding4Fun.Toolkit.Controls;assembly=Coding4Fun.Toolkit.Controls"
<fun:ColorSlider x:Name="colorSlider" Color="{Binding BGColor, Mode=TwoWay}" Orientation="Horizontal" Height="50" />
xmlns:fun=“clr命名空间:Coding4Fun.Toolkit.Controls;assembly=Coding4Fun.Toolkit.Controls”
我希望做到这一点:
不幸的是,我无法在shell中执行任何操作:ApplicationBarMenuItem。有没有可能实现这一点?内置的应用程序栏不允许这种定制级别。如果您想要实现这个结果,您别无选择,只能构建自己的应用程序—任何关于如何开始构建自己的应用程序栏(或其他对象,以便我知道如何开始)的代码示例或教程?我以前从未做过这样的事。