728x90
반응형
WPF & C# - 코드로 값 바인딩하기 ( code / Binding / Property ) |
MainWindow.xaml.cs
1 2 3 4 5 | Binding myBinding = new Binding(); myBinding.Source = this; myBinding.Path = new PropertyPath("ActualHeight"); myBinding.Mode = BindingMode.OneWay; btn2.SetBinding(HeightProperty, myBinding ); | cs |
일단 바쁘니 예제는 다음에... ㅋ
728x90
반응형