프로그래밍/WPF
[WPF] Binding 시, 자기 자신의 Property를 바인딩 하는 법
흔한티벳여우
2022. 4. 15. 18:10
반응형
바인딩 시, 자기 자신의 값을 바인딩을 하는 방법이다.
<CheckBox Margin="3" Content="Clear Selected OEM"
Command="{Binding Path=ClearOemCommand}"
CommandParameter="{Binding Path=IsChecked, RelativeSource={RelativeSource Self}}" />
RelativeSource에서 Self로 하면 자기 스스로 데이터를 땡겨올 수 있다.
반응형