| 12345678910111213141516171819202122232425262728293031323334353637383940 |
- using System.Windows;
- using System.Windows.Controls;
- using PicView.Animations;
- using PicView.Properties;
- using PicView.UILogic.Sizing;
- namespace PicView.Views.UserControls
- {
- /// <summary>
- /// Cool shady close button!
- /// </summary>
- public partial class Restorebutton : UserControl
- {
- public Restorebutton()
- {
- InitializeComponent();
- TheButton.Click += delegate { WindowSizing.Fullscreen_Restore(); };
- MouseEnter += delegate
- {
- if (!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);
- };
- }
- }
- }
|