예를 만들 수있는 여러 컨트롤, 당신은 단순히 하나의 /themes/generic.xaml 파일의 모든 기본 템플릿을 배치해야합니다. 각 컨트롤 템플릿은 TargetType
으로 식별됩니다. 그래서 generic.xaml을 파일과 같이 보일 것입니다 : -
<ResourceDictionary ... blah namespace stuff ...>
<Style TargetType="local:CustomControl1">
<Setter Property="Template">
<Setter.Value>
<ControlTemplate TargetType="local:CustomControl1">
<!-- Template for Custom control 1 -->
</ControlTemplate>
</Setter.Value>
</Setter>
</Style>
<Style TargetType="local:CustomControl2">
<Setter Property="Template">
<Setter.Value>
<ControlTemplate TargetType="local:CustomControl2">
<!-- Template for Custom control 2 -->
</ControlTemplate>
</Setter.Value>
</Setter>
</Style>
<!-- and so on -->
</ResourceDictionary>
실버 라이트 툴킷 chapies 당신이 자신의 파일의 각 컨트롤 템플릿을 배치 할 수 있습니다 깔끔한 도구가 않습니다. 도구는 이러한 모든 파일의 내용에서 generic.xaml을 동적으로 구성합니다. 나는 정말로 블로그에서 블로그를 사용하여 블로그를 사용하여 스스로 사용하는 방법을 찾을 수 있기를 바랍니다. 안녕하십니까? Msofties가 들리는 게 어때요?
감사합니다. Anthony! 저는 이에 대해 감사드립니다. 나는 MS 툴에 대해서 더 많이 듣고 싶다. –