질문이 있습니다스타일을 가져온 위치는 어디입니까?
저는 새로운 win8 메트로 앱을 만들었지 만 스타일을 어디에서 가져 오는지는 알 수 없습니다. 스타일 파일의 App.xaml 이름이 변경되었습니다. 그것을 가져 난 때 내 Style.xaml이
<!-- Page layout roots typically use entrance animations and a theme-appropriate background color -->
<Style x:Key="LayoutRootStyle" TargetType="Panel">
<Setter Property="Background" Value="White"/>
<Setter Property="ChildrenTransitions">
<Setter.Value>
<TransitionCollection>
<EntranceThemeTransition/>
</TransitionCollection>
</Setter.Value>
</Setter>
</Style>
처럼 보인다하지만 여전히 나는 금 문자를 가지고, 내 버튼을 흰색으로 변경합니다. 기본 StandardStyles.xaml과 동일
내가 뭘 잘못하고 있니? 아니면 제대로 작동합니까?
또한 WPF와 다릅니다. BackgroundProperty와 같은 종속성 속성이 시각적 트리 조상에서 값을 상속받을 수 있다고 생각합니다. 목성에서는 어딘가에 명시 적으로 설정해야합니다. –