Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/sn4k3/UVtools.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'UVtools.WPF/Controls/WindowEx.cs')
-rw-r--r--UVtools.WPF/Controls/WindowEx.cs17
1 files changed, 15 insertions, 2 deletions
diff --git a/UVtools.WPF/Controls/WindowEx.cs b/UVtools.WPF/Controls/WindowEx.cs
index 5f870f2..4c28b9a 100644
--- a/UVtools.WPF/Controls/WindowEx.cs
+++ b/UVtools.WPF/Controls/WindowEx.cs
@@ -6,15 +6,18 @@
* of this license document, but changing it is not allowed.
*/
+using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Runtime.CompilerServices;
-using System.Threading.Tasks;
+using Avalonia;
using Avalonia.Controls;
+using Avalonia.Input;
+using Avalonia.Styling;
namespace UVtools.WPF.Controls
{
- public class WindowEx : Window, INotifyPropertyChanged
+ public class WindowEx : Window, INotifyPropertyChanged, IStyleable
{
#region BindableBase
/// <summary>
@@ -58,6 +61,8 @@ namespace UVtools.WPF.Controls
}
#endregion
+ Type IStyleable.StyleKey => typeof(Window);
+
public DialogResults DialogResult { get; set; } = DialogResults.Unknown;
public enum DialogResults
{
@@ -66,6 +71,14 @@ namespace UVtools.WPF.Controls
Cancel
}
+ public WindowEx()
+ {
+#if DEBUG
+ this.AttachDevTools(new KeyGesture(Key.F12, KeyModifiers.Control));
+#endif
+ //TransparencyLevelHint = WindowTransparencyLevel.AcrylicBlur;
+ }
+
public void CloseWithResult()
{
Close(DialogResult);