Skip to content

Commit

Permalink
Changed the sample from UWP to WinUI
Browse files Browse the repository at this point in the history
  • Loading branch information
VishalOmprasad committed Nov 1, 2022
1 parent 212114e commit 4beb3f0
Show file tree
Hide file tree
Showing 38 changed files with 505 additions and 635 deletions.
103 changes: 0 additions & 103 deletions App.xaml.cs

This file was deleted.

Binary file removed Assets/LockScreenLogo.scale-200.png
Binary file not shown.
Binary file removed Assets/SplashScreen.scale-200.png
Binary file not shown.
Binary file removed Assets/Square150x150Logo.scale-200.png
Binary file not shown.
Binary file removed Assets/Square44x44Logo.scale-200.png
Binary file not shown.
Binary file not shown.
Binary file removed Assets/StoreLogo.png
Binary file not shown.
Binary file removed Assets/Wide310x150Logo.scale-200.png
Binary file not shown.
126 changes: 0 additions & 126 deletions GettingStarted.csproj

This file was deleted.

40 changes: 24 additions & 16 deletions GettingStarted.sln
Original file line number Diff line number Diff line change
@@ -1,35 +1,43 @@

Microsoft Visual Studio Solution File, Format Version 12.00
# Visual Studio Version 16
VisualStudioVersion = 16.0.30317.65
# Visual Studio Version 17
VisualStudioVersion = 17.3.32922.545
MinimumVisualStudioVersion = 10.0.40219.1
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "GettingStarted", "GettingStarted.csproj", "{AAD25AD3-7E43-4209-8F0B-3559FF8B6CD7}"
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "GettingStarted", "GettingStarted\GettingStarted.csproj", "{85AA4C14-9D2A-40FE-9AE9-A2D40885C614}"
EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
Debug|arm64 = Debug|arm64
Debug|x64 = Debug|x64
Debug|x86 = Debug|x86
Release|arm64 = Release|arm64
Release|x64 = Release|x64
Release|x86 = Release|x86
EndGlobalSection
GlobalSection(ProjectConfigurationPlatforms) = postSolution
{AAD25AD3-7E43-4209-8F0B-3559FF8B6CD7}.Debug|x64.ActiveCfg = Debug|x64
{AAD25AD3-7E43-4209-8F0B-3559FF8B6CD7}.Debug|x64.Build.0 = Debug|x64
{AAD25AD3-7E43-4209-8F0B-3559FF8B6CD7}.Debug|x64.Deploy.0 = Debug|x64
{AAD25AD3-7E43-4209-8F0B-3559FF8B6CD7}.Debug|x86.ActiveCfg = Debug|x86
{AAD25AD3-7E43-4209-8F0B-3559FF8B6CD7}.Debug|x86.Build.0 = Debug|x86
{AAD25AD3-7E43-4209-8F0B-3559FF8B6CD7}.Debug|x86.Deploy.0 = Debug|x86
{AAD25AD3-7E43-4209-8F0B-3559FF8B6CD7}.Release|x64.ActiveCfg = Release|x64
{AAD25AD3-7E43-4209-8F0B-3559FF8B6CD7}.Release|x64.Build.0 = Release|x64
{AAD25AD3-7E43-4209-8F0B-3559FF8B6CD7}.Release|x64.Deploy.0 = Release|x64
{AAD25AD3-7E43-4209-8F0B-3559FF8B6CD7}.Release|x86.ActiveCfg = Release|x86
{AAD25AD3-7E43-4209-8F0B-3559FF8B6CD7}.Release|x86.Build.0 = Release|x86
{AAD25AD3-7E43-4209-8F0B-3559FF8B6CD7}.Release|x86.Deploy.0 = Release|x86
{85AA4C14-9D2A-40FE-9AE9-A2D40885C614}.Debug|arm64.ActiveCfg = Debug|arm64
{85AA4C14-9D2A-40FE-9AE9-A2D40885C614}.Debug|arm64.Build.0 = Debug|arm64
{85AA4C14-9D2A-40FE-9AE9-A2D40885C614}.Debug|arm64.Deploy.0 = Debug|arm64
{85AA4C14-9D2A-40FE-9AE9-A2D40885C614}.Debug|x64.ActiveCfg = Debug|x64
{85AA4C14-9D2A-40FE-9AE9-A2D40885C614}.Debug|x64.Build.0 = Debug|x64
{85AA4C14-9D2A-40FE-9AE9-A2D40885C614}.Debug|x64.Deploy.0 = Debug|x64
{85AA4C14-9D2A-40FE-9AE9-A2D40885C614}.Debug|x86.ActiveCfg = Debug|x86
{85AA4C14-9D2A-40FE-9AE9-A2D40885C614}.Debug|x86.Build.0 = Debug|x86
{85AA4C14-9D2A-40FE-9AE9-A2D40885C614}.Debug|x86.Deploy.0 = Debug|x86
{85AA4C14-9D2A-40FE-9AE9-A2D40885C614}.Release|arm64.ActiveCfg = Release|arm64
{85AA4C14-9D2A-40FE-9AE9-A2D40885C614}.Release|arm64.Build.0 = Release|arm64
{85AA4C14-9D2A-40FE-9AE9-A2D40885C614}.Release|arm64.Deploy.0 = Release|arm64
{85AA4C14-9D2A-40FE-9AE9-A2D40885C614}.Release|x64.ActiveCfg = Release|x64
{85AA4C14-9D2A-40FE-9AE9-A2D40885C614}.Release|x64.Build.0 = Release|x64
{85AA4C14-9D2A-40FE-9AE9-A2D40885C614}.Release|x64.Deploy.0 = Release|x64
{85AA4C14-9D2A-40FE-9AE9-A2D40885C614}.Release|x86.ActiveCfg = Release|x86
{85AA4C14-9D2A-40FE-9AE9-A2D40885C614}.Release|x86.Build.0 = Release|x86
{85AA4C14-9D2A-40FE-9AE9-A2D40885C614}.Release|x86.Deploy.0 = Release|x86
EndGlobalSection
GlobalSection(SolutionProperties) = preSolution
HideSolutionNode = FALSE
EndGlobalSection
GlobalSection(ExtensibilityGlobals) = postSolution
SolutionGuid = {C07F58AB-049D-40F7-BA6F-39BFC9FE285B}
SolutionGuid = {E5483570-08F3-4CCA-8760-4F5800233F37}
EndGlobalSection
EndGlobal
30 changes: 15 additions & 15 deletions App.xaml → GettingStarted/App.xaml
Original file line number Diff line number Diff line change
@@ -1,15 +1,15 @@
<Application
x:Class="GettingStarted.App"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:local="using:GettingStarted">
<Application.Resources>
<ResourceDictionary>
<ResourceDictionary.MergedDictionaries>
<XamlControlsResources xmlns="using:Microsoft.UI.Xaml.Controls" />
<!-- Other merged dictionaries here -->
</ResourceDictionary.MergedDictionaries>
<!-- Other app resources here -->
</ResourceDictionary>
</Application.Resources>
</Application>
<Application
x:Class="GettingStarted.App"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:local="using:GettingStarted">
<Application.Resources>
<ResourceDictionary>
<ResourceDictionary.MergedDictionaries>
<XamlControlsResources xmlns="using:Microsoft.UI.Xaml.Controls" />
<!-- Other merged dictionaries here -->
</ResourceDictionary.MergedDictionaries>
<!-- Other app resources here -->
</ResourceDictionary>
</Application.Resources>
</Application>
51 changes: 51 additions & 0 deletions GettingStarted/App.xaml.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,51 @@
using Microsoft.UI.Xaml;
using Microsoft.UI.Xaml.Controls;
using Microsoft.UI.Xaml.Controls.Primitives;
using Microsoft.UI.Xaml.Data;
using Microsoft.UI.Xaml.Input;
using Microsoft.UI.Xaml.Media;
using Microsoft.UI.Xaml.Navigation;
using Microsoft.UI.Xaml.Shapes;
using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Runtime.InteropServices.WindowsRuntime;
using Windows.ApplicationModel;
using Windows.ApplicationModel.Activation;
using Windows.Foundation;
using Windows.Foundation.Collections;

// To learn more about WinUI, the WinUI project structure,
// and more about our project templates, see: http://aka.ms/winui-project-info.

namespace GettingStarted
{
/// <summary>
/// Provides application-specific behavior to supplement the default Application class.
/// </summary>
public partial class App : Application
{
/// <summary>
/// Initializes the singleton application object. This is the first line of authored code
/// executed, and as such is the logical equivalent of main() or WinMain().
/// </summary>
public App()
{
this.InitializeComponent();
}

/// <summary>
/// Invoked when the application is launched normally by the end user. Other entry points
/// will be used such as when the application is launched to open a specific file.
/// </summary>
/// <param name="args">Details about the launch request and process.</param>
protected override void OnLaunched(Microsoft.UI.Xaml.LaunchActivatedEventArgs args)
{
m_window = new MainWindow();
m_window.Activate();
}

private Window m_window;
}
}
Binary file added GettingStarted/Assets/LockScreenLogo.scale-200.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added GettingStarted/Assets/SplashScreen.scale-200.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added GettingStarted/Assets/Square44x44Logo.scale-200.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added GettingStarted/Assets/StoreLogo.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading

0 comments on commit 4beb3f0

Please sign in to comment.