IsEnabled属性在AppBarUtils中不起作用

时间:2014-01-08 23:23:48

标签: c# windows-phone-8 application-bar

在Windows Phone 8项目中使用AppBarUtils,我无法使IsEnabled AppBarButton属性生效。

似乎IsEnabled属性在以下代码片段中没有任何效果:

        <i:Interaction.Triggers>
            <abu:SelectedPivotItemChangedTrigger>
                <abu:SwitchAppBarAction>
                    <abu:AppBar Id="0">
                        <abu:AppBarButton IconUri="mypng.png" 
                                          Text="MyText" 
                                          IsEnabled="False"/>
                    </abu:AppBar>
                </abu:SwitchAppBarAction>
            </abu:SelectedPivotItemChangedTrigger>
        </i:Interaction.Triggers>

有没有办法克服这个限制?

0 个答案:

没有答案