public ImagePanel(string name, Docking dock, TextureImage image, WidgetStyle style) : base(name, dock, style) { SizeMode = ImageSizeModes.ShrinkToFit; VAlign = Alignment.Center; HAlign = Alignment.Center; Image = image; ShouldDisposeImage = false; }
public ImagePanel(string name, Docking dock, string filePath, WidgetStyle style) : base(name, dock, style) { SizeMode = ImageSizeModes.ShrinkToFit; VAlign = Alignment.Center; HAlign = Alignment.Center; FilePath = filePath; ShouldDisposeImage = true; }
public CircleButton(string name, Docking dock, string text, ImageList imageList, string imageKey, WidgetStyle style) : base(name, dock, text, imageList, imageKey, style) { if ((style as CircleWidgetStyle) == null) { this.LogWarning("Style should be of type CircleWidgetStyle");; } Image.VAlign = Alignment.Near; Padding = Padding.Empty; }
public ImagePanel(string name, Docking dock, ImageList imageList, string imageKey, WidgetStyle style) : base(name, dock, style) { SizeMode = ImageSizeModes.ShrinkToFit; VAlign = Alignment.Center; HAlign = Alignment.Center; m_ImageList = imageList; ImageKey = imageKey; ShouldDisposeImage = false; }