public MenuCloseButton() { InitializeComponent(); Loaded += delegate { PreviewMouseLeftButtonDown += (s, x) => PreviewMouseButtonDownAnim(CloseButtonBrush); MouseEnter += (s, x) => ButtonMouseOverAnim(CloseButtonBrush, true); MouseLeave += (s, x) => ButtonMouseLeaveAnimBgColor(CloseButtonBrush, false); TheButton.Click += delegate { UC.Close_UserControls(); }; }; }
public SlideshowButton() { InitializeComponent(); Loaded += delegate { TheButton.PreviewMouseLeftButtonDown += (s, x) => PreviewMouseButtonDownAnim(SlideshowButtonBrush); TheButton.MouseEnter += (s, x) => ButtonMouseOverAnim(SlideshowButtonBrush, true); TheButton.MouseLeave += (s, x) => ButtonMouseLeaveAnimBgColor(SlideshowButtonBrush, false); TheButton.Click += delegate { UC.Close_UserControls(); Slideshow.StartSlideshow(); }; var s = Application.Current.Resources["StartSlideshow"] as string; s += " [F5]"; ToolTip = s; }; }
public MenuCloseButton() { InitializeComponent(); Loaded += delegate { PreviewMouseLeftButtonDown += (s, x) => PreviewMouseButtonDownAnim(CloseButtonBrush); MouseEnter += (s, x) => ButtonMouseOverAnim(CloseButtonBrush, true); MouseLeave += (s, x) => ButtonMouseLeaveAnimBgColor(CloseButtonBrush, false); if (!Properties.Settings.Default.DarkTheme) { AnimationHelper.LightThemeMouseEvent(this, IconBrush); } TheButton.Click += delegate { UC.Close_UserControls(); }; }; }
public FileMenu() { InitializeComponent(); PasteButton.PreviewMouseLeftButtonDown += delegate { UC.Close_UserControls(); }; // OpenBorder OpenBorder.PreviewMouseLeftButtonDown += delegate { PreviewMouseButtonDownAnim(OpenBorderFill); }; OpenBorder.MouseEnter += delegate { ButtonMouseOverAnim(OpenBorderFill); }; OpenBorder.MouseEnter += delegate { AnimationHelper.MouseEnterBgTexColor(OpenBorderBrush); }; OpenBorder.MouseLeave += delegate { ButtonMouseLeaveAnim(OpenBorderFill); }; OpenBorder.MouseLeave += delegate { AnimationHelper.MouseLeaveBgTexColor(OpenBorderBrush); }; // PrintBorder PrintBorder.PreviewMouseLeftButtonDown += delegate { PreviewMouseButtonDownAnim(PrintFill); }; PrintBorder.MouseEnter += delegate { ButtonMouseOverAnim(PrintFill); }; PrintBorder.MouseEnter += delegate { AnimationHelper.MouseEnterBgTexColor(PrintBrush); }; PrintBorder.MouseLeave += delegate { ButtonMouseLeaveAnim(PrintFill); }; PrintBorder.MouseLeave += delegate { AnimationHelper.MouseLeaveBgTexColor(PrintBrush); }; // SaveBorder SaveBorder.PreviewMouseLeftButtonDown += delegate { PreviewMouseButtonDownAnim(SaveFill); }; SaveBorder.MouseEnter += delegate { ButtonMouseOverAnim(SaveFill); }; SaveBorder.MouseEnter += delegate { AnimationHelper.MouseEnterBgTexColor(SaveBrush); }; SaveBorder.MouseLeave += delegate { ButtonMouseLeaveAnim(SaveFill); }; SaveBorder.MouseLeave += delegate { AnimationHelper.MouseLeaveBgTexColor(SaveBrush); }; // FileLocationBorder FileLocationBorder.PreviewMouseLeftButtonDown += delegate { PreviewMouseButtonDownAnim(FileLocationFill); }; FileLocationBorder.MouseEnter += delegate { ButtonMouseOverAnim(FileLocationFill); }; FileLocationBorder.MouseEnter += delegate { AnimationHelper.MouseEnterBgTexColor(FileLocationBrush); }; FileLocationBorder.MouseLeave += delegate { ButtonMouseLeaveAnim(FileLocationFill); }; FileLocationBorder.MouseLeave += delegate { AnimationHelper.MouseLeaveBgTexColor(FileLocationBrush); }; // CopyButton CopyButton.TheButton.Click += delegate { UC.Close_UserControls(); FileHandling.Copy_Paste.Copyfile(); }; }
public SlideshowButton() { InitializeComponent(); Loaded += delegate { TheButton.PreviewMouseLeftButtonDown += (s, x) => PreviewMouseButtonDownAnim(SlideshowButtonBrush); TheButton.MouseEnter += (s, x) => ButtonMouseOverAnim(SlideshowButtonBrush, true); TheButton.MouseLeave += (s, x) => ButtonMouseLeaveAnimBgColor(SlideshowButtonBrush, false); TheButton.Click += delegate { UC.Close_UserControls(); Slideshow.StartSlideshow(); }; var s = Application.Current.Resources["StartSlideshow"] as string; s += " [F5]"; ToolTip = s; if (!Properties.Settings.Default.DarkTheme) { AnimationHelper.LightThemeMouseEvent(this, SlideshowBrush); } }; }
public ToolsAndEffectsMenu() { InitializeComponent(); // ResizeButton ResizeButton.PreviewMouseLeftButtonDown += delegate { PreviewMouseButtonDownAnim(ResizeButtonBrush); }; ResizeButton.MouseEnter += delegate { ButtonMouseOverAnim(ResizeText); ButtonMouseOverAnim(ResizeFill); AnimationHelper.MouseEnterBgTexColor(ResizeButtonBrush); }; ResizeButton.MouseLeave += delegate { ButtonMouseLeaveAnim(ResizeText); ButtonMouseLeaveAnim(ResizeFill); AnimationHelper.MouseLeaveBgTexColor(ResizeButtonBrush); }; ResizeButton.Click += delegate { UC.Close_UserControls(); LoadWindows.ResizeAndOptimizeWindow(); Batch_Resize.UpdateValues(); }; // EffectsButton EffectsButton.PreviewMouseLeftButtonDown += delegate { PreviewMouseButtonDownAnim(EffectsButtonBrush); }; EffectsButton.MouseEnter += delegate { ButtonMouseOverAnim(EffectsText); ButtonMouseOverAnim(EffectsFill); AnimationHelper.MouseEnterBgTexColor(EffectsButtonBrush); }; EffectsButton.MouseLeave += delegate { ButtonMouseLeaveAnim(EffectsText); ButtonMouseLeaveAnim(EffectsFill); AnimationHelper.MouseLeaveBgTexColor(EffectsButtonBrush); }; EffectsButton.Click += delegate { UC.Close_UserControls(); LoadWindows.EffectsWindow(); }; // CropButton CropButton.PreviewMouseLeftButtonDown += delegate { PreviewMouseButtonDownAnim(CropButtonBrush); }; CropButton.MouseEnter += delegate { ButtonMouseOverAnim(CropText); ButtonMouseOverAnim(CropFill); AnimationHelper.MouseEnterBgTexColor(CropButtonBrush); }; CropButton.MouseLeave += delegate { ButtonMouseLeaveAnim(CropText); ButtonMouseLeaveAnim(CropFill); AnimationHelper.MouseLeaveBgTexColor(CropButtonBrush); }; CropButton.Click += delegate { UC.Close_UserControls(); CropFunctions.StartCrop(); }; // ColorPickerButton ColorPickerButton.PreviewMouseLeftButtonDown += delegate { PreviewMouseButtonDownAnim(ColorPickerBrush); }; ColorPickerButton.MouseEnter += delegate { ButtonMouseOverAnim(ColorPickerText); ButtonMouseOverAnim(ColorPickerFill); AnimationHelper.MouseEnterBgTexColor(ColorPickerBrush); }; ColorPickerButton.MouseLeave += delegate { ButtonMouseLeaveAnim(ColorPickerText); ButtonMouseLeaveAnim(ColorPickerFill); AnimationHelper.MouseLeaveBgTexColor(ColorPickerBrush); }; ColorPickerButton.Click += delegate { UC.Close_UserControls(); Color_Picking.IsRunning = true; Color_Picking.Start(); }; // ImageInfoButton ImageInfoButton.PreviewMouseLeftButtonDown += delegate { PreviewMouseButtonDownAnim(ImageInfoBrush); }; ImageInfoButton.MouseEnter += delegate { ButtonMouseOverAnim(ImageInfoText); ButtonMouseOverAnim(ImageInfoFill); AnimationHelper.MouseEnterBgTexColor(ImageInfoBrush); }; ImageInfoButton.MouseLeave += delegate { ButtonMouseLeaveAnim(ImageInfoText); ButtonMouseLeaveAnim(ImageInfoFill); AnimationHelper.MouseLeaveBgTexColor(ImageInfoBrush); }; ImageInfoButton.Click += delegate { UC.Close_UserControls(); LoadWindows.ImageInfoWindow(); }; }