示例#1
0
 public MediaHeights(MediaHeights settings)
 {
     HeightXs           = settings.HeightXs != null ? settings.HeightXs : null;
     HeightMs           = settings.HeightMs > 0 ? settings.HeightMs : HeightXs;
     HeightSm           = settings.HeightSm > 0 ? settings.HeightSm : HeightMs;
     HeightMd           = settings.HeightMd > 0 ? settings.HeightMd : HeightSm;
     HeightLg           = settings.HeightLg > 0 ? settings.HeightLg : HeightMd;
     HeightXl           = settings.HeightXl > 0 ? settings.HeightXl : HeightLg;
     HeightXxl          = settings.HeightXxl > 0 ? settings.HeightXxl : HeightXl;
     InheritedValuesSet = true;
 }
示例#2
0
 public MediaViewModel()
 {
     GridSettings = new GridSettings();
     MediaHeights = new MediaHeights();
     MediaType    = RenderMediaTypes.Image;
 }