/// <summary> /// gets the correct visual from the xaml /// </summary> public MessageBoxImageToImageSourceConverter() { var icons = new StyleInclude(new Uri($"resm:Styles?assembly={this.GetType().Namespace}")) { Source = new Uri(HandStopErrorResource) }; object icon = null; if (icons.TryGetResource("appbar_noentry", out icon)) { hand_stop_error = icon as IVisual; } }