示例#1
0
 private void FolderSettings_LayoutModeChangeRequested(object sender, LayoutModeEventArgs e)
 {
     if (FolderSettings.LayoutMode == FolderLayoutModes.GridView || FolderSettings.LayoutMode == FolderLayoutModes.TilesView)
     {
         SetItemTemplate(); // Set ItemTemplate
         var requestedIconSize = FolderSettings.GetIconSize();
         if (requestedIconSize != currentIconSize)
         {
             currentIconSize = requestedIconSize;
             ReloadItemIcons();
         }
     }
 }
示例#2
0
        private void FolderSettings_LayoutModeChangeRequested(object sender, LayoutModeEventArgs e)
        {
            if (ParentShellPageInstance.ContentPage != null)
            {
                var layoutType = FolderSettings.GetLayoutType(ParentShellPageInstance.FilesystemViewModel.WorkingDirectory);

                if (layoutType != ParentShellPageInstance.CurrentPageType)
                {
                    FolderSettings.IsLayoutModeChanging = true;
                    ParentShellPageInstance.NavigateWithArguments(layoutType, new NavigationArguments()
                    {
                        NavPathParam          = navigationArguments.NavPathParam,
                        IsSearchResultPage    = navigationArguments.IsSearchResultPage,
                        SearchPathParam       = navigationArguments.SearchPathParam,
                        SearchResults         = navigationArguments.SearchResults,
                        IsLayoutSwitch        = true,
                        AssociatedTabInstance = ParentShellPageInstance
                    });

                    // Remove old layout from back stack
                    ParentShellPageInstance.RemoveLastPageFromBackStack();
                }
            }
        }
 private void FolderSettings_LayoutModeChangeRequested(object sender, LayoutModeEventArgs e)
 {
 }