Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit aa95801

Browse files
author
U-NVIDIA.COM\sahils
committed
winRT
1 parent 99038aa commit aa95801

File tree

176 files changed

+4890
-1
lines changed

Some content is hidden

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

176 files changed

+4890
-1
lines changed

‎GokhaleSirClassPuneWin32DotNetComWinrt.sln‎

Lines changed: 43 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -183,7 +183,7 @@ Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "06-DotNet", "06-DotNet", "{
183183
EndProject
184184
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "07-WinRT", "07-WinRT", "{41F2B036-C2D9-4B8F-AB04-B2784168EC30}"
185185
EndProject
186-
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "HW1-HelloWorldCmdLineCompile", "HW1-HelloWorldCmdLineCompile", "{3EE8B0F4-6962-432F-B1FD-B3A170C15619}"
186+
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "HW1_console_HelloWorldCmdLineCompile", "HW1_console_HelloWorldCmdLineCompile", "{3EE8B0F4-6962-432F-B1FD-B3A170C15619}"
187187
ProjectSection(SolutionItems) = preProject
188188
helloWorld.cpp = helloWorld.cpp
189189
EndProjectSection
@@ -198,6 +198,10 @@ Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "UserDataStoreFileIO", "User
198198
EndProject
199199
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "01", "01", "{CBFB0A7D-7259-4F51-A927-047452A2BF50}"
200200
EndProject
201+
Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "HW2_GUI_1_IDE", "HW2_GUI_1_IDE\HW2_GUI_1_IDE.vcxproj", "{45748747-1707-463A-9FF3-452B43CB5785}"
202+
EndProject
203+
Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "HW2_GUI_2_NOGRID", "HW2_GUI_2_NOGRID\HW2_GUI_2_NOGRID.vcxproj", "{0412B3A1-31C6-4AFC-AC71-825880E65B16}"
204+
EndProject
201205
Global
202206
GlobalSection(SolutionConfigurationPlatforms) = preSolution
203207
Debug|ARM = Debug|ARM
@@ -706,6 +710,42 @@ Global
706710
{67531CAC-FC72-4570-9484-1C7C41C02AE6}.Release|x64.Build.0 = Release|x64
707711
{67531CAC-FC72-4570-9484-1C7C41C02AE6}.Release|x86.ActiveCfg = Release|Win32
708712
{67531CAC-FC72-4570-9484-1C7C41C02AE6}.Release|x86.Build.0 = Release|Win32
713+
{45748747-1707-463A-9FF3-452B43CB5785}.Debug|ARM.ActiveCfg = Debug|ARM
714+
{45748747-1707-463A-9FF3-452B43CB5785}.Debug|ARM.Build.0 = Debug|ARM
715+
{45748747-1707-463A-9FF3-452B43CB5785}.Debug|ARM.Deploy.0 = Debug|ARM
716+
{45748747-1707-463A-9FF3-452B43CB5785}.Debug|x64.ActiveCfg = Debug|x64
717+
{45748747-1707-463A-9FF3-452B43CB5785}.Debug|x64.Build.0 = Debug|x64
718+
{45748747-1707-463A-9FF3-452B43CB5785}.Debug|x64.Deploy.0 = Debug|x64
719+
{45748747-1707-463A-9FF3-452B43CB5785}.Debug|x86.ActiveCfg = Debug|Win32
720+
{45748747-1707-463A-9FF3-452B43CB5785}.Debug|x86.Build.0 = Debug|Win32
721+
{45748747-1707-463A-9FF3-452B43CB5785}.Debug|x86.Deploy.0 = Debug|Win32
722+
{45748747-1707-463A-9FF3-452B43CB5785}.Release|ARM.ActiveCfg = Release|ARM
723+
{45748747-1707-463A-9FF3-452B43CB5785}.Release|ARM.Build.0 = Release|ARM
724+
{45748747-1707-463A-9FF3-452B43CB5785}.Release|ARM.Deploy.0 = Release|ARM
725+
{45748747-1707-463A-9FF3-452B43CB5785}.Release|x64.ActiveCfg = Release|x64
726+
{45748747-1707-463A-9FF3-452B43CB5785}.Release|x64.Build.0 = Release|x64
727+
{45748747-1707-463A-9FF3-452B43CB5785}.Release|x64.Deploy.0 = Release|x64
728+
{45748747-1707-463A-9FF3-452B43CB5785}.Release|x86.ActiveCfg = Release|Win32
729+
{45748747-1707-463A-9FF3-452B43CB5785}.Release|x86.Build.0 = Release|Win32
730+
{45748747-1707-463A-9FF3-452B43CB5785}.Release|x86.Deploy.0 = Release|Win32
731+
{0412B3A1-31C6-4AFC-AC71-825880E65B16}.Debug|ARM.ActiveCfg = Debug|ARM
732+
{0412B3A1-31C6-4AFC-AC71-825880E65B16}.Debug|ARM.Build.0 = Debug|ARM
733+
{0412B3A1-31C6-4AFC-AC71-825880E65B16}.Debug|ARM.Deploy.0 = Debug|ARM
734+
{0412B3A1-31C6-4AFC-AC71-825880E65B16}.Debug|x64.ActiveCfg = Debug|x64
735+
{0412B3A1-31C6-4AFC-AC71-825880E65B16}.Debug|x64.Build.0 = Debug|x64
736+
{0412B3A1-31C6-4AFC-AC71-825880E65B16}.Debug|x64.Deploy.0 = Debug|x64
737+
{0412B3A1-31C6-4AFC-AC71-825880E65B16}.Debug|x86.ActiveCfg = Debug|Win32
738+
{0412B3A1-31C6-4AFC-AC71-825880E65B16}.Debug|x86.Build.0 = Debug|Win32
739+
{0412B3A1-31C6-4AFC-AC71-825880E65B16}.Debug|x86.Deploy.0 = Debug|Win32
740+
{0412B3A1-31C6-4AFC-AC71-825880E65B16}.Release|ARM.ActiveCfg = Release|ARM
741+
{0412B3A1-31C6-4AFC-AC71-825880E65B16}.Release|ARM.Build.0 = Release|ARM
742+
{0412B3A1-31C6-4AFC-AC71-825880E65B16}.Release|ARM.Deploy.0 = Release|ARM
743+
{0412B3A1-31C6-4AFC-AC71-825880E65B16}.Release|x64.ActiveCfg = Release|x64
744+
{0412B3A1-31C6-4AFC-AC71-825880E65B16}.Release|x64.Build.0 = Release|x64
745+
{0412B3A1-31C6-4AFC-AC71-825880E65B16}.Release|x64.Deploy.0 = Release|x64
746+
{0412B3A1-31C6-4AFC-AC71-825880E65B16}.Release|x86.ActiveCfg = Release|Win32
747+
{0412B3A1-31C6-4AFC-AC71-825880E65B16}.Release|x86.Build.0 = Release|Win32
748+
{0412B3A1-31C6-4AFC-AC71-825880E65B16}.Release|x86.Deploy.0 = Release|Win32
709749
EndGlobalSection
710750
GlobalSection(SolutionProperties) = preSolution
711751
HideSolutionNode = FALSE
@@ -785,6 +825,8 @@ Global
785825
{B946AD37-C28C-42ED-8912-51CA9451FA5A} = {C1696AE5-BB49-4579-A2D3-FA1958EBEC27}
786826
{67531CAC-FC72-4570-9484-1C7C41C02AE6} = {CBFB0A7D-7259-4F51-A927-047452A2BF50}
787827
{CBFB0A7D-7259-4F51-A927-047452A2BF50} = {A6E992DF-EBF7-4DD4-8970-2C219078DA2A}
828+
{45748747-1707-463A-9FF3-452B43CB5785} = {41F2B036-C2D9-4B8F-AB04-B2784168EC30}
829+
{0412B3A1-31C6-4AFC-AC71-825880E65B16} = {41F2B036-C2D9-4B8F-AB04-B2784168EC30}
788830
EndGlobalSection
789831
GlobalSection(ExtensibilityGlobals) = postSolution
790832
SolutionGuid = {4AE1A065-B741-4555-A616-35C2100732D9}

