ResourceDictionary dic = new ResourceDictionary { Source = new Uri("Styles.xaml",UriKind.Relative) };
Style style = (Style)dic["TextBlockStyle"];
ResourceDictionary dic0 = (ResourceDictionary)System.Windows.Application.LoadComponent(new Uri("Styles.xaml", UriKind.RelativeOrAbsolute));
Style style0 = (Style)dic0["TextBlockStyle"];

 

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-03-01
  • 2021-12-02
  • 2018-10-27
  • 2022-12-23
  • 2021-05-26
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案