Ejemplo n.º 1
0
 /// <summary>Called when the page orientation has changed, such as portrait to landscape.</summary>
 /// <param name="sender">The page that raised this event.</param>
 /// <param name="e">Provides the new orientation that the page has been set to.</param>
 private void OnOrientationChanged(object sender, Microsoft.Phone.Controls.OrientationChangedEventArgs e)
 {
     if (this.OrientationChanged != null)
     {
         var coronaOrientation = GetCoronaOrientationFrom(e.Orientation);
         this.OrientationChanged(this, new Corona.WinRT.Interop.UI.PageOrientationEventArgs(coronaOrientation));
     }
 }
Ejemplo n.º 2
0
        new private void OrientationChanged(object sender, Microsoft.Phone.Controls.OrientationChangedEventArgs e)
        {
            InCallModel model = (InCallModel)ViewModel;

            remoteVideo.Width  = LayoutRoot.ActualWidth;
            remoteVideo.Height = LayoutRoot.ActualHeight;
            HUD.Width          = LayoutRoot.ActualWidth;
            HUD.Height         = LayoutRoot.ActualHeight;
            model.OrientationChanged(sender, e);
        }
Ejemplo n.º 3
0
 /// <summary>
 /// Called when user rotates the device
 /// </summary>
 public void OrientationChanged(object sender, Microsoft.Phone.Controls.OrientationChangedEventArgs e)
 {
     PageOrientation = e.Orientation;
     Logger.Msg("[InCall] OrientationChanged");
     if (IsVideoActive)
     {
         HideVideo();
         ShowVideo();
         LinphoneCall call = GetCurrentCall();
         if (call != null)
         {
             call.SendVFURequest();
         }
     }
 }