Loading

WPF Uri反射加载XAML

var uri = new Uri(@"View\Basic\ChartView.xaml", UriKind.Relative);
var xamlModel = Application.LoadComponent(uri);

xamlModel即反射的XAML对象

posted @ 2021-03-26 17:51  Stay627  阅读(253)  评论(0编辑  收藏  举报