protected LocalSprite() { Name = GetType().Name; Texture = RelativeResource.Load <Texture>(GetType(), $"{GetType().Name}.png"); }
public static string GetResourcePath(string resourceName) { return(RelativeResource.GetResourcePath(typeof(TLocal), resourceName)); }
public LocalStyleBoxTexture() { Texture = RelativeResource.Load <Texture>(GetType(), $"{GetType().Name}.png"); }
public static TResource Load <TResource>(string resourceName) where TResource : class { return(RelativeResource.Load <TResource>(typeof(TLocal), resourceName)); }