PageRenderTime 4ms CodeModel.GetById 1ms app.highlight 1ms RepoModel.GetById 1ms app.codeStats 1ms

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