diff --git a/Pomotimer/App.xaml b/Pomotimer/App.xaml index 5948f9a..004f42e 100644 --- a/Pomotimer/App.xaml +++ b/Pomotimer/App.xaml @@ -3,5 +3,8 @@ xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" xmlns:local="using:Pomotimer"> + + + diff --git a/Pomotimer/MainPage.xaml b/Pomotimer/MainPage.xaml index 299d0a1..6ba72c2 100644 --- a/Pomotimer/MainPage.xaml +++ b/Pomotimer/MainPage.xaml @@ -2,13 +2,89 @@ x:Class="Pomotimer.MainPage" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" - xmlns:local="using:Pomotimer" + xmlns:controls="using:Microsoft.UI.Xaml.Controls" xmlns:d="http://schemas.microsoft.com/expression/blend/2008" + xmlns:local="using:Pomotimer" xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" - mc:Ignorable="d" - Background="{ThemeResource ApplicationPageBackgroundThemeBrush}"> + Background="{ThemeResource ApplicationPageBackgroundThemeBrush}" + mc:Ignorable="d"> - + + + + + + + + + + + + 40 + + + :00 + + + + + + + + + + + + + + + + + - + + + + + + + + + + + \ No newline at end of file diff --git a/Pomotimer/MainPage.xaml.cs b/Pomotimer/MainPage.xaml.cs index 556b9b2..709a5c4 100644 --- a/Pomotimer/MainPage.xaml.cs +++ b/Pomotimer/MainPage.xaml.cs @@ -5,6 +5,7 @@ using System.Linq; using System.Runtime.InteropServices.WindowsRuntime; using Windows.Foundation; using Windows.Foundation.Collections; +using Windows.UI.ViewManagement; using Windows.UI.Xaml; using Windows.UI.Xaml.Controls; using Windows.UI.Xaml.Controls.Primitives; @@ -13,6 +14,7 @@ using Windows.UI.Xaml.Input; using Windows.UI.Xaml.Media; using Windows.UI.Xaml.Navigation; + // The Blank Page item template is documented at https://go.microsoft.com/fwlink/?LinkId=402352&clcid=0x409 namespace Pomotimer @@ -25,6 +27,12 @@ namespace Pomotimer public MainPage() { this.InitializeComponent(); + + Size defaultSize = new Size(500, 250); + + ApplicationView.PreferredLaunchViewSize = defaultSize; + ApplicationView.GetForCurrentView().SetPreferredMinSize(defaultSize); + ApplicationView.PreferredLaunchWindowingMode = ApplicationViewWindowingMode.PreferredLaunchViewSize; } } } diff --git a/Pomotimer/Pomotimer.csproj b/Pomotimer/Pomotimer.csproj index 4aa28e9..21590d0 100644 --- a/Pomotimer/Pomotimer.csproj +++ b/Pomotimer/Pomotimer.csproj @@ -153,6 +153,9 @@ 6.2.9 + + 2.3.200213001 + 14.0