private EventHandler<BackgroundResourceLoadedEventArgs> _backgroundResourceLoadedEventHandler;
private _backgroundResourceLoadedCallbackType _backgroundResourceLoadedCallback;
+ private OnWindowEventCallbackType _onWindowSendEventCallback;
+
+ private void SendViewAddedEventToWindow(IntPtr data)
+ {
+ Window.Instance.SendViewAdded(this);
+ }
+
/// <summary>
/// Creates a new instance of a view.
/// </summary>
PositionUsesPivotPoint = false;
}
_mergedStyle = new MergedStyle(GetType(), this);
+
+ _onWindowSendEventCallback = SendViewAddedEventToWindow;
+ this.OnWindowSignal().Connect(_onWindowSendEventCallback);
}
internal View(ViewImpl implementation) : this(NDalicPINVOKE.new_View__SWIG_2(ViewImpl.getCPtr(implementation)), true)
this.ResourcesLoadedSignal().Disconnect(_backgroundResourceLoadedCallback);
}
+ if (_onWindowSendEventCallback != null)
+ {
+ this.OnWindowSignal().Disconnect(_onWindowSendEventCallback);
+ }
+
// BaseHandle CPtr is used in Registry and there is danger of deletion if we keep using it here.
// Restore current CPtr.
swigCPtr = currentCPtr;
}
}
+ /// <summary>
+ /// ViewAdded will be triggered when the view added on Window
+ /// </summary>
+ /// <since_tizen> 6 </since_tizen>
+ /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API.
+ [EditorBrowsable(EditorBrowsableState.Never)]
+ public event EventHandler ViewAdded;
+
+ internal void SendViewAdded(View view)
+ {
+ ViewAdded?.Invoke(view, EventArgs.Empty);
+ }
+
internal event EventHandler EventProcessingFinished
{
add