internal override void PostInit () { base.PostInit (); if (balloonWindow) { fakeLabel = AutomationBridge.CreateAdapter<TextLabel> (Provider); if (fakeLabel != null) AddOneChild (fakeLabel); fakeImage = AutomationBridge.CreateAdapter<Image> (Provider); if (fakeImage != null) AddOneChild (fakeImage); } else { if (RefStateSet ().ContainsState (Atk.StateType.Modal)) Role = Atk.Role.Dialog; } }
protected override void RemoveUnmanagedChildren () { if (fakeLabel != null) RemoveChild (fakeLabel); if (fakeImage != null) RemoveChild (fakeImage); fakeLabel = null; fakeImage = null; }