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

48 lines
1.3 KiB
C#
Raw Normal View History

2025-08-03 16:46:33 +08:00
using Ink_Canvas.Helpers;
2025-07-28 14:40:44 +08:00
using iNKORE.UI.WPF.Modern.Controls;
2025-08-03 16:46:33 +08:00
using System.Windows;
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-07-28 14:40:44 +08:00
SymbolIconFullscreen.Symbol = Symbol.BackToWindow;
2025-08-03 16:46:33 +08:00
}
else
{
2025-05-25 09:29:48 +08:00
WindowState = WindowState.Normal;
2025-07-28 14:40:44 +08:00
SymbolIconFullscreen.Symbol = Symbol.FullScreen;
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;
}
}
}