아래 코드와 같은 간단한 XAML 코드에 대해 질문하고 싶습니다.wpf 속성 상속
<Window x:Class="WpfApplication15.MainWindow"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
Title="MainWindow" Height="350" Width="525" Background="Orange" FontStyle="Italic">
<StackPanel>
<Label>blo</Label>
<Button>hi</Button>
<Button>hi2</Button>
</StackPanel>
</Window>
그래서 단순히 우리가 상상할 수있는, 늘 기본으로 할 것이다 오렌지 될 배경 오렌지하지만 버튼의 배경 색상 레이블,하지만 모든 컨트롤의 fontStyle 기울임 꼴이 될 것이다, 그래서 질문은 즉! 루트 아래에있는 모든 컨트롤의 fontstyle이 버튼의 배경에 영향을 미치는 이유는 무엇입니까 ??
그래서 내가 속성이 파손 여부를 할 수있는 기억해야 할 트릭을하고있다! 논리적으로 솔리드 대답이 필요합니다. – user418308