public Restorebutton() { InitializeComponent(); PreviewMouseLeftButtonDown += delegate { MouseOverAnimations.AltInterfacePreviewMouseOver(PolyFill, BorderBrushKey); }; MouseLeftButtonUp += delegate { WindowLogic.Fullscreen_Restore(); }; MouseEnter += delegate { if (!Properties.Settings.Default.Fullscreen) { ToolTip = Application.Current.Resources["Fullscreen"]; } else { ToolTip = Application.Current.Resources["RestoreDown"]; } MouseOverAnimations.AltInterfaceMouseOver(PolyFill, CanvasBGcolor, BorderBrushKey); }; MouseLeave += delegate { MouseOverAnimations.AltInterfaceMouseLeave(PolyFill, CanvasBGcolor, BorderBrushKey); }; }
public FullscreenButton() { InitializeComponent(); PreviewMouseLeftButtonDown += delegate { PreviewMouseButtonDownAnim(FullscreenButtonBrush); }; MouseEnter += delegate { if (Properties.Settings.Default.Fullscreen) { ToolTip = Application.Current.Resources["RestoreDown"]; } else { ToolTip = Application.Current.Resources["Fullscreen"]; } ButtonMouseOverAnim(FullscreenButtonBrush, true); }; MouseLeave += delegate { ButtonMouseLeaveAnim(FullscreenButtonBrush, true); }; TheButton.Click += delegate { WindowLogic.Fullscreen_Restore(); }; }