C# 如何取消设置默认样式';WPF中的二传手是谁?
有没有办法让我的控件从视觉父母那里继承它?可能是这样的C# 如何取消设置默认样式';WPF中的二传手是谁?,c#,wpf,C#,Wpf,有没有办法让我的控件从视觉父母那里继承它?可能是这样的 class MyControl : AnyParentClass { ... class MyControl : AnyParentClass { ... <MyControl Foreground="{Binding RelativeSource={RelativeSource AncestorType=UserControl}, Path=Foreground}" />
class MyControl : AnyParentClass { ...
class MyControl : AnyParentClass { ...
<MyControl
Foreground="{Binding RelativeSource={RelativeSource AncestorType=UserControl},
Path=Foreground}" />