原文:
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"];
posted on 2019-04-29 11:42 阅读( ...) 评论( ...)