■ ControlTemplate 엘리먼트 : ContentControl 엘리먼트 정의하기

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

<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

댓글을 달아 주세요