0
你可以爲容器(網格,畫布等)聲明一個樣式嗎?它會級聯到其他類型的包含元素嗎?wpf style cascade
例如:
<Grid>
<Declare some style with target type of Label/>
<label Name="ElementIwantStyleAppliedTo1" Content="Foo"/>
<StackPanel>
<label Name="ElementIwantStyleAppliedTo2" Content="Foo"/>
</StackPanel>
</Grid>