Exemplo n.º 1
0
 protected override void DrawBackgroundImage(DrawingContext2D drawingContext)
 {
     if (IsMouseDown && PushedBackgroundImage != null)
     {
         PushedBackgroundImage.Draw(drawingContext, ClientRectangle);
     }
     else
     {
         base.DrawBackgroundImage(drawingContext);
     }
 }
Exemplo n.º 2
0
 protected override void LayoutOverride()
 {
     PushedBackgroundImage?.SetSize(Size);
     HoverOverlayImage?.SetSize(Size);
     PushedOverlayImage?.SetSize(Size);
 }