Files
community/Ink Canvas/Windows/OperatingGuideWindow.xaml.cs
T

47 lines
1.3 KiB
C#
Raw Normal View History

2025-08-31 11:43:52 +08:00
using Ink_Canvas.Helpers;
using System.Windows;
2025-08-03 16:46:33 +08:00
using System.Windows.Input;
2025-05-25 09:29:48 +08:00
namespace Ink_Canvas
{
/// <summary>
/// Interaction logic for StopwatchWindow.xaml
/// </summary>
public partial class OperatingGuideWindow : Window
{
public OperatingGuideWindow()
{
InitializeComponent();
AnimationsHelper.ShowWithSlideFromBottomAndFade(this, 0.25);
}
private void BtnClose_MouseUp(object sender, MouseButtonEventArgs e)
{
Close();
}
private void WindowDragMove(object sender, MouseEventArgs e)
{
if (e.LeftButton == MouseButtonState.Pressed) DragMove();
}
2025-08-03 16:46:33 +08:00
private void BtnFullscreen_MouseUp(object sender, MouseButtonEventArgs e)
{
if (WindowState == WindowState.Normal)
{
2025-05-25 09:29:48 +08:00
WindowState = WindowState.Maximized;
2025-08-31 08:51:50 +08:00
FontIconFullscreen.Glyph = "&#xE73F;";
2025-08-03 16:46:33 +08:00
}
else
{
2025-05-25 09:29:48 +08:00
WindowState = WindowState.Normal;
2025-08-31 08:51:50 +08:00
FontIconFullscreen.Glyph = "&#xE740;";
2025-05-25 09:29:48 +08:00
}
}
2025-08-03 16:46:33 +08:00
private void SCManipulationBoundaryFeedback(object sender, ManipulationBoundaryFeedbackEventArgs e)
{
2025-05-25 09:29:48 +08:00
e.Handled = true;
}
}
}