Posted 15 Jun 2012 Link to this post
private void InitializePhoneApplication()
{
if (phoneApplicationInitialized)
return;
// Create the frame but don't set it as RootVisual yet; this allows the splash
// screen to remain active until the application is ready to render.
RadTransition transition = new RadTransition();
transition.BackwardInAnimation = this.Resources["fadeInAnimation"] as RadFadeAnimation;
transition.BackwardOutAnimation = this.Resources["fadeOutAnimation"] as RadFadeAnimation;
transition.ForwardInAnimation = this.Resources["fadeInAnimation"] as RadFadeAnimation;
transition.ForwardOutAnimation = this.Resources["fadeOutAnimation"] as RadFadeAnimation;
transition.PlayMode = TransitionPlayMode.Consecutively;
RadPhoneApplicationFrame frame = new RadPhoneApplicationFrame();
frame.Transition = transition;
RootFrame = frame;
RootFrame.Navigated += CompleteInitializePhoneApplication;
// Handle navigation failures
RootFrame.NavigationFailed += RootFrame_NavigationFailed;
// Ensure we don't initialize again
phoneApplicationInitialized = true;
}
public partial class Gerador : PhoneApplicationPage
private GraficoViewModel ViewModel { get; set; }
public Gerador()
ViewModel = new GraficoViewModel();
DataContext = ViewModel;
InitializeComponent();
ViewModel.GeraGrafico(Utils.ALTURA_PORTRAIT, Utils.LARGURA_PORTRAIT, ref ContentPanel);
protected override void OnOrientationChanged(OrientationChangedEventArgs e)
base.OnOrientationChanged(e);
//It´s not fired
Posted 18 Jun 2012 Link to this post