Beispiel #1
0
        void Window1_Loaded(object sender, RoutedEventArgs e)
        {
            RandomTreeNode root = new RandomTreeNode() { Name = "Root" };
            //KeyTreeNode root = new KeyTreeNode() { Key = Registry.CurrentUser };

            //myTreeView.ItemsSource = root.Children;
            myVTreeView.Data.AddRootItems(root.Children);

            #region Comparison Code
            DT = new DispatcherTimer();
            DT.Interval = new TimeSpan(0, 0, 2);
            DT.Tick += new EventHandler(DT_Tick);
            DT.Start();
            #endregion
        }
        void Window1_Loaded(object sender, RoutedEventArgs e)
        {
            RandomTreeNode root = new RandomTreeNode()
            {
                Name = "Root"
            };

            //KeyTreeNode root = new KeyTreeNode() { Key = Registry.CurrentUser };


            //myTreeView.ItemsSource = root.Children;
            myVTreeView.Data.AddRootItems(root.Children);

            #region Comparison Code
            DT          = new DispatcherTimer();
            DT.Interval = new TimeSpan(0, 0, 2);
            DT.Tick    += new EventHandler(DT_Tick);
            DT.Start();
            #endregion
        }