-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathWindow1.xaml.cs
27 lines (24 loc) · 1 KB
/
Window1.xaml.cs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
namespace LambdaPropertyPerformanceApp
{
public partial class Window1
{
public Window1()
{
InitializeComponent();
DataContext = new PropertyChangeTestViewModel();
ButtonINotifyNoBinding.Click += (o, e) => { MyViewModel.RunINotifyNoBinding(); };
ButtonINotifyWithBinding.Click += (o, e) => { MyViewModel.RunINotifyWithBinding(); };
ButtonLambdaNoBinding.Click += (o, e) => { MyViewModel.RunLambdaNoBinding(); };
ButtonLambdaWithBinding.Click += (o, e) => { MyViewModel.RunLambdaWithBinding(); };
ButtonDependencyObjectNoBinding.Click += (o, e) => { MyViewModel.RunDependencyObjectNoBinding(); };
ButtonDependencyObjectWithBinding.Click += (o, e) => { MyViewModel.RunDependencyObjectWithBinding(); };
}
public PropertyChangeTestViewModel MyViewModel
{
get
{
return DataContext as PropertyChangeTestViewModel;
}
}
}
}