{
Interop.SmartEvent _deleteRequest;
Interop.SmartEvent _rotationChanged;
+
public Window(string name) : this(null, name)
{
}
{
Name = name;
Realize(parent);
- Interop.Elementary.elm_win_indicator_mode_set(Handle, 2 /* ELM_WIN_INDICATOR_SHOW */);
-
- _deleteRequest = new Interop.SmartEvent(this, Handle, "delete,request");
- _rotationChanged = new Interop.SmartEvent(this, Handle, "wm,rotation,changed");
+ }
- _deleteRequest.On += (s, e) => CloseRequested?.Invoke(this, EventArgs.Empty);
- _rotationChanged.On += (s, e) => RotationChanged?.Invoke(this, EventArgs.Empty);
+ protected Window()
+ {
}
public event EventHandler CloseRequested;
Interop.Elementary.elm_win_resize_object_add(Handle, obj);
}
+ protected override void OnRealized()
+ {
+ base.OnRealized();
+ Interop.Elementary.elm_win_indicator_mode_set(Handle, 2 /* ELM_WIN_INDICATOR_SHOW */);
+
+ _deleteRequest = new Interop.SmartEvent(this, Handle, "delete,request");
+ _rotationChanged = new Interop.SmartEvent(this, Handle, "wm,rotation,changed");
+
+ _deleteRequest.On += (s, e) => CloseRequested?.Invoke(this, EventArgs.Empty);
+ _rotationChanged.On += (s, e) => RotationChanged?.Invoke(this, EventArgs.Empty);
+ }
+
protected override IntPtr CreateHandle(EvasObject parent)
{
Interop.Elementary.elm_config_accel_preference_set("3d");
-using System.Reflection;
+using System;
+using System.Reflection;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
// to COM components. If you need to access a type in this assembly from
// COM, set the ComVisible attribute to true on that type.
[assembly: ComVisible(false)]
+[assembly: CLSCompliant(true)]
// The following GUID is for the ID of the typelib if this project is exposed to COM
[assembly: Guid("bfb6195c-3271-45e8-96fa-5872fa23c920")]