Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/csharp/288.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
C# 自定义应用程序栏| Windows Phone_C#_Windows Phone_Menuitem_Appbar - Fatal编程技术网

C# 自定义应用程序栏| 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

我正在尝试自定义Windows Phone应用程序中的菜单项。通常是这样的:

<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。有没有可能实现这一点?

内置的应用程序栏不允许这种定制级别。如果您想要实现这个结果,您别无选择,只能构建自己的应用程序—任何关于如何开始构建自己的应用程序栏(或其他对象,以便我知道如何开始)的代码示例或教程?我以前从未做过这样的事。