This project is read-only.
1
Vote

Не срабатывает событие StateChanged для AdvancedApplicationBar

description

Не срабатывает событие StateChanged для AdvancedApplicationBar.
 
 
private void AppBarStatus_StateChanged(object sender, Microsoft.Phone.Shell.ApplicationBarStateChangedEventArgs e)
    {
        var appBar = sender as AdvancedApplicationBar;
        if (appBar == null)
            return;
        appBar.Opacity = e.IsMenuVisible ? 0.9 : 0.5;
    }
 
 
<WPExtensions:AdvancedApplicationBar x:Name="AppBarStatus" IsVisible="True" IsMenuEnabled="True" Opacity="0.5" StateChanged="AppBarStatus_StateChanged">
        <WPExtensions:AdvancedApplicationBarIconButton x:Name="AppBarBtnStatusHelp" IconUri="/Images/AppBar/Help.png" Text="справка" />
        <WPExtensions:AdvancedApplicationBarMenuItem x:Name="AppBarBtnStatusAbout" Text="о приложении" Click="AppBarBtnStatusAbout_Click" />
    </WPExtensions:AdvancedApplicationBar>

comments