Пример #1
0
		/// <summary>
		/// Raises the element changed event to set the native control for this element.
		/// </summary>
		/// <param name="e">E.</param>
		protected override void OnElementChanged (ElementChangedEventArgs<View> e)
		{
			base.OnElementChanged (e);

			if (e.OldElement == null)
			{
				// Set a normal view as underlaying control
				_view = new global::Android.Views.View(Context);
				_view.BringToFront();
				_view.SetWillNotCacheDrawing(true);
				SetNativeControl(_view);
			}
		}