diff --git a/Samples/Tools/errorlookup/errorlookup.sln b/Samples/Tools/errorlookup/errorlookup.sln new file mode 100644 index 00000000..19e9df15 --- /dev/null +++ b/Samples/Tools/errorlookup/errorlookup.sln @@ -0,0 +1,40 @@ + +Microsoft Visual Studio Solution File, Format Version 12.00 +# Visual Studio 14 +VisualStudioVersion = 14.0.24720.0 +MinimumVisualStudioVersion = 10.0.40219.1 +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "errorlookup", "errorlookup\errorlookup.csproj", "{06A00C89-1CCB-4F7B-AC52-9EB2762FB262}" +EndProject +Global + GlobalSection(SolutionConfigurationPlatforms) = preSolution + Debug|ARM = Debug|ARM + Debug|x64 = Debug|x64 + Debug|x86 = Debug|x86 + Release|ARM = Release|ARM + Release|x64 = Release|x64 + Release|x86 = Release|x86 + EndGlobalSection + GlobalSection(ProjectConfigurationPlatforms) = postSolution + {06A00C89-1CCB-4F7B-AC52-9EB2762FB262}.Debug|ARM.ActiveCfg = Debug|ARM + {06A00C89-1CCB-4F7B-AC52-9EB2762FB262}.Debug|ARM.Build.0 = Debug|ARM + {06A00C89-1CCB-4F7B-AC52-9EB2762FB262}.Debug|ARM.Deploy.0 = Debug|ARM + {06A00C89-1CCB-4F7B-AC52-9EB2762FB262}.Debug|x64.ActiveCfg = Debug|x64 + {06A00C89-1CCB-4F7B-AC52-9EB2762FB262}.Debug|x64.Build.0 = Debug|x64 + {06A00C89-1CCB-4F7B-AC52-9EB2762FB262}.Debug|x64.Deploy.0 = Debug|x64 + {06A00C89-1CCB-4F7B-AC52-9EB2762FB262}.Debug|x86.ActiveCfg = Debug|x86 + {06A00C89-1CCB-4F7B-AC52-9EB2762FB262}.Debug|x86.Build.0 = Debug|x86 + {06A00C89-1CCB-4F7B-AC52-9EB2762FB262}.Debug|x86.Deploy.0 = Debug|x86 + {06A00C89-1CCB-4F7B-AC52-9EB2762FB262}.Release|ARM.ActiveCfg = Release|ARM + {06A00C89-1CCB-4F7B-AC52-9EB2762FB262}.Release|ARM.Build.0 = Release|ARM + {06A00C89-1CCB-4F7B-AC52-9EB2762FB262}.Release|ARM.Deploy.0 = Release|ARM + {06A00C89-1CCB-4F7B-AC52-9EB2762FB262}.Release|x64.ActiveCfg = Release|x64 + {06A00C89-1CCB-4F7B-AC52-9EB2762FB262}.Release|x64.Build.0 = Release|x64 + {06A00C89-1CCB-4F7B-AC52-9EB2762FB262}.Release|x64.Deploy.0 = Release|x64 + {06A00C89-1CCB-4F7B-AC52-9EB2762FB262}.Release|x86.ActiveCfg = Release|x86 + {06A00C89-1CCB-4F7B-AC52-9EB2762FB262}.Release|x86.Build.0 = Release|x86 + {06A00C89-1CCB-4F7B-AC52-9EB2762FB262}.Release|x86.Deploy.0 = Release|x86 + EndGlobalSection + GlobalSection(SolutionProperties) = preSolution + HideSolutionNode = FALSE + EndGlobalSection +EndGlobal diff --git a/Samples/Tools/errorlookup/errorlookup/App.xaml b/Samples/Tools/errorlookup/errorlookup/App.xaml new file mode 100644 index 00000000..beb6556a --- /dev/null +++ b/Samples/Tools/errorlookup/errorlookup/App.xaml @@ -0,0 +1,11 @@ + + + diff --git a/Samples/Tools/errorlookup/errorlookup/App.xaml.cs b/Samples/Tools/errorlookup/errorlookup/App.xaml.cs new file mode 100644 index 00000000..2706f899 --- /dev/null +++ b/Samples/Tools/errorlookup/errorlookup/App.xaml.cs @@ -0,0 +1,110 @@ +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; +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; + +namespace errorlookup +{ + /// + /// Provides application-specific behavior to supplement the default Application class. + /// + sealed partial class App : Application + { + /// + /// 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(). + /// + public App() + { + Microsoft.ApplicationInsights.WindowsAppInitializer.InitializeAsync( + Microsoft.ApplicationInsights.WindowsCollectors.Metadata | + Microsoft.ApplicationInsights.WindowsCollectors.Session); + this.InitializeComponent(); + this.Suspending += OnSuspending; + + + } + + /// + /// 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. + /// + /// Details about the launch request and process. + protected override void OnLaunched(LaunchActivatedEventArgs e) + { + +#if DEBUG + if (System.Diagnostics.Debugger.IsAttached) + { + this.DebugSettings.EnableFrameRateCounter = true; + } +#endif + + Frame rootFrame = Window.Current.Content as Frame; + + // Do not repeat app initialization when the Window already has content, + // just ensure that the window is active + if (rootFrame == null) + { + // Create a Frame to act as the navigation context and navigate to the first page + rootFrame = new Frame(); + + rootFrame.NavigationFailed += OnNavigationFailed; + + if (e.PreviousExecutionState == ApplicationExecutionState.Terminated) + { + //TODO: Load state from previously suspended application + } + + // Place the frame in the current Window + Window.Current.Content = rootFrame; + } + + if (rootFrame.Content == null) + { + // When the navigation stack isn't restored navigate to the first page, + // configuring the new page by passing required information as a navigation + // parameter + rootFrame.Navigate(typeof(MainPage), e.Arguments); + } + // Ensure the current window is active + Window.Current.Activate(); + } + + /// + /// Invoked when Navigation to a certain page fails + /// + /// The Frame which failed navigation + /// Details about the navigation failure + void OnNavigationFailed(object sender, NavigationFailedEventArgs e) + { + throw new Exception("Failed to load Page " + e.SourcePageType.FullName); + } + + /// + /// Invoked when application execution is being suspended. Application state is saved + /// without knowing whether the application will be terminated or resumed with the contents + /// of memory still intact. + /// + /// The source of the suspend request. + /// Details about the suspend request. + private void OnSuspending(object sender, SuspendingEventArgs e) + { + var deferral = e.SuspendingOperation.GetDeferral(); + //TODO: Save application state and stop any background activity + deferral.Complete(); + } + } +} diff --git a/Samples/Tools/errorlookup/errorlookup/ApplicationInsights.config b/Samples/Tools/errorlookup/errorlookup/ApplicationInsights.config new file mode 100644 index 00000000..399f3c4e --- /dev/null +++ b/Samples/Tools/errorlookup/errorlookup/ApplicationInsights.config @@ -0,0 +1,3 @@ + + + diff --git a/Samples/Tools/errorlookup/errorlookup/Assets/Logo.png b/Samples/Tools/errorlookup/errorlookup/Assets/Logo.png new file mode 100644 index 00000000..6e7e704a Binary files /dev/null and b/Samples/Tools/errorlookup/errorlookup/Assets/Logo.png differ diff --git a/Samples/Tools/errorlookup/errorlookup/Assets/Logo.scale-100.png b/Samples/Tools/errorlookup/errorlookup/Assets/Logo.scale-100.png new file mode 100644 index 00000000..6e7e704a Binary files /dev/null and b/Samples/Tools/errorlookup/errorlookup/Assets/Logo.scale-100.png differ diff --git a/Samples/Tools/errorlookup/errorlookup/Assets/SmallLogo.png b/Samples/Tools/errorlookup/errorlookup/Assets/SmallLogo.png new file mode 100644 index 00000000..98b09d91 Binary files /dev/null and b/Samples/Tools/errorlookup/errorlookup/Assets/SmallLogo.png differ diff --git a/Samples/Tools/errorlookup/errorlookup/Assets/SplashScreen.png b/Samples/Tools/errorlookup/errorlookup/Assets/SplashScreen.png new file mode 100644 index 00000000..c352b156 Binary files /dev/null and b/Samples/Tools/errorlookup/errorlookup/Assets/SplashScreen.png differ diff --git a/Samples/Tools/errorlookup/errorlookup/Assets/SplashScreen.scale-100.png b/Samples/Tools/errorlookup/errorlookup/Assets/SplashScreen.scale-100.png new file mode 100644 index 00000000..c352b156 Binary files /dev/null and b/Samples/Tools/errorlookup/errorlookup/Assets/SplashScreen.scale-100.png differ diff --git a/Samples/Tools/errorlookup/errorlookup/Assets/Square44x44Logo.scale-100.png b/Samples/Tools/errorlookup/errorlookup/Assets/Square44x44Logo.scale-100.png new file mode 100644 index 00000000..98b09d91 Binary files /dev/null and b/Samples/Tools/errorlookup/errorlookup/Assets/Square44x44Logo.scale-100.png differ diff --git a/Samples/Tools/errorlookup/errorlookup/Assets/StoreLogo.png b/Samples/Tools/errorlookup/errorlookup/Assets/StoreLogo.png new file mode 100644 index 00000000..315472e1 Binary files /dev/null and b/Samples/Tools/errorlookup/errorlookup/Assets/StoreLogo.png differ diff --git a/Samples/Tools/errorlookup/errorlookup/Assets/Wide310x150Logo.scale-100.png b/Samples/Tools/errorlookup/errorlookup/Assets/Wide310x150Logo.scale-100.png new file mode 100644 index 00000000..c70f68e2 Binary files /dev/null and b/Samples/Tools/errorlookup/errorlookup/Assets/Wide310x150Logo.scale-100.png differ diff --git a/Samples/Tools/errorlookup/errorlookup/Assets/WideLogo.png b/Samples/Tools/errorlookup/errorlookup/Assets/WideLogo.png new file mode 100644 index 00000000..c70f68e2 Binary files /dev/null and b/Samples/Tools/errorlookup/errorlookup/Assets/WideLogo.png differ diff --git a/Samples/Tools/errorlookup/errorlookup/Assets/arrow.png b/Samples/Tools/errorlookup/errorlookup/Assets/arrow.png new file mode 100644 index 00000000..ad0c3e3b Binary files /dev/null and b/Samples/Tools/errorlookup/errorlookup/Assets/arrow.png differ diff --git a/Samples/Tools/errorlookup/errorlookup/Assets/atg_logo.png b/Samples/Tools/errorlookup/errorlookup/Assets/atg_logo.png new file mode 100644 index 00000000..90714c48 Binary files /dev/null and b/Samples/Tools/errorlookup/errorlookup/Assets/atg_logo.png differ diff --git a/Samples/Tools/errorlookup/errorlookup/MainPage.xaml b/Samples/Tools/errorlookup/errorlookup/MainPage.xaml new file mode 100644 index 00000000..ab9fd468 --- /dev/null +++ b/Samples/Tools/errorlookup/errorlookup/MainPage.xaml @@ -0,0 +1,247 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Visible + + + + + + + + + + + + + +