XamlLight.OnConnected(UIElement) 메서드

정의

이 메서드는 XamlLight가 화면에서 처음 사용 중이거나 이전에 연결이 끊긴 후 다시 사용될 때 자동으로 호출됩니다.

이렇게 하면 필요한 경우에만 CompositionLight와 같은 리소스를 만들 수 있습니다.

XamlLight가 더 이상 UIElements 또는 Brushes를 비추는 데 사용되지 않을 때 OnDisconnected가 호출됩니다.

protected:
 virtual void OnConnected(UIElement ^ newElement) = OnConnected;
void OnConnected(UIElement const& newElement);
protected virtual void OnConnected(UIElement newElement);
function onConnected(newElement)
Protected Overridable Sub OnConnected (newElement As UIElement)

매개 변수

newElement
UIElement

표시등이 연결된 UIElement 입니다.

적용 대상