Beispiel #1
0
 public MainWindow()
 {
     InitializeComponent();
     DataContext = this;
     MyProperty.Add(new RectOverlay()
     {
         wWidth = 100
     });
 }
Beispiel #2
0
 private void Button_Click_Refresh(object sender, RoutedEventArgs e)
 {
     Application.Current.Dispatcher.BeginInvoke(new Action(() =>
     {
         MyProperty.Clear();
         foreach (var item in (Process.GetProcesses().OrderBy(x => x.MainWindowTitle).ToList()))
         {
             MyProperty.Add(item);
         }
     }));
 }