.NetFramework
What is the template binding ?
ETIT
2020. 10. 10. 13:55
Question
<ControlTemplate TargetType="{x:Type wpftoolkit:DataGridCell}">
<Border Padding="{TemplateBinding Padding}"
BorderBrush="{TemplateBinding BorderBrush}"
BorderThickness="{TemplateBinding BorderThickness}"
Background="{TemplateBinding Background}"
SnapsToDevicePixels="True">
<ContentPresenter SnapsToDevicePixels="{TemplateBinding SnapsToDevicePixels}"/>
</Border>
</ControlTemplate>
Why do template bindings?
Answer..
추가적으로
- 컴파일 타임에 평가
- 단방향 바인딩
- 원본 및 대상 속성이 모두 종속성 속성