public LocalStyleBoxTexture() { Texture = RelativeResource.Load <Texture>(GetType(), $"{GetType().Name}.png"); }
protected LocalSprite() { Name = GetType().Name; 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)); }