浏览代码

remove debug code.

Dan Walmsley 5 年之前
父节点
当前提交
a5c3b3e2b5
共有 1 个文件被更改,包括 0 次插入9 次删除
  1. 0 9
      samples/ControlCatalog/MainWindow.xaml.cs

+ 0 - 9
samples/ControlCatalog/MainWindow.xaml.cs

@@ -5,7 +5,6 @@ using Avalonia.Controls;
 using Avalonia.Controls.Notifications;
 using Avalonia.Input;
 using Avalonia.Markup.Xaml;
-using Avalonia.Threading;
 using ControlCatalog.ViewModels;
 
 namespace ControlCatalog
@@ -14,7 +13,6 @@ namespace ControlCatalog
     {
         private WindowNotificationManager _notificationArea;
         private NativeMenu _recentMenu;
-        private int seconds = 0;
         public MainWindow()
         {
             this.InitializeComponent();
@@ -31,13 +29,6 @@ namespace ControlCatalog
             DataContext = new MainWindowViewModel(_notificationArea);
             _recentMenu = ((NativeMenu.GetMenu(this).Items[0] as NativeMenuItem).Menu.Items[2] as NativeMenuItem).Menu;
 
-            var timer = new DispatcherTimer();
-            timer.Interval = TimeSpan.FromSeconds(1);
-            timer.Tick += (sender, e) =>
-            {                
-                ((NativeMenu.GetMenu(this).Items[0] as NativeMenuItem).Menu.Items[2] as NativeMenuItem).Header = $"Recent {seconds++}";
-            };
-            timer.Start();
             var mainMenu = this.FindControl<Menu>("MainMenu");
             mainMenu.AttachedToVisualTree += MenuAttached;
         }