Exemple #1
0
        protected override void restoreScrollOffset()
        {
            object value = PageStorage.of(context.storageContext)?.readState(context.storageContext);

            if (value != null)
            {
                _pageToUseOnStartup = (float)value;
            }
        }
Exemple #2
0
        protected virtual void saveScrollOffset()
        {
            var pageStorage = PageStorage.of(this.context.storageContext);

            if (pageStorage != null)
            {
                pageStorage.writeState(this.context.storageContext, this.pixels);
            }
        }
Exemple #3
0
        protected override void restoreScrollOffset()
        {
            object value = PageStorage.of(this.context.storageContext)?.readState(this.context.storageContext);

            if (value != null)
            {
                this._pageToUseOnStartup = (double)value;
            }
        }
Exemple #4
0
 protected virtual void restoreScrollOffset()
 {
     if (this._pixels == null)
     {
         var pageStorage = PageStorage.of(this.context.storageContext);
         if (pageStorage != null)
         {
             object valueRaw = pageStorage.readState(this.context.storageContext);
             if (valueRaw != null)
             {
                 this.correctPixels((float)valueRaw);
             }
         }
     }
 }
Exemple #5
0
 protected override void saveScrollOffset()
 {
     PageStorage.of(context.storageContext)?.writeState(context.storageContext,
                                                        getPageFromPixels(pixels, viewportDimension));
 }