Пример #1
0
 public LocalStyleBoxTexture()
 {
     Texture = RelativeResource.Load <Texture>(GetType(), $"{GetType().Name}.png");
 }
Пример #2
0
 protected LocalSprite()
 {
     Name    = GetType().Name;
     Texture = RelativeResource.Load <Texture>(GetType(), $"{GetType().Name}.png");
 }
Пример #3
0
 public static TResource Load <TResource>(string resourceName)
     where TResource : class
 {
     return(RelativeResource.Load <TResource>(typeof(TLocal), resourceName));
 }