①
BitmapImage source = Application.Current.Resources["OrganImage"] as BitmapImage;
②
BitmapImage source = this.FindResource("OrganImage") as BitmapImage;
BitmapImage source = this.TryFindResource("OrganImage") as BitmapImage;
this为FrameworkElement类型