Skip to content

Commit 8038fe5

Browse files
author
Yair Aichenbaum
committed
Refactored file layout
1 parent 4c01a59 commit 8038fe5

19 files changed

+66
-16
lines changed

Files/Files.csproj

Lines changed: 23 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -146,13 +146,13 @@
146146
<Compile Include="CommandLine\ParsedCommand.cs" />
147147
<Compile Include="CommandLine\ParsedCommands.cs" />
148148
<Compile Include="CommandLine\ParsedCommandType.cs" />
149-
<Compile Include="Controls\RibbonArea.xaml.cs">
149+
<Compile Include="UserControls\RibbonArea.xaml.cs">
150150
<DependentUpon>RibbonArea.xaml</DependentUpon>
151151
</Compile>
152-
<Compile Include="Controls\RibbonPage.xaml.cs">
152+
<Compile Include="UserControls\RibbonPage.xaml.cs">
153153
<DependentUpon>RibbonPage.xaml</DependentUpon>
154154
</Compile>
155-
<Compile Include="Controls\Sidebar.xaml.cs">
155+
<Compile Include="UserControls\Sidebar.xaml.cs">
156156
<DependentUpon>Sidebar.xaml</DependentUpon>
157157
</Compile>
158158
<Compile Include="DataModels\TerminalFileModel.cs" />
@@ -189,10 +189,10 @@
189189
<Compile Include="Filesystem\ListedItem.cs" />
190190
<Compile Include="Filesystem\INavigationControlItem.cs" />
191191
<Compile Include="Filesystem\LocationItem.cs" />
192-
<Compile Include="Controls\Layout Modes\GenericFileBrowser.xaml.cs">
192+
<Compile Include="UserControls\GenericFileBrowser.xaml.cs">
193193
<DependentUpon>GenericFileBrowser.xaml</DependentUpon>
194194
</Compile>
195-
<Compile Include="InstanceTabsView.xaml.cs">
195+
<Compile Include="Views\Layouts\InstanceTabsView.xaml.cs">
196196
<DependentUpon>InstanceTabsView.xaml</DependentUpon>
197197
</Compile>
198198
<Compile Include="Interacts\EmptyFolderTextState.cs" />
@@ -207,11 +207,14 @@
207207
<Compile Include="Navigation\BackState.cs" />
208208
<Compile Include="Navigation\ForwardState.cs" />
209209
<Compile Include="Navigation\UniversalPath.cs" />
210-
<Compile Include="Controls\Layout Modes\PhotoAlbum.xaml.cs">
210+
<Compile Include="UserControls\PhotoAlbum.xaml.cs">
211211
<DependentUpon>PhotoAlbum.xaml</DependentUpon>
212212
</Compile>
213213
<Compile Include="Interacts\LoadingIndicator.cs" />
214-
<Compile Include="ProHome.xaml.cs">
214+
<Compile Include="Views\MainPage.xaml.cs">
215+
<DependentUpon>MainPage.xaml</DependentUpon>
216+
</Compile>
217+
<Compile Include="Views\Pages\ProHome.xaml.cs">
215218
<DependentUpon>ProHome.xaml</DependentUpon>
216219
</Compile>
217220
<Compile Include="Properties.xaml.cs">
@@ -222,7 +225,7 @@
222225
<DependentUpon>Search.xaml</DependentUpon>
223226
</Compile>
224227
<Compile Include="Settings.cs" />
225-
<Compile Include="Settings.xaml.cs">
228+
<Compile Include="Views\Pages\Settings.xaml.cs">
226229
<DependentUpon>Settings.xaml</DependentUpon>
227230
</Compile>
228231
<Compile Include="SettingsPages\About.xaml.cs">
@@ -291,15 +294,15 @@
291294
<Generator>MSBuild:Compile</Generator>
292295
<SubType>Designer</SubType>
293296
</ApplicationDefinition>
294-
<Page Include="Controls\RibbonArea.xaml">
297+
<Page Include="UserControls\RibbonArea.xaml">
295298
<SubType>Designer</SubType>
296299
<Generator>MSBuild:Compile</Generator>
297300
</Page>
298-
<Page Include="Controls\RibbonPage.xaml">
301+
<Page Include="UserControls\RibbonPage.xaml">
299302
<SubType>Designer</SubType>
300303
<Generator>MSBuild:Compile</Generator>
301304
</Page>
302-
<Page Include="Controls\Sidebar.xaml">
305+
<Page Include="UserControls\Sidebar.xaml">
303306
<SubType>Designer</SubType>
304307
<Generator>MSBuild:Compile</Generator>
305308
</Page>
@@ -331,19 +334,23 @@
331334
<SubType>Designer</SubType>
332335
<Generator>MSBuild:Compile</Generator>
333336
</Page>
334-
<Page Include="Controls\Layout Modes\GenericFileBrowser.xaml">
337+
<Page Include="UserControls\GenericFileBrowser.xaml">
338+
<SubType>Designer</SubType>
339+
<Generator>MSBuild:Compile</Generator>
340+
</Page>
341+
<Page Include="Views\Layouts\InstanceTabsView.xaml">
335342
<SubType>Designer</SubType>
336343
<Generator>MSBuild:Compile</Generator>
337344
</Page>
338-
<Page Include="InstanceTabsView.xaml">
345+
<Page Include="UserControls\PhotoAlbum.xaml">
339346
<SubType>Designer</SubType>
340347
<Generator>MSBuild:Compile</Generator>
341348
</Page>
342-
<Page Include="Controls\Layout Modes\PhotoAlbum.xaml">
349+
<Page Include="Views\MainPage.xaml">
343350
<SubType>Designer</SubType>
344351
<Generator>MSBuild:Compile</Generator>
345352
</Page>
346-
<Page Include="ProHome.xaml">
353+
<Page Include="Views\Pages\ProHome.xaml">
347354
<SubType>Designer</SubType>
348355
<Generator>MSBuild:Compile</Generator>
349356
</Page>
@@ -355,7 +362,7 @@
355362
<SubType>Designer</SubType>
356363
<Generator>MSBuild:Compile</Generator>
357364
</Page>
358-
<Page Include="Settings.xaml">
365+
<Page Include="Views\Pages\Settings.xaml">
359366
<SubType>Designer</SubType>
360367
<Generator>MSBuild:Compile</Generator>
361368
</Page>
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

Files/Views/MainPage.xaml

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
<Page
2+
x:Class="Files.Views.MainPage"
3+
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
4+
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
5+
xmlns:controls="using:Files"
6+
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
7+
xmlns:local="using:Files.Views"
8+
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
9+
Background="{ThemeResource ApplicationPageBackgroundThemeBrush}"
10+
mc:Ignorable="d">
11+
12+
<Grid />
13+
</Page>

Files/Views/MainPage.xaml.cs

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
using System;
2+
using System.Collections.Generic;
3+
using System.IO;
4+
using System.Linq;
5+
using System.Runtime.InteropServices.WindowsRuntime;
6+
using Windows.Foundation;
7+
using Windows.Foundation.Collections;
8+
using Windows.UI.Xaml;
9+
using Windows.UI.Xaml.Controls;
10+
using Windows.UI.Xaml.Controls.Primitives;
11+
using Windows.UI.Xaml.Data;
12+
using Windows.UI.Xaml.Input;
13+
using Windows.UI.Xaml.Media;
14+
using Windows.UI.Xaml.Navigation;
15+
16+
// The Blank Page item template is documented at https://go.microsoft.com/fwlink/?LinkId=234238
17+
18+
namespace Files.Views
19+
{
20+
/// <summary>
21+
/// An empty page that can be used on its own or navigated to within a Frame.
22+
/// </summary>
23+
public sealed partial class MainPage : Page
24+
{
25+
public MainPage()
26+
{
27+
this.InitializeComponent();
28+
}
29+
}
30+
}
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

0 commit comments

Comments
 (0)