generic.xaml に表示される既定のスタイルを参照するにはどうすればよいですか?
カスタム コントロールの既知のスタイルを返す静的クラスを作成しようとしています。App.xaml に存在するスタイルを取得する方法は知っていますが、一般的なスタイルを取得する方法がわかりません。
public static class VehicleTypes
{
public static readonly Style SportsCar = /*???Default style for VehicleIcon from generic.xaml*/;
public static readonly Style Sedan = Application.Current.Resources["SedanStyle"] as Style;
public static readonly Style Jeep = Application.Current.Resources["JeepStyle"] as Style;
...
}
ありがとう!