diff --git a/HueUWP/Converters/BooleanToStringConverter.cs b/HueUWP/Converters/BooleanToStringConverter.cs
new file mode 100644
index 0000000..3e44fd3
--- /dev/null
+++ b/HueUWP/Converters/BooleanToStringConverter.cs
@@ -0,0 +1,31 @@
+using System;
+using System.Collections.Generic;
+using System.Linq;
+using System.Text;
+using System.Threading.Tasks;
+using Windows.UI.Xaml.Data;
+
+namespace HueUWP.Converters
+{
+ public class BooleanToStringConverter : IValueConverter
+ {
+ //From bool to nullable
+ public object Convert(object value, Type targetType, object parameter, string language)
+ {
+ bool b = (bool)value;
+ return b.ToString();
+ }
+
+ //From nullable to bool
+ public object ConvertBack(object value, Type targetType, object parameter, string language)
+ {
+ string s = (string)value;
+ bool b = false;
+
+ if (s == "true")
+ b = true;
+
+ return b;
+ }
+ }
+}
diff --git a/HueUWP/DetailView.xaml b/HueUWP/DetailView.xaml
new file mode 100644
index 0000000..82bc160
--- /dev/null
+++ b/HueUWP/DetailView.xaml
@@ -0,0 +1,13 @@
+
+
+
+
+
+
diff --git a/HueUWP/DetailView.xaml.cs b/HueUWP/DetailView.xaml.cs
new file mode 100644
index 0000000..73738b3
--- /dev/null
+++ b/HueUWP/DetailView.xaml.cs
@@ -0,0 +1,30 @@
+using System;
+using System.Collections.Generic;
+using System.IO;
+using System.Linq;
+using System.Runtime.InteropServices.WindowsRuntime;
+using Windows.Foundation;
+using Windows.Foundation.Collections;
+using Windows.UI.Xaml;
+using Windows.UI.Xaml.Controls;
+using Windows.UI.Xaml.Controls.Primitives;
+using Windows.UI.Xaml.Data;
+using Windows.UI.Xaml.Input;
+using Windows.UI.Xaml.Media;
+using Windows.UI.Xaml.Navigation;
+
+// The Blank Page item template is documented at http://go.microsoft.com/fwlink/?LinkId=234238
+
+namespace HueUWP
+{
+ ///
+ /// An empty page that can be used on its own or navigated to within a Frame.
+ ///
+ public sealed partial class DetailView : Page
+ {
+ public DetailView()
+ {
+ this.InitializeComponent();
+ }
+ }
+}
diff --git a/HueUWP/HueUWP.csproj b/HueUWP/HueUWP.csproj
index 6888c00..a183060 100644
--- a/HueUWP/HueUWP.csproj
+++ b/HueUWP/HueUWP.csproj
@@ -98,12 +98,19 @@
App.xaml
+
+
+ DetailView.xaml
+
MainPage.xaml
+
+ SettingsView.xaml
+
@@ -126,10 +133,18 @@
MSBuild:Compile
Designer
+
+ Designer
+ MSBuild:Compile
+
MSBuild:Compile
Designer
+
+ Designer
+ MSBuild:Compile
+
14.0
diff --git a/HueUWP/MainPage.xaml b/HueUWP/MainPage.xaml
index 99f146d..95b99bc 100644
--- a/HueUWP/MainPage.xaml
+++ b/HueUWP/MainPage.xaml
@@ -3,12 +3,17 @@
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:local="using:HueUWP"
+ xmlns:convert="using:HueUWP.Converters"
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
xmlns:xctk="http://schemas.xceed.com/wpf/xaml/toolkit"
DataContext="{Binding LightsViewModel, RelativeSource={RelativeSource Self}}"
mc:Ignorable="d">
+
+
+
+
@@ -35,7 +40,7 @@
-
+
Off
On
diff --git a/HueUWP/SettingsView.xaml b/HueUWP/SettingsView.xaml
new file mode 100644
index 0000000..bcaca26
--- /dev/null
+++ b/HueUWP/SettingsView.xaml
@@ -0,0 +1,13 @@
+
+
+
+
+
+
diff --git a/HueUWP/SettingsView.xaml.cs b/HueUWP/SettingsView.xaml.cs
new file mode 100644
index 0000000..5d0ae35
--- /dev/null
+++ b/HueUWP/SettingsView.xaml.cs
@@ -0,0 +1,30 @@
+using System;
+using System.Collections.Generic;
+using System.IO;
+using System.Linq;
+using System.Runtime.InteropServices.WindowsRuntime;
+using Windows.Foundation;
+using Windows.Foundation.Collections;
+using Windows.UI.Xaml;
+using Windows.UI.Xaml.Controls;
+using Windows.UI.Xaml.Controls.Primitives;
+using Windows.UI.Xaml.Data;
+using Windows.UI.Xaml.Input;
+using Windows.UI.Xaml.Media;
+using Windows.UI.Xaml.Navigation;
+
+// The Blank Page item template is documented at http://go.microsoft.com/fwlink/?LinkId=234238
+
+namespace HueUWP
+{
+ ///
+ /// An empty page that can be used on its own or navigated to within a Frame.
+ ///
+ public sealed partial class SettingsView : Page
+ {
+ public SettingsView()
+ {
+ this.InitializeComponent();
+ }
+ }
+}