| 12345678910111213141516171819202122232425262728293031323334353637 |
- using System;
- using Avalonia.Native.Interop;
- using Avalonia.Platform;
- namespace Avalonia.Native
- {
- public class PopupImpl : WindowBaseImpl, IPopupImpl
- {
- IAvnPopup _native;
- public PopupImpl(IAvaloniaNativeFactory factory)
- {
- using (var e = new PopupEvents(this))
- Init(_native = factory.CreatePopup(e), factory.CreateScreens());
- }
- public override void Dispose()
- {
- _native.Dispose();
- base.Dispose();
- }
- class PopupEvents : WindowBaseEvents, IAvnWindowEvents
- {
- readonly PopupImpl _parent;
- public PopupEvents(PopupImpl parent) : base(parent)
- {
- _parent = parent;
- }
- void IAvnWindowEvents.WindowStateChanged(AvnWindowState state)
- {
- }
- }
- }
- }
|