■ TemplateBinding 태그 확장 사용하기

----------------------------------------------------------------------------------------------------

<ControlTemplate TargetType="ContentControl">

    <ContentPresenter

        Content="{TemplateBinding Content}"

        ContentTemplate="{TemplateBinding ContentTemplate}"

        Cursor="{TemplateBinding Cursor}"

        Margin="{TemplateBinding Padding}"

        HorizontalAlignment="{TemplateBinding HorizontalContentAlignment}"

        VerticalAlignment="{TemplateBinding VerticalContentAlignment}" />

</ControlTemplate>

----------------------------------------------------------------------------------------------------

Posted by 사용자 icodebroker
TAG

댓글을 달아 주세요