public void SetElement(VisualElement element) { var oldElement = Element; Element = element; ViewControllers = new[] { _flyoutController = new EventedViewController(), _detailController = new ChildViewController() }; if (!Forms.IsiOS9OrNewer) { Delegate = _innerDelegate = new InnerDelegate(FlyoutPage.FlyoutLayoutBehavior); } UpdateControllers(); _flyoutController.DidAppear += FlyoutControllerDidAppear; _flyoutController.WillDisappear += FlyoutControllerWillDisappear; PresentsWithGesture = FlyoutPage.IsGestureEnabled; OnElementChanged(new VisualElementChangedEventArgs(oldElement, element)); EffectUtilities.RegisterEffectControlProvider(this, oldElement, element); if (element != null) { element.SendViewInitialized(NativeView); } }
public void ReferenceAllTypesInParametersWithReferences( IInnerInterface innerInterface, InnerEventArgs innerEventArgs, InnerDelegate innerDelegate, InnerEnum innerEnum, InnerStruct innerStruct, InnerStruct.InnerStructInnerEnum innerStructInnerEnum, InnerStruct.IInnerStructInnerInterface innerStructInnerInterface, InnerStruct.InnerStructInnerStruct innerStructInnerStruct, InnerStruct.InnerStructInnerClass innerStructInnerClass, InnerAbstractClass innerAbstractClass, InnerAbstractClass.InnerAbstractClassInnerEnum innerAbstractClassInnerEnum, InnerAbstractClass.IInnerAbstractClassInnerInterface innerAbstractClassInnerInterface, InnerAbstractClass.InnerAbstractClassStruct innerAbstractClassStruct, InnerImplementingClass innerImplementingClass) { string toStringHolder; toStringHolder = innerInterface.ToString(); toStringHolder = innerEventArgs.ToString(); toStringHolder = innerDelegate.ToString(); toStringHolder = innerEnum.ToString(); toStringHolder = innerStruct.ToString(); toStringHolder = innerStructInnerEnum.ToString(); toStringHolder = innerStructInnerInterface.ToString(); toStringHolder = innerStructInnerStruct.ToString(); toStringHolder = innerStructInnerClass.ToString(); toStringHolder = innerAbstractClass.ToString(); toStringHolder = innerAbstractClassInnerEnum.ToString(); toStringHolder = innerAbstractClassInnerInterface.ToString(); toStringHolder = innerAbstractClassStruct.ToString(); toStringHolder = innerImplementingClass.ToString(); }
public void SetElement(VisualElement element) { var oldElement = Element; Element = element; ViewControllers = new[] { _masterController = new EventedViewController(), _detailController = new ChildViewController() }; Delegate = _innerDelegate = new InnerDelegate(MasterDetailPage.MasterBehavior); UpdateControllers(); _masterController.WillAppear += MasterControllerWillAppear; _masterController.WillDisappear += MasterControllerWillDisappear; PresentsWithGesture = MasterDetailPage.IsGestureEnabled; OnElementChanged(new VisualElementChangedEventArgs(oldElement, element)); EffectUtilities.RegisterEffectControlProvider(this, oldElement, element); if (element != null) { element.SendViewInitialized(NativeView); } }
public void ReferenceAllTypesInParameters( IInnerInterface innerInterface, InnerEventArgs innerEventArgs, InnerDelegate innerDelegate, InnerEnum innerEnum, InnerStruct innerStruct, InnerStruct.InnerStructInnerEnum innerStructInnerEnum, InnerStruct.IInnerStructInnerInterface innerStructInnerInterface, InnerStruct.InnerStructInnerStruct innerStructInnerStruct, InnerStruct.InnerStructInnerClass innerStructInnerClass, InnerAbstractClass innerAbstractClass, InnerAbstractClass.InnerAbstractClassInnerEnum innerAbstractClassInnerEnum, InnerAbstractClass.IInnerAbstractClassInnerInterface innerAbstractClassInnerInterface, InnerAbstractClass.InnerAbstractClassStruct innerAbstractClassStruct, InnerImplementingClass innerImplementingClass) { }
public void ReferenceAllTypesInLocalVariablesWithInitialization() { #pragma warning disable 219 IInnerInterface innerInterface = new InnerImplementingClass(); InnerEventArgs innerEventArgs = new InnerEventArgs(); InnerDelegate innerDelegate = Console.WriteLine; InnerEnum innerEnum = InnerEnum.Two; InnerStruct innerStruct = new InnerStruct(); InnerStruct.InnerStructInnerEnum innerStructInnerEnum = InnerStruct.InnerStructInnerEnum.Two; InnerStruct.IInnerStructInnerInterface innerStructInnerInterface = new InnerImplementingClass(); InnerStruct.InnerStructInnerStruct innerStructInnerStruct = new InnerStruct.InnerStructInnerStruct(); InnerStruct.InnerStructInnerClass innerStructInnerClass = new InnerStruct.InnerStructInnerClass(); InnerAbstractClass innerAbstractClass = new InnerImplementingClass(); InnerAbstractClass.InnerAbstractClassInnerEnum innerAbstractClassInnerEnum = InnerAbstractClass.InnerAbstractClassInnerEnum.Two; InnerAbstractClass.IInnerAbstractClassInnerInterface innerAbstractClassInnerInterface = new InnerImplementingClass(); InnerAbstractClass.InnerAbstractClassStruct innerAbstractClassStruct = new InnerAbstractClass.InnerAbstractClassStruct(); InnerImplementingClass innerImplementingClass = new InnerImplementingClass(); #pragma warning restore 219 }
public void SetElement(VisualElement element) { var oldElement = Element; Element = element; ViewControllers = new[] { _masterController = new EventedViewController(), _detailController = new ChildViewController() }; Delegate = _innerDelegate = new InnerDelegate(MasterDetailPage.MasterBehavior); Element.BackgroundColor = Color.Transparent; UpdateControllers(); _masterController.WillAppear += MasterControllerWillAppear; _masterController.WillDisappear += MasterControllerWillDisappear; PresentsWithGesture = MasterDetailPage.IsGestureEnabled; OnElementChanged(new VisualElementChangedEventArgs(oldElement, element)); EffectUtilities.RegisterEffectControlProvider(this, oldElement, element); if (element != null) { MethodInfo sendViewInitialized = typeof(Xamarin.Forms.Forms).GetMethod("SendViewInitialized", BindingFlags.Static | BindingFlags.NonPublic); sendViewInitialized?.Invoke(element, new object[] { element, NativeView }); } }
public void ReferenceAllTypesInLocalVariablesWithInitializationWithReferences() { IInnerInterface innerInterface = new InnerImplementingClass(); InnerEventArgs innerEventArgs = new InnerEventArgs(); InnerDelegate innerDelegate = Console.WriteLine; InnerEnum innerEnum = InnerEnum.Two; InnerStruct innerStruct = new InnerStruct(); InnerStruct.InnerStructInnerEnum innerStructInnerEnum = InnerStruct.InnerStructInnerEnum.Two; InnerStruct.IInnerStructInnerInterface innerStructInnerInterface = new InnerImplementingClass(); InnerStruct.InnerStructInnerStruct innerStructInnerStruct = new InnerStruct.InnerStructInnerStruct(); InnerStruct.InnerStructInnerClass innerStructInnerClass = new InnerStruct.InnerStructInnerClass(); InnerAbstractClass innerAbstractClass = new InnerImplementingClass(); InnerAbstractClass.InnerAbstractClassInnerEnum innerAbstractClassInnerEnum = InnerAbstractClass.InnerAbstractClassInnerEnum.Two; InnerAbstractClass.IInnerAbstractClassInnerInterface innerAbstractClassInnerInterface = new InnerImplementingClass(); InnerAbstractClass.InnerAbstractClassStruct innerAbstractClassStruct = new InnerAbstractClass.InnerAbstractClassStruct(); InnerImplementingClass innerImplementingClass = new InnerImplementingClass(); string toStringHolder; toStringHolder = innerInterface.ToString(); toStringHolder = innerEventArgs.ToString(); toStringHolder = innerDelegate.ToString(); toStringHolder = innerEnum.ToString(); toStringHolder = innerStruct.ToString(); toStringHolder = innerStructInnerEnum.ToString(); toStringHolder = innerStructInnerInterface.ToString(); toStringHolder = innerStructInnerStruct.ToString(); toStringHolder = innerStructInnerClass.ToString(); toStringHolder = innerAbstractClass.ToString(); toStringHolder = innerAbstractClassInnerEnum.ToString(); toStringHolder = innerAbstractClassInnerInterface.ToString(); toStringHolder = innerAbstractClassStruct.ToString(); toStringHolder = innerImplementingClass.ToString(); }
public void SetElement(VisualElement element) { var oldElement = Element; Element = element; ViewControllers = new[] { _masterController = new EventedViewController(), _detailController = new ChildViewController() }; Delegate = _innerDelegate = new InnerDelegate(MasterDetailPage.MasterBehavior); UpdateControllers(); _masterController.WillAppear += MasterControllerWillAppear; _masterController.WillDisappear += MasterControllerWillDisappear; PresentsWithGesture = MasterDetailPage.IsGestureEnabled; OnElementChanged(new VisualElementChangedEventArgs(oldElement, element)); EffectUtilities.RegisterEffectControlProvider(this, oldElement, element); if (element != null) element.SendViewInitialized(NativeView); }
public void ReferenceAllTypesInParametersWithReferences( IInnerInterface innerInterface, InnerEventArgs innerEventArgs, InnerDelegate innerDelegate, InnerEnum innerEnum, InnerStruct innerStruct, InnerStruct.InnerStructInnerEnum innerStructInnerEnum, InnerStruct.IInnerStructInnerInterface innerStructInnerInterface, InnerStruct.InnerStructInnerStruct innerStructInnerStruct, InnerStruct.InnerStructInnerClass innerStructInnerClass, InnerAbstractClass innerAbstractClass, InnerAbstractClass.InnerAbstractClassInnerEnum innerAbstractClassInnerEnum, InnerAbstractClass.IInnerAbstractClassInnerInterface innerAbstractClassInnerInterface, InnerAbstractClass.InnerAbstractClassStruct innerAbstractClassStruct, InnerImplementingClass innerImplementingClass) { string toStringHolder; toStringHolder = innerInterface.ToString(); toStringHolder = innerEventArgs.ToString(); toStringHolder = innerDelegate.ToString(); toStringHolder = innerEnum.ToString(); toStringHolder = innerStruct.ToString(); toStringHolder = innerStructInnerEnum.ToString(); toStringHolder = innerStructInnerInterface.ToString(); toStringHolder = innerStructInnerStruct.ToString(); toStringHolder = innerStructInnerClass.ToString(); toStringHolder = innerAbstractClass.ToString(); toStringHolder = innerAbstractClassInnerEnum.ToString(); toStringHolder = innerAbstractClassInnerInterface.ToString(); toStringHolder = innerAbstractClassStruct.ToString(); toStringHolder = innerImplementingClass.ToString(); }
public void ReferenceAllTypesInParameters( IInnerInterface innerInterface, InnerEventArgs innerEventArgs, InnerDelegate innerDelegate, InnerEnum innerEnum, InnerStruct innerStruct, InnerStruct.InnerStructInnerEnum innerStructInnerEnum, InnerStruct.IInnerStructInnerInterface innerStructInnerInterface, InnerStruct.InnerStructInnerStruct innerStructInnerStruct, InnerStruct.InnerStructInnerClass innerStructInnerClass, InnerAbstractClass innerAbstractClass, InnerAbstractClass.InnerAbstractClassInnerEnum innerAbstractClassInnerEnum, InnerAbstractClass.IInnerAbstractClassInnerInterface innerAbstractClassInnerInterface, InnerAbstractClass.InnerAbstractClassStruct innerAbstractClassStruct, InnerImplementingClass innerImplementingClass) { }