locked
Any code clip of XAML and C++ for ToggleMenuFlyout data binding?

    Question

  • The XAML clip is

    <Button x:Name="btnNavigate" Style="{StaticResource RefreshAppBarButtonStyle}" AutomationProperties.Name="Loop" Click="NavigationButton_Click">

                            <Button.Flyout>

                                <MenuFlyout>

                                    <ToggleMenuFlyoutItem Text="Shuffle" Tag="shuffle" IsChecked="{Binding IsShuffleEnabled, Mode=TwoWay}" Click="NavigationMenuFlyout_Click" />

                                    <ToggleMenuFlyoutItem Text="Repeat" Tag="repeat" IsChecked="{Binding IsRepeatEnabled, Mode=TwoWay}" Click="NavigationMenuFlyout_Click" />

                                </MenuFlyout>

                            </Button.Flyout>                   

    </Button>

    How can I bind IsShuffleEnabled and IsRepeatEnabled variables in C++?

    I do not understand how to use INotifyPropertyChanged method and there is no C++ example.  

    Monday, March 31, 2014 4:59 PM

Answers