Light. On Connected(UIElement) Method
This method is automatically called when the XamlLight is first in use on the screen, or after being previously disconnected then used again.
This provides an opportunity to create resources such as the CompositionLight only when required.
OnDisconnected will be called when the XamlLight is no longer being used to light any UIElements or Brushes.
Equivalent WinUI method: Microsoft.UI.Xaml.Media.XamlLight.OnConnected.
protected: virtual void OnConnected(UIElement ^ newElement) = OnConnected;
void OnConnected(UIElement const & newElement);
protected virtual void OnConnected(UIElement newElement);
Protected Overridable Sub OnConnected (newElement As UIElement)