private void SetTakeover(MapView requestedView = null)
 {
     if (ArrivalsPopup.Visibility == Visibility.Visible)
     {
         MapTakeover takeover;
         if (Maximized)
         {
             takeover = new MapTakeover(OffMapPopup, new RectSubset()
             {
                 Top = MAXIMIZED_MAP_MARGIN, TopValueType = RectSubsetValueType.Length
             }, requestedView);
         }
         else
         {
             takeover = new MapTakeover(null, new RectSubset()
             {
                 Top = 0.2, TopValueType = RectSubsetValueType.Length, TopScale = RectSubsetScale.Relative
             }, requestedView);
         }
         InvokeTakeoverRequested(takeover);
     }
     else
     {
         InvokeTakeoverRequested(null);
     }
 }
 protected void InvokeTakeoverRequested(MapTakeover takeover)
 {
     TakeoverRequested?.Invoke(this, new MapTakeoverRequestedEventArgs(takeover));
 }
 public virtual void OnTakeoverEvicted(MapTakeover takeover)
 {
 }
 public virtual void OnTakeoverGranted(MapTakeover takeover)
 {
 }
 protected void InvokeTakeoverRequested(MapTakeover takeover)
 {
     TakeoverRequested?.Invoke(this, new MapTakeoverRequestedEventArgs(takeover));
 }
 public virtual void OnTakeoverEvicted(MapTakeover takeover) { }
 public virtual void OnTakeoverGranted(MapTakeover takeover) { }
Esempio n. 8
0
 public MapTakeoverRequestedEventArgs(MapTakeover takeover)
 {
     Takeover = takeover;
 }
 private void SetTakeover(MapView requestedView = null)
 {
     if (ArrivalsPopup.Visibility == Visibility.Visible)
     {
         MapTakeover takeover;
         if (Maximized)
             takeover = new MapTakeover(OffMapPopup, new RectSubset() { Top = MAXIMIZED_MAP_MARGIN, TopValueType = RectSubsetValueType.Length }, requestedView);
         else
             takeover = new MapTakeover(null, new RectSubset() { Top = 0.2, TopValueType = RectSubsetValueType.Length, TopScale = RectSubsetScale.Relative }, requestedView);
         InvokeTakeoverRequested(takeover);
     }
     else
         InvokeTakeoverRequested(null);
 }
 public MapTakeoverRequestedEventArgs(MapTakeover takeover)
 {
     Takeover = takeover;
 }