Exemplo n.º 1
0
 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;
 }
Exemplo n.º 2
0
 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;
 }
Exemplo n.º 3
0
        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;
        }
Exemplo n.º 4
0
 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;
 }