コード例 #1
0
        static void TreeView_SelectedItemChanged(object sender, WinRTXamlToolkit.Controls.RoutedPropertyChangedEventArgs <object> e)
        {
            WinRTXamlToolkit.Controls.TreeView s = (WinRTXamlToolkit.Controls.TreeView)sender;
            ICommand cmd   = s.GetValue(SelectionChangedTrigger.CommandProperty) as ICommand;
            object   param = e.NewValue;

            if (cmd != null && cmd.CanExecute(param))
            {
                cmd.Execute(param);
            }
        }
コード例 #2
0
 private void tvDataBound_SelectedItemChanged(object sender, WinRTXamlToolkit.Controls.RoutedPropertyChangedEventArgs <object> e)
 {
     //var selectCB =  tvDataBound.SelectedContainer.ItemsPanelRoot.FindName("selectCB") as CheckBox;
     //selectCB.IsChecked = !selectCB.IsChecked;
 }