public override void ObserveValue(NSString keyPath, NSObject ofObject, NSDictionary change, IntPtr context) { if (keyPath.IsEqual(HiddenProperty) && ofObject.Equals(ContentView)) { if (ContentView.Hidden) { OnHidden(); } else { OnShown(); } } }