Skip to content

Commit 9decb1e

Browse files
committed
Initial upload
1 parent 2c3e196 commit 9decb1e

70 files changed

Lines changed: 772 additions & 0 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

README.md

Lines changed: 24 additions & 0 deletions

images/screenshot.png

39.4 KB

src/App.xaml

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
<Application
2+
x:Class="LampControl.App"
3+
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
4+
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
5+
xmlns:controls="using:Microsoft.UI.Xaml.Controls"
6+
xmlns:local="using:LampControl">
7+
<Application.Resources>
8+
<controls:XamlControlsResources>
9+
<controls:XamlControlsResources.MergedDictionaries>
10+
<!-- Other app resources here -->
11+
</controls:XamlControlsResources.MergedDictionaries>
12+
</controls:XamlControlsResources>
13+
</Application.Resources>
14+
</Application>

src/App.xaml.cs

Lines changed: 49 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,49 @@
1+
using Windows.ApplicationModel.Activation;
2+
using Windows.UI.Xaml;
3+
using Windows.UI.Xaml.Controls;
4+
5+
namespace LampControl
6+
{
7+
/// <summary>
8+
/// Provides application-specific behavior to supplement the default Application class.
9+
/// </summary>
10+
sealed partial class App : Application
11+
{
12+
/// <summary>
13+
/// Initializes the singleton application object. This is the first line of authored code
14+
/// executed, and as such is the logical equivalent of main() or WinMain().
15+
/// </summary>
16+
public App()
17+
{
18+
this.InitializeComponent();
19+
}
20+
21+
/// <summary>
22+
/// Invoked when the application is launched normally by the end user. Other entry points
23+
/// will be used such as when the application is launched to open a specific file.
24+
/// </summary>
25+
/// <param name="e">Details about the launch request and process.</param>
26+
protected override void OnLaunched(LaunchActivatedEventArgs e)
27+
{
28+
// Do not repeat app initialization when the Window already has content,
29+
// just ensure that the window is active
30+
if (!(Window.Current.Content is Frame rootFrame))
31+
{
32+
Window.Current.Content = rootFrame = new Frame();
33+
}
34+
35+
if (!e.PrelaunchActivated)
36+
{
37+
if (rootFrame.Content == null)
38+
{
39+
// When the navigation stack isn't restored navigate to the first page,
40+
// configuring the new page by passing required information as a navigation
41+
// parameter
42+
rootFrame.Navigate(typeof(MainPage));
43+
}
44+
// Ensure the current window is active
45+
Window.Current.Activate();
46+
}
47+
}
48+
}
49+
}

src/Assets/LargeTile.scale-100.png

6.2 KB

src/Assets/LargeTile.scale-125.png

7.15 KB

src/Assets/LargeTile.scale-150.png

9.99 KB

src/Assets/LargeTile.scale-200.png

14.3 KB

src/Assets/LargeTile.scale-400.png

38.8 KB

src/Assets/SmallTile.scale-100.png

1.53 KB

0 commit comments

Comments
 (0)