diff --git a/src/UWP/App.xaml b/src/UWP/App.xaml index 561e163f0..01dceea30 100644 --- a/src/UWP/App.xaml +++ b/src/UWP/App.xaml @@ -2,7 +2,13 @@ x:Class="Bit.UWP.App" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" - xmlns:local="using:UWP" + xmlns:local="using:Bit.UWP" RequestedTheme="Light"> - + + + + + + + diff --git a/src/UWP/App.xaml.cs b/src/UWP/App.xaml.cs index e4d58843c..cab38e814 100644 --- a/src/UWP/App.xaml.cs +++ b/src/UWP/App.xaml.cs @@ -43,6 +43,8 @@ namespace Bit.UWP rootFrame.NavigationFailed += OnNavigationFailed; Xamarin.Forms.Forms.Init(e); + ((Style)Resources["TabbedPageStyle"]).Setters[0] = ((Style)Resources["TabbedPageStyle2"]).Setters[0]; + if(e.PreviousExecutionState == ApplicationExecutionState.Terminated) { //TODO: Load state from previously suspended application diff --git a/src/UWP/IconConverter.cs b/src/UWP/IconConverter.cs new file mode 100644 index 000000000..d6ffc4d21 --- /dev/null +++ b/src/UWP/IconConverter.cs @@ -0,0 +1,23 @@ +using System; +using Windows.UI.Xaml.Data; + +namespace Bit.UWP +{ + public class IconConverter : IValueConverter + { + public object Convert(object value, Type targetType, object parameter, string language) + { + if(value != null && value is Xamarin.Forms.FileImageSource) + { + return ((Xamarin.Forms.FileImageSource)value).File; + } + + return null; + } + + public object ConvertBack(object value, Type targetType, object parameter, string language) + { + throw new NotImplementedException(); + } + } +} diff --git a/src/UWP/Styles.xaml b/src/UWP/Styles.xaml new file mode 100644 index 000000000..50f72c257 --- /dev/null +++ b/src/UWP/Styles.xaml @@ -0,0 +1,22 @@ + + + + + + \ No newline at end of file diff --git a/src/UWP/UWP.csproj b/src/UWP/UWP.csproj index 27897badd..29b577e5e 100644 --- a/src/UWP/UWP.csproj +++ b/src/UWP/UWP.csproj @@ -95,6 +95,7 @@ App.xaml + MainPage.xaml @@ -136,6 +137,10 @@ MSBuild:Compile Designer + + Designer + MSBuild:Compile +