コード例 #1
0
        public MyProfileViewModel(Xamarin.Forms.INavigation navigation = null) : base(navigation)
        {
            _userPivotService    = DependencyService.Get <IUserPivotService>();
            _trackerPivotService = DependencyService.Get <ITrackerPivotService>();
            UserGreeting         = string.Empty;
            JoiningDate          = string.Empty;
            TargetDate           = string.Empty;
            DisplayDetailLink    = TextResources.Details;
            Seperator            = "|";
            YourGoal             = YouLost = ToLoose = GaugeMin = GaugeCurrent = 0;
            GaugeMax             = 100;
            _imageSizeBadge      = App.Configuration.GetImageSizeByID(ImageIdentity.USER_PROFILE_BADGE_ICON);
            if (_imageSizeBadge != null)
            {
                UserBadgeImageHeight = _imageSizeBadge.Height;
                UserBadgeImageWidth  = _imageSizeBadge.Width;
            }

            BadgeAchievedImage     = ImageResizer.ResizeImage(TextResources.Badge_Null, _imageSizeBadge);
            MilestoneRequired      = false;
            ShowTrackerDetail      = false;
            UserDetail             = new UserPivot();
            UserTrackers           = new List <TrackerPivot>();
            UserTrackersDescending = new List <TrackerPivot>();
            YourGoal            = YouLostThisWeek = ToLoose = 0;
            WeightSubmitDetails = TextResources.Weight + " " + TextResources.Submit + " " + TextResources.Details;
            SetPageImageSize();
        }
コード例 #2
0
        public static void ClearNavigationStack(Xamarin.Forms.INavigation navigation)
        {
            var existingPages = navigation.NavigationStack.ToList();

            for (int i = 0; i < existingPages.Count - 1; i++)
            {
                navigation.RemovePage(existingPages[i]);
            }
        }
コード例 #3
0
 private void ContentPage_Appearing(object sender, EventArgs e)
 {
     Xamarin.Forms.INavigation navigation = Navigation;
     System.Diagnostics.Debug.WriteLine($"{this.GetType().Name} - OnAppearing NAVIGATION STACK: {navigation.NavigationStack.Count}");
     foreach (var page in navigation.NavigationStack)
     {
         System.Diagnostics.Debug.WriteLine($"    : {page.GetType().Name}");
     }
 }
コード例 #4
0
 private void Initialize()
 {
     _navigation = _navigation ?? App.Current.MainPage.Navigation;
 }
コード例 #5
0
 public void ConfigurarNavigation(Xamarin.Forms.INavigation nav)
 {
     this.Navigation = nav;
 }
コード例 #6
0
ファイル: Navigator.cs プロジェクト: nattress/devices.xunit
 public Navigator(Xamarin.Forms.INavigation navigation)
 {
     this.navigation = navigation;
 }