标签: c# wpf xaml resourcedictionary
当您在xaml资源中编写App.xaml匿名风格(无密钥)时,它适用于应用程序中的所有TargetTypes。
xaml
App.xaml
TargetTypes
即:
<Style TargetType="SplitView"> <Setter Property="OpenPaneLength" Value="110"/> </Style>
将所有SplitView的{{1}}设为110 有没有办法以编程方式在运行时更改匿名样式的属性。
SplitView