public CodeUnitTestView() { InitializeComponent(); var page = Instance.GetPage; ContainerForTest.Children.Add(page); TestPage unitTestPage = page as TestPage; Microsoft.Silverlight.Testing.Controls.TreeView resultsView = unitTestPage.TreeView; resultsView.SelectedItemChanged += new RoutedPropertyChangedEventHandler <object>(TreeView_SelectedItemChanged); }
/// <summary> /// Initializes a new instance of the /// <see cref="T:System.Windows.Automation.Peers.TreeViewAutomationPeer" /> /// class. /// </summary> /// <param name="owner"> /// The <see cref="T:Microsoft.Silverlight.Testing.Controls.TreeView" /> to associate /// with the /// <see cref="T:System.Windows.Automation.Peers.TreeViewAutomationPeer" />. /// </param> public TreeViewAutomationPeer(TreeView owner) : base(owner) { }