예제 #1
0
 protected override void UpdateForegroundColour()
 {
     if (State == MenuItemState.Selected)
     {
         Foreground.FadeColour(ForegroundColourHover);
     }
     else
     {
         base.UpdateForegroundColour();
     }
 }
예제 #2
0
 protected override void FormatForeground(bool hover = false)
 {
     Foreground.FadeColour(hover ? ForegroundColourHover : (IsSelected ? ForegroundColourSelected : ForegroundColour));
 }
예제 #3
0
 protected override void UpdateForegroundColour()
 {
     Foreground.FadeColour(IsHovered ? ForegroundColourHover : (IsSelected ? ForegroundColourSelected : ForegroundColour));
 }