Browse Source

added _windowProperties override (#14649)

pull/14664/head
Bas 3 years ago
committed by GitHub
parent
commit
1e078c44ea
No known key found for this signature in database GPG Key ID: B5690EEEBB952194
  1. 14
      src/Windows/Avalonia.Win32/EmbeddedWindowImpl.cs

14
src/Windows/Avalonia.Win32/EmbeddedWindowImpl.cs

@ -1,13 +1,21 @@
using System;
using System.ComponentModel;
using System.Runtime.InteropServices;
using Avalonia.Platform;
using Avalonia.Controls;
using Avalonia.Win32.Interop;
namespace Avalonia.Win32
{
class EmbeddedWindowImpl : WindowImpl
{
public EmbeddedWindowImpl()
{
_windowProperties = new WindowProperties
{
ShowInTaskbar = false,
IsResizable = false,
Decorations = SystemDecorations.None
};
}
protected override IntPtr CreateWindowOverride(ushort atom)
{
var hWnd = UnmanagedMethods.CreateWindowEx(

Loading…
Cancel
Save