‎HW2_GUI_1_IDE/App.xaml‎

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
<Application
2+
x:Class="HW2_GUI_1_IDE.App"
3+
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
4+
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
5+
xmlns:local="using:HW2_GUI_1_IDE">
6+
7+
</Application>

‎HW2_GUI_1_IDE/App.xaml.cpp‎

Lines changed: 116 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,116 @@
1+
//
2+
// App.xaml.cpp
3+
// Implementation of the App class.
4+
//
5+
6+
#include "pch.h"
7+
#include "MainPage.xaml.h"
8+
9+
using namespace HW2_GUI_1_IDE;
10+
11+
using namespace Platform;
12+
using namespace Windows::ApplicationModel;
13+
using namespace Windows::ApplicationModel::Activation;
14+
using namespace Windows::Foundation;
15+
using namespace Windows::Foundation::Collections;
16+
using namespace Windows::UI::Xaml;
17+
using namespace Windows::UI::Xaml::Controls;
18+
using namespace Windows::UI::Xaml::Controls::Primitives;
19+
using namespace Windows::UI::Xaml::Data;
20+
using namespace Windows::UI::Xaml::Input;
21+
using namespace Windows::UI::Xaml::Interop;
22+
using namespace Windows::UI::Xaml::Media;
23+
using namespace Windows::UI::Xaml::Navigation;
24+
25+
/// <summary>
26+
/// Initializes the singleton application object. This is the first line of authored code
27+
/// executed, and as such is the logical equivalent of main() or WinMain().
28+
/// </summary>
29+
App::App()
30+
{
31+
InitializeComponent();
32+
Suspending += ref new SuspendingEventHandler(this, &App::OnSuspending);
33+
}
34+
35+
/// <summary>
36+
/// Invoked when the application is launched normally by the end user. Other entry points
37+
/// will be used such as when the application is launched to open a specific file.
38+
/// </summary>
39+
/// <param name="e">Details about the launch request and process.</param>
40+
void App::OnLaunched(Windows::ApplicationModel::Activation::LaunchActivatedEventArgs^ e)
41+
{
42+
auto rootFrame = dynamic_cast<Frame^>(Window::Current->Content);
43+
44+
// Do not repeat app initialization when the Window already has content,
45+
// just ensure that the window is active
46+
if (rootFrame == nullptr)
47+
{
48+
// Create a Frame to act as the navigation context and associate it with
49+
// a SuspensionManager key
50+
rootFrame = ref new Frame();
51+
52+
rootFrame->NavigationFailed += ref new Windows::UI::Xaml::Navigation::NavigationFailedEventHandler(this, &App::OnNavigationFailed);
53+
54+
if (e->PreviousExecutionState == ApplicationExecutionState::Terminated)
55+
{
56+
// TODO: Restore the saved session state only when appropriate, scheduling the
57+
// final launch steps after the restore is complete
58+
59+
}
60+
61+
if (e->PrelaunchActivated == false)
62+
{
63+
if (rootFrame->Content == nullptr)
64+
{
65+
// When the navigation stack isn't restored navigate to the first page,
66+
// configuring the new page by passing required information as a navigation
67+
// parameter
68+
rootFrame->Navigate(TypeName(MainPage::typeid), e->Arguments);
69+
}
70+
// Place the frame in the current Window
71+
Window::Current->Content = rootFrame;
72+
// Ensure the current window is active
73+
Window::Current->Activate();
74+
}
75+
}
76+
else
77+
{
78+
if (e->PrelaunchActivated == false)
79+
{
80+
if (rootFrame->Content == nullptr)
81+
{
82+
// When the navigation stack isn't restored navigate to the first page,
83+
// configuring the new page by passing required information as a navigation
84+
// parameter
85+
rootFrame->Navigate(TypeName(MainPage::typeid), e->Arguments);
86+
}
87+
// Ensure the current window is active
88+
Window::Current->Activate();
89+
}
90+
}
91+
}
92+
93+
/// <summary>
94+
/// Invoked when application execution is being suspended. Application state is saved
95+
/// without knowing whether the application will be terminated or resumed with the contents
96+
/// of memory still intact.
97+
/// </summary>
98+
/// <param name="sender">The source of the suspend request.</param>
99+
/// <param name="e">Details about the suspend request.</param>
100+
void App::OnSuspending(Object^ sender, SuspendingEventArgs^ e)
101+
{
102+
(void) sender; // Unused parameter
103+
(void) e; // Unused parameter
104+
105+
//TODO: Save application state and stop any background activity
106+
}
107+
108+
/// <summary>
109+
/// Invoked when Navigation to a certain page fails
110+
/// </summary>
111+
/// <param name="sender">The Frame which failed navigation</param>
112+
/// <param name="e">Details about the navigation failure</param>
113+
void App::OnNavigationFailed(Platform::Object ^sender, Windows::UI::Xaml::Navigation::NavigationFailedEventArgs ^e)
114+
{
115+
throw ref new FailureException("Failed to load Page " + e->SourcePageType.Name);
116+
}

‎HW2_GUI_1_IDE/App.xaml.h‎

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
//
2+
// App.xaml.h
3+
// Declaration of the App class.
4+
//
5+
6+
#pragma once
7+
8+
#include "App.g.h"
9+
10+
namespace HW2_GUI_1_IDE
11+
{
12+
/// <summary>
13+
/// Provides application-specific behavior to supplement the default Application class.
14+
/// </summary>
15+
ref class App sealed
16+
{
17+
protected:
18+
virtual void OnLaunched(Windows::ApplicationModel::Activation::LaunchActivatedEventArgs^ e) override;
19+
20+
internal:
21+
App();
22+
23+
private:
24+
void OnSuspending(Platform::Object^ sender, Windows::ApplicationModel::SuspendingEventArgs^ e);
25+
void OnNavigationFailed(Platform::Object ^sender, Windows::UI::Xaml::Navigation::NavigationFailedEventArgs ^e);
26+
};
27+
}
1.4 KB
Loading[フレーム]
7.52 KB
Loading[フレーム]
2.87 KB
Loading[フレーム]
1.61 KB
Loading[フレーム]
1.23 KB
Loading[フレーム]

‎HW2_GUI_1_IDE/Assets/StoreLogo.png‎

1.42 KB
Loading[フレーム]

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /