How to just load whatever data is the resource, and then decide what type the data is and just load it on the element control?
public static dynamic ReadResource(System.String Parameter1)
{
return new System.Uri(@"pack://application:,,,/RESOURCES/" + Parameter1, System.UriKind.RelativeOrAbsolute);
}
var testing = ReadResource("resource1");
if (testing.GetType() == typeof(System.String)
MyLabel.Content = testing;
Thanks;