public override void OnNavigatingTo(Prism.Navigation.NavigationParameters parameters)
 {
     if (parameters.ContainsKey("Order"))
     {
         Order = parameters["Order"] as Order;
         SetViewFields();
     }
 }
        private static void EnsureParametersContainsMode(NavigationParameters parameters, NavigationMode mode)
        {
            if (parameters.ContainsKey(KnownNavigationParameters.NavigationMode))
            {
                return;
            }

            parameters.Add(KnownNavigationParameters.NavigationMode, mode);
        }