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

47 lines
1.4 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-09-07 13:30:46 +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-09-06 14:24:18 +08:00
SymbolIconFullscreen.Symbol = iNKORE.UI.WPF.Modern.Controls.Symbol.BackToWindow;
2025-09-07 13:30:46 +08:00
}
else
{
2025-05-25 09:29:48 +08:00
WindowState = WindowState.Normal;
2025-09-06 14:24:18 +08:00
SymbolIconFullscreen.Symbol = iNKORE.UI.WPF.Modern.Controls.Symbol.FullScreen;
2025-05-25 09:29:48 +08:00
}
}
2025-09-07 13:30:46 +08:00
private void SCManipulationBoundaryFeedback(object sender, ManipulationBoundaryFeedbackEventArgs e)
{
2025-05-25 09:29:48 +08:00
e.Handled = true;
}
}
}