/Main/src/Xbap/DynamicDataDisplay.Xbap.Samples/Internals/Views/TreeDemonstrationView.xaml.cs
C# | 34 lines | 27 code | 3 blank | 4 comment | 0 complexity | 8c995288a67feb65117291d7d2bd668f MD5 | raw file
Possible License(s): CC-BY-SA-3.0
1using System; 2using System.Collections.Generic; 3using System.Linq; 4using System.Text; 5using System.Windows; 6using System.Windows.Controls; 7using System.Windows.Data; 8using System.Windows.Documents; 9using System.Windows.Input; 10using System.Windows.Media; 11using System.Windows.Media.Imaging; 12using System.Windows.Navigation; 13using System.Windows.Shapes; 14 15namespace Microsoft.Research.DynamicDataDisplay.Samples.Internals.Views 16{ 17 /// <summary> 18 /// Interaction logic for FlatDemonstrationView.xaml 19 /// </summary> 20 public partial class TreeDemonstrationView : ViewBase 21 { 22 public TreeDemonstrationView() 23 { 24 InitializeComponent(); 25 } 26 27 private void OnLoaded(object sender, RoutedEventArgs e) 28 { 29 //tree.SetBinding(TreeView.SelectedValueProperty, new Binding { Source = ViewState.State, Path = new PropertyPath("SelectedValue") }); 30 SetBinding(SelectedValueProperty, new Binding { Source = tree, Path = new PropertyPath("SelectedValue") }); 31 } 32 33 } 34}