Exemplo n.º 1
0
 public App()
 {
     // The root page of your application
     MainPage = new CustomMDP()
     {
         Master = new ContentPage
         {
             BackgroundColor = Color.White,
             IsVisible = true,
             Content = new Label
             {
                 Text = "Master Label",
                 TextColor = Color.Black
             }
         },
         Detail = new ContentPage
         {
             BackgroundColor = Color.Red,
             Content = new Label
             {
                 Text = "Detail Label"
             }
         },
         Orientation = CustomMDP.OrientationType.Right,
         MasterPercent = 0.8f
     };
 }
Exemplo n.º 2
0
        public override void TouchesEnded(NSSet touches, UIEvent evt)
        {
            base.TouchesEnded(touches, evt);
            var touch = touches.AnyObject as UITouch;

            if (touch != null)
            {
                var target = GetTouchTarget(touch);
                if (target != null)
                    target.RaiseExited();
                last = null;
            }
        }