Ejemplo n.º 1
0
        private void AppSettings_GridViewSizeChangeRequested(object sender, EventArgs e)
        {
            var iconSize = UpdateThumbnailSize(); // Get new icon size

            // Prevents reloading icons when the icon size hasn't changed
            if (iconSize != _iconSize)
            {
                _iconSize = iconSize;                        // Update icon size before refreshing
                NavigationActions.Refresh_Click(null, null); // Refresh icons
            }
            else
            {
                _iconSize = iconSize; // Update icon size
            }
        }
Ejemplo n.º 2
0
        private void SwipeablePage_ManipulationDelta(object sender, ManipulationDeltaRoutedEventArgs e)
        {
            if (e.IsInertial && !_isSwiped)
            {
                var swipedDistance = e.Cumulative.Translation.X;

                if (Math.Abs(swipedDistance) <= 2)
                {
                    return;
                }

                if (swipedDistance > 0)
                {
                    NavigationActions.Back_Click(null, null);
                }
                else
                {
                    NavigationActions.Forward_Click(null, null);
                }
                _isSwiped = true;
            }
        }
Ejemplo n.º 3
0
 private void RefreshGrid_Click(object sender, RoutedEventArgs e)
 {
     NavigationActions.Refresh_Click(null, null);
 }