PageRenderTime 50ms CodeModel.GetById 24ms RepoModel.GetById 0ms app.codeStats 0ms

/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
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Linq;
  4. using System.Text;
  5. using System.Windows;
  6. using System.Windows.Controls;
  7. using System.Windows.Data;
  8. using System.Windows.Documents;
  9. using System.Windows.Input;
  10. using System.Windows.Media;
  11. using System.Windows.Media.Imaging;
  12. using System.Windows.Navigation;
  13. using System.Windows.Shapes;
  14. namespace Microsoft.Research.DynamicDataDisplay.Samples.Internals.Views
  15. {
  16. /// <summary>
  17. /// Interaction logic for FlatDemonstrationView.xaml
  18. /// </summary>
  19. public partial class TreeDemonstrationView : ViewBase
  20. {
  21. public TreeDemonstrationView()
  22. {
  23. InitializeComponent();
  24. }
  25. private void OnLoaded(object sender, RoutedEventArgs e)
  26. {
  27. //tree.SetBinding(TreeView.SelectedValueProperty, new Binding { Source = ViewState.State, Path = new PropertyPath("SelectedValue") });
  28. SetBinding(SelectedValueProperty, new Binding { Source = tree, Path = new PropertyPath("SelectedValue") });
  29. }
  30. }
  31. }