Skip to content

Commit d7c6bf9

Browse files
author
Yair Aichenbaum
committed
Added flags page
1 parent 70fd47e commit d7c6bf9

File tree

4 files changed

+74
-0
lines changed

4 files changed

+74
-0
lines changed

Files/Files.csproj

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -240,6 +240,9 @@
240240
<Compile Include="SettingsPages\Appearance.xaml.cs">
241241
<DependentUpon>Appearance.xaml</DependentUpon>
242242
</Compile>
243+
<Compile Include="SettingsPages\Flags.xaml.cs">
244+
<DependentUpon>Flags.xaml</DependentUpon>
245+
</Compile>
243246
<Compile Include="SettingsPages\Preferences.xaml.cs">
244247
<DependentUpon>Preferences.xaml</DependentUpon>
245248
</Compile>
@@ -378,6 +381,10 @@
378381
<SubType>Designer</SubType>
379382
<Generator>MSBuild:Compile</Generator>
380383
</Page>
384+
<Page Include="SettingsPages\Flags.xaml">
385+
<Generator>MSBuild:Compile</Generator>
386+
<SubType>Designer</SubType>
387+
</Page>
381388
<Page Include="SettingsPages\Preferences.xaml">
382389
<SubType>Designer</SubType>
383390
<Generator>MSBuild:Compile</Generator>

Files/SettingsPages/Flags.xaml

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
<Page
2+
x:Class="Files.SettingsPages.Flags"
3+
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
4+
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
5+
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
6+
xmlns:datamodels="using:Files.DataModels"
7+
xmlns:local="using:Files.SettingsPages"
8+
xmlns:local2="using:Files"
9+
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
10+
Background="{ThemeResource ApplicationPageBackgroundThemeBrush}"
11+
mc:Ignorable="d">
12+
13+
<Grid>
14+
<ScrollViewer HorizontalAlignment="Stretch" VerticalAlignment="Stretch">
15+
<StackPanel
16+
Margin="12,12,8,8"
17+
Orientation="Vertical"
18+
Spacing="14">
19+
<StackPanel.ChildrenTransitions>
20+
<TransitionCollection>
21+
<RepositionThemeTransition />
22+
<ReorderThemeTransition />
23+
</TransitionCollection>
24+
</StackPanel.ChildrenTransitions>
25+
26+
<TextBlock
27+
x:Uid="SettingsFlagsTitle"
28+
FontSize="22"
29+
Text="Flags" />
30+
31+
</StackPanel>
32+
</ScrollViewer>
33+
34+
</Grid>
35+
</Page>

Files/SettingsPages/Flags.xaml.cs

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
using Windows.Storage;
2+
using Windows.UI.Xaml.Controls;
3+
using System;
4+
using Windows.UI.Xaml.Media;
5+
using Windows.UI;
6+
using System.IO;
7+
using Files.Filesystem;
8+
using Newtonsoft.Json;
9+
using Files.DataModels;
10+
using System.Collections.ObjectModel;
11+
using Windows.System;
12+
using Windows.UI.Xaml.Navigation;
13+
using System.Linq;
14+
15+
namespace Files.SettingsPages
16+
{
17+
18+
public sealed partial class Flags : Page
19+
{
20+
StorageFolder localFolder = ApplicationData.Current.LocalFolder;
21+
ApplicationDataContainer localSettings = ApplicationData.Current.LocalSettings;
22+
23+
24+
public Flags()
25+
{
26+
this.InitializeComponent();
27+
}
28+
}
29+
}

Files/Strings/en-US/Resources.resw

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -198,6 +198,9 @@
198198
<data name="SettingsFilesAndFoldersTitle.Text" xml:space="preserve">
199199
<value>Files and Folders</value>
200200
</data>
201+
<data name="SettingsFlagsTitle.Text" xml:space="preserve">
202+
<value>Flags</value>
203+
</data>
201204
<data name="SettingsNav.PaneTitle" xml:space="preserve">
202205
<value>Settings</value>
203206
</data>

0 commit comments

Comments
 (0)