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

  • Question

  • The XAML clip is

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



                                    <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" />




    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