[WPF] Control Template WPF 2012. 3. 14. 17:13
컨트롤 템플릿은 다양한 UI 형태로 만들기 위한 경우 이용이 됩니다.

다음은 버튼을 이용한 예제 입니다.

<Button Height="30" HorizontalAlignment="Center" Name="Btn" VerticalAlignment="Center" Width="100" Click="Btn_Click">
            <Button.Template>
                <ControlTemplate TargetType="Button">
                    <Grid>
                        <Ellipse Fill="Blue" Stroke="Yellow"/>
                        <ContentPresenter HorizontalAlignment="Center" VerticalAlignment="Center" />
                    </Grid>
                </ControlTemplate>
            </Button.Template>
        </Button>