Exemplo n.º 1
0
        protected override void DrawOverride(DrawingContext2D drawingContext)
        {
            DrawText(drawingContext, TextAlignment.Center);

            if (IsMouseOver && HoverOverlayImage != null)
            {
                HoverOverlayImage.Draw(drawingContext, ClientRectangle);
            }
        }
Exemplo n.º 2
0
 protected override void LayoutOverride()
 {
     PushedBackgroundImage?.SetSize(Size);
     HoverOverlayImage?.SetSize(Size);
     PushedOverlayImage?.SetSize(Size);
 }
Exemplo n.º 3
0
 protected override void LayoutOverride()
 {
     HoverOverlayImage?.SetSize(Size);
     StateActiveImage?.SetSize(Size);
 }