diff --git a/.gitignore b/.gitignore index 0dbfbed..ec3abba 100644 --- a/.gitignore +++ b/.gitignore @@ -113,4 +113,411 @@ $RECYCLE.BIN/ # Windows shortcuts *.lnk -# End of https://www.toptal.com/developers/gitignore/api/rider,windows \ No newline at end of file +# End of https://www.toptal.com/developers/gitignore/api/rider,windows + + +# Created by https://www.toptal.com/developers/gitignore/api/visualstudio +# Edit at https://www.toptal.com/developers/gitignore?templates=visualstudio + +### VisualStudio ### +## Ignore Visual Studio temporary files, build results, and +## files generated by popular Visual Studio add-ons. +## +## Get latest from https://github.com/github/gitignore/blob/main/VisualStudio.gitignore + +# User-specific files +*.rsuser +*.suo +*.user +*.userosscache +*.sln.docstates + +# User-specific files (MonoDevelop/Xamarin Studio) +*.userprefs + +# Mono auto generated files +mono_crash.* + +# Build results +[Dd]ebug/ +[Dd]ebugPublic/ +[Rr]elease/ +[Rr]eleases/ +x64/ +x86/ +[Ww][Ii][Nn]32/ +[Aa][Rr][Mm]/ +[Aa][Rr][Mm]64/ +bld/ +[Bb]in/ +[Oo]bj/ +[Ll]og/ +[Ll]ogs/ + +# Visual Studio 2015/2017 cache/options directory +.vs/ +# Uncomment if you have tasks that create the project's static files in wwwroot +#wwwroot/ + +# Visual Studio 2017 auto generated files +Generated\ Files/ + +# MSTest test Results +[Tt]est[Rr]esult*/ +[Bb]uild[Ll]og.* + +# NUnit +*.VisualState.xml +TestResult.xml +nunit-*.xml + +# Build Results of an ATL Project +[Dd]ebugPS/ +[Rr]eleasePS/ +dlldata.c + +# Benchmark Results +BenchmarkDotNet.Artifacts/ + +# .NET Core +project.lock.json +project.fragment.lock.json +artifacts/ + +# ASP.NET Scaffolding +ScaffoldingReadMe.txt + +# StyleCop +StyleCopReport.xml + +# Files built by Visual Studio +*_i.c +*_p.c +*_h.h +*.ilk +*.meta +*.obj +*.iobj +*.pch +*.pdb +*.ipdb +*.pgc +*.pgd +*.rsp +*.sbr +*.tlb +*.tli +*.tlh +*.tmp +*.tmp_proj +*_wpftmp.csproj +*.log +*.tlog +*.vspscc +*.vssscc +.builds +*.pidb +*.svclog +*.scc + +# Chutzpah Test files +_Chutzpah* + +# Visual C++ cache files +ipch/ +*.aps +*.ncb +*.opendb +*.opensdf +*.sdf +*.cachefile +*.VC.db +*.VC.VC.opendb + +# Visual Studio profiler +*.psess +*.vsp +*.vspx +*.sap + +# Visual Studio Trace Files +*.e2e + +# TFS 2012 Local Workspace +$tf/ + +# Guidance Automation Toolkit +*.gpState + +# ReSharper is a .NET coding add-in +_ReSharper*/ +*.[Rr]e[Ss]harper +*.DotSettings.user + +# TeamCity is a build add-in +_TeamCity* + +# DotCover is a Code Coverage Tool +*.dotCover + +# AxoCover is a Code Coverage Tool +.axoCover/* +!.axoCover/settings.json + +# Coverlet is a free, cross platform Code Coverage Tool +coverage*.json +coverage*.xml +coverage*.info + +# Visual Studio code coverage results +*.coverage +*.coveragexml + +# NCrunch +_NCrunch_* +.*crunch*.local.xml +nCrunchTemp_* + +# MightyMoose +*.mm.* +AutoTest.Net/ + +# Web workbench (sass) +.sass-cache/ + +# Installshield output folder +[Ee]xpress/ + +# DocProject is a documentation generator add-in +DocProject/buildhelp/ +DocProject/Help/*.HxT +DocProject/Help/*.HxC +DocProject/Help/*.hhc +DocProject/Help/*.hhk +DocProject/Help/*.hhp +DocProject/Help/Html2 +DocProject/Help/html + +# Click-Once directory +publish/ + +# Publish Web Output +*.[Pp]ublish.xml +*.azurePubxml +# Note: Comment the next line if you want to checkin your web deploy settings, +# but database connection strings (with potential passwords) will be unencrypted +*.pubxml +*.publishproj + +# Microsoft Azure Web App publish settings. Comment the next line if you want to +# checkin your Azure Web App publish settings, but sensitive information contained +# in these scripts will be unencrypted +PublishScripts/ + +# NuGet Packages +*.nupkg +# NuGet Symbol Packages +*.snupkg +# The packages folder can be ignored because of Package Restore +**/[Pp]ackages/* +# except build/, which is used as an MSBuild target. +!**/[Pp]ackages/build/ +# Uncomment if necessary however generally it will be regenerated when needed +#!**/[Pp]ackages/repositories.config +# NuGet v3's project.json files produces more ignorable files +*.nuget.props +*.nuget.targets + +# Microsoft Azure Build Output +csx/ +*.build.csdef + +# Microsoft Azure Emulator +ecf/ +rcf/ + +# Windows Store app package directories and files +AppPackages/ +BundleArtifacts/ +Package.StoreAssociation.xml +_pkginfo.txt +*.appx +*.appxbundle +*.appxupload + +# Visual Studio cache files +# files ending in .cache can be ignored +*.[Cc]ache +# but keep track of directories ending in .cache +!?*.[Cc]ache/ + +# Others +ClientBin/ +~$* +*~ +*.dbmdl +*.dbproj.schemaview +*.jfm +*.pfx +*.publishsettings +orleans.codegen.cs + +# Including strong name files can present a security risk +# (https://github.com/github/gitignore/pull/2483#issue-259490424) +#*.snk + +# Since there are multiple workflows, uncomment next line to ignore bower_components +# (https://github.com/github/gitignore/pull/1529#issuecomment-104372622) +#bower_components/ + +# RIA/Silverlight projects +Generated_Code/ + +# Backup & report files from converting an old project file +# to a newer Visual Studio version. Backup files are not needed, +# because we have git ;-) +_UpgradeReport_Files/ +Backup*/ +UpgradeLog*.XML +UpgradeLog*.htm +ServiceFabricBackup/ +*.rptproj.bak + +# SQL Server files +*.mdf +*.ldf +*.ndf + +# Business Intelligence projects +*.rdl.data +*.bim.layout +*.bim_*.settings +*.rptproj.rsuser +*- [Bb]ackup.rdl +*- [Bb]ackup ([0-9]).rdl +*- [Bb]ackup ([0-9][0-9]).rdl + +# Microsoft Fakes +FakesAssemblies/ + +# GhostDoc plugin setting file +*.GhostDoc.xml + +# Node.js Tools for Visual Studio +.ntvs_analysis.dat +node_modules/ + +# Visual Studio 6 build log +*.plg + +# Visual Studio 6 workspace options file +*.opt + +# Visual Studio 6 auto-generated workspace file (contains which files were open etc.) +*.vbw + +# Visual Studio 6 auto-generated project file (contains which files were open etc.) +*.vbp + +# Visual Studio 6 workspace and project file (working project files containing files to include in project) +*.dsw +*.dsp + +# Visual Studio 6 technical files + +# Visual Studio LightSwitch build output +**/*.HTMLClient/GeneratedArtifacts +**/*.DesktopClient/GeneratedArtifacts +**/*.DesktopClient/ModelManifest.xml +**/*.Server/GeneratedArtifacts +**/*.Server/ModelManifest.xml +_Pvt_Extensions + +# Paket dependency manager +.paket/paket.exe +paket-files/ + +# FAKE - F# Make +.fake/ + +# CodeRush personal settings +.cr/personal + +# Python Tools for Visual Studio (PTVS) +__pycache__/ +*.pyc + +# Cake - Uncomment if you are using it +# tools/** +# !tools/packages.config + +# Tabs Studio +*.tss + +# Telerik's JustMock configuration file +*.jmconfig + +# BizTalk build output +*.btp.cs +*.btm.cs +*.odx.cs +*.xsd.cs + +# OpenCover UI analysis results +OpenCover/ + +# Azure Stream Analytics local run output +ASALocalRun/ + +# MSBuild Binary and Structured Log +*.binlog + +# NVidia Nsight GPU debugger configuration file +*.nvuser + +# MFractors (Xamarin productivity tool) working folder +.mfractor/ + +# Local History for Visual Studio +.localhistory/ + +# Visual Studio History (VSHistory) files +.vshistory/ + +# BeatPulse healthcheck temp database +healthchecksdb + +# Backup folder for Package Reference Convert tool in Visual Studio 2017 +MigrationBackup/ + +# Ionide (cross platform F# VS Code tools) working folder +.ionide/ + +# Fody - auto-generated XML schema +FodyWeavers.xsd + +# VS Code files for those working on multiple tools +.vscode/* +!.vscode/settings.json +!.vscode/tasks.json +!.vscode/launch.json +!.vscode/extensions.json +*.code-workspace + +# Local History for Visual Studio Code +.history/ + +# Windows Installer files from build outputs +*.cab +*.msi +*.msix +*.msm +*.msp + +# JetBrains Rider +*.sln.iml + +### VisualStudio Patch ### +# Additional files built by Visual Studio + +# End of https://www.toptal.com/developers/gitignore/api/visualstudio \ No newline at end of file diff --git a/ImageCore/ImageCore.csproj b/ImageCore/ImageCore.csproj index 666b158..158129d 100644 --- a/ImageCore/ImageCore.csproj +++ b/ImageCore/ImageCore.csproj @@ -2,7 +2,7 @@ Image - net5.0;netstandard2.1 + net5.0;netstandard2.1;netstandard2.0 8.0 diff --git a/ImgMetadataRemover.sln b/ImgMetadataRemover.sln index 6f37d17..f1cfaf2 100644 --- a/ImgMetadataRemover.sln +++ b/ImgMetadataRemover.sln @@ -1,28 +1,125 @@  Microsoft Visual Studio Solution File, Format Version 12.00 -Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "ImageCore", "ImageCore\ImageCore.csproj", "{10AD7910-C8AA-43ED-9231-EBE267AC270F}" +# Visual Studio Version 17 +VisualStudioVersion = 17.0.32112.339 +MinimumVisualStudioVersion = 10.0.40219.1 +Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "ImageCore", "ImageCore\ImageCore.csproj", "{10AD7910-C8AA-43ED-9231-EBE267AC270F}" EndProject -Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "ConsoleInterface", "ConsoleInterface\ConsoleInterface.csproj", "{F04E0337-23D3-4209-9BDE-B798090A7A63}" +Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "ConsoleInterface", "ConsoleInterface\ConsoleInterface.csproj", "{F04E0337-23D3-4209-9BDE-B798090A7A63}" EndProject -Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "ImageCore.Tests", "ImageCore.Tests\ImageCore.Tests.csproj", "{8EB81515-E62C-4408-84E0-6C27E0293902}" +Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "ImageCore.Tests", "ImageCore.Tests\ImageCore.Tests.csproj", "{8EB81515-E62C-4408-84E0-6C27E0293902}" +EndProject +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "UwpApplication", "UwpApplication\UwpApplication.csproj", "{2E54D610-D16D-40BF-A7C7-2092BE262779}" EndProject Global GlobalSection(SolutionConfigurationPlatforms) = preSolution Debug|Any CPU = Debug|Any CPU + Debug|ARM = Debug|ARM + Debug|ARM64 = Debug|ARM64 + Debug|x64 = Debug|x64 + Debug|x86 = Debug|x86 Release|Any CPU = Release|Any CPU + Release|ARM = Release|ARM + Release|ARM64 = Release|ARM64 + Release|x64 = Release|x64 + Release|x86 = Release|x86 EndGlobalSection GlobalSection(ProjectConfigurationPlatforms) = postSolution {10AD7910-C8AA-43ED-9231-EBE267AC270F}.Debug|Any CPU.ActiveCfg = Debug|Any CPU {10AD7910-C8AA-43ED-9231-EBE267AC270F}.Debug|Any CPU.Build.0 = Debug|Any CPU + {10AD7910-C8AA-43ED-9231-EBE267AC270F}.Debug|ARM.ActiveCfg = Debug|Any CPU + {10AD7910-C8AA-43ED-9231-EBE267AC270F}.Debug|ARM.Build.0 = Debug|Any CPU + {10AD7910-C8AA-43ED-9231-EBE267AC270F}.Debug|ARM64.ActiveCfg = Debug|Any CPU + {10AD7910-C8AA-43ED-9231-EBE267AC270F}.Debug|ARM64.Build.0 = Debug|Any CPU + {10AD7910-C8AA-43ED-9231-EBE267AC270F}.Debug|x64.ActiveCfg = Debug|Any CPU + {10AD7910-C8AA-43ED-9231-EBE267AC270F}.Debug|x64.Build.0 = Debug|Any CPU + {10AD7910-C8AA-43ED-9231-EBE267AC270F}.Debug|x86.ActiveCfg = Debug|Any CPU + {10AD7910-C8AA-43ED-9231-EBE267AC270F}.Debug|x86.Build.0 = Debug|Any CPU {10AD7910-C8AA-43ED-9231-EBE267AC270F}.Release|Any CPU.ActiveCfg = Release|Any CPU {10AD7910-C8AA-43ED-9231-EBE267AC270F}.Release|Any CPU.Build.0 = Release|Any CPU + {10AD7910-C8AA-43ED-9231-EBE267AC270F}.Release|ARM.ActiveCfg = Release|Any CPU + {10AD7910-C8AA-43ED-9231-EBE267AC270F}.Release|ARM.Build.0 = Release|Any CPU + {10AD7910-C8AA-43ED-9231-EBE267AC270F}.Release|ARM64.ActiveCfg = Release|Any CPU + {10AD7910-C8AA-43ED-9231-EBE267AC270F}.Release|ARM64.Build.0 = Release|Any CPU + {10AD7910-C8AA-43ED-9231-EBE267AC270F}.Release|x64.ActiveCfg = Release|Any CPU + {10AD7910-C8AA-43ED-9231-EBE267AC270F}.Release|x64.Build.0 = Release|Any CPU + {10AD7910-C8AA-43ED-9231-EBE267AC270F}.Release|x86.ActiveCfg = Release|Any CPU + {10AD7910-C8AA-43ED-9231-EBE267AC270F}.Release|x86.Build.0 = Release|Any CPU {F04E0337-23D3-4209-9BDE-B798090A7A63}.Debug|Any CPU.ActiveCfg = Debug|Any CPU {F04E0337-23D3-4209-9BDE-B798090A7A63}.Debug|Any CPU.Build.0 = Debug|Any CPU + {F04E0337-23D3-4209-9BDE-B798090A7A63}.Debug|ARM.ActiveCfg = Debug|Any CPU + {F04E0337-23D3-4209-9BDE-B798090A7A63}.Debug|ARM.Build.0 = Debug|Any CPU + {F04E0337-23D3-4209-9BDE-B798090A7A63}.Debug|ARM64.ActiveCfg = Debug|Any CPU + {F04E0337-23D3-4209-9BDE-B798090A7A63}.Debug|ARM64.Build.0 = Debug|Any CPU + {F04E0337-23D3-4209-9BDE-B798090A7A63}.Debug|x64.ActiveCfg = Debug|Any CPU + {F04E0337-23D3-4209-9BDE-B798090A7A63}.Debug|x64.Build.0 = Debug|Any CPU + {F04E0337-23D3-4209-9BDE-B798090A7A63}.Debug|x86.ActiveCfg = Debug|Any CPU + {F04E0337-23D3-4209-9BDE-B798090A7A63}.Debug|x86.Build.0 = Debug|Any CPU {F04E0337-23D3-4209-9BDE-B798090A7A63}.Release|Any CPU.ActiveCfg = Release|Any CPU {F04E0337-23D3-4209-9BDE-B798090A7A63}.Release|Any CPU.Build.0 = Release|Any CPU + {F04E0337-23D3-4209-9BDE-B798090A7A63}.Release|ARM.ActiveCfg = Release|Any CPU + {F04E0337-23D3-4209-9BDE-B798090A7A63}.Release|ARM.Build.0 = Release|Any CPU + {F04E0337-23D3-4209-9BDE-B798090A7A63}.Release|ARM64.ActiveCfg = Release|Any CPU + {F04E0337-23D3-4209-9BDE-B798090A7A63}.Release|ARM64.Build.0 = Release|Any CPU + {F04E0337-23D3-4209-9BDE-B798090A7A63}.Release|x64.ActiveCfg = Release|Any CPU + {F04E0337-23D3-4209-9BDE-B798090A7A63}.Release|x64.Build.0 = Release|Any CPU + {F04E0337-23D3-4209-9BDE-B798090A7A63}.Release|x86.ActiveCfg = Release|Any CPU + {F04E0337-23D3-4209-9BDE-B798090A7A63}.Release|x86.Build.0 = Release|Any CPU {8EB81515-E62C-4408-84E0-6C27E0293902}.Debug|Any CPU.ActiveCfg = Debug|Any CPU {8EB81515-E62C-4408-84E0-6C27E0293902}.Debug|Any CPU.Build.0 = Debug|Any CPU + {8EB81515-E62C-4408-84E0-6C27E0293902}.Debug|ARM.ActiveCfg = Debug|Any CPU + {8EB81515-E62C-4408-84E0-6C27E0293902}.Debug|ARM.Build.0 = Debug|Any CPU + {8EB81515-E62C-4408-84E0-6C27E0293902}.Debug|ARM64.ActiveCfg = Debug|Any CPU + {8EB81515-E62C-4408-84E0-6C27E0293902}.Debug|ARM64.Build.0 = Debug|Any CPU + {8EB81515-E62C-4408-84E0-6C27E0293902}.Debug|x64.ActiveCfg = Debug|Any CPU + {8EB81515-E62C-4408-84E0-6C27E0293902}.Debug|x64.Build.0 = Debug|Any CPU + {8EB81515-E62C-4408-84E0-6C27E0293902}.Debug|x86.ActiveCfg = Debug|Any CPU + {8EB81515-E62C-4408-84E0-6C27E0293902}.Debug|x86.Build.0 = Debug|Any CPU {8EB81515-E62C-4408-84E0-6C27E0293902}.Release|Any CPU.ActiveCfg = Release|Any CPU {8EB81515-E62C-4408-84E0-6C27E0293902}.Release|Any CPU.Build.0 = Release|Any CPU + {8EB81515-E62C-4408-84E0-6C27E0293902}.Release|ARM.ActiveCfg = Release|Any CPU + {8EB81515-E62C-4408-84E0-6C27E0293902}.Release|ARM.Build.0 = Release|Any CPU + {8EB81515-E62C-4408-84E0-6C27E0293902}.Release|ARM64.ActiveCfg = Release|Any CPU + {8EB81515-E62C-4408-84E0-6C27E0293902}.Release|ARM64.Build.0 = Release|Any CPU + {8EB81515-E62C-4408-84E0-6C27E0293902}.Release|x64.ActiveCfg = Release|Any CPU + {8EB81515-E62C-4408-84E0-6C27E0293902}.Release|x64.Build.0 = Release|Any CPU + {8EB81515-E62C-4408-84E0-6C27E0293902}.Release|x86.ActiveCfg = Release|Any CPU + {8EB81515-E62C-4408-84E0-6C27E0293902}.Release|x86.Build.0 = Release|Any CPU + {2E54D610-D16D-40BF-A7C7-2092BE262779}.Debug|Any CPU.ActiveCfg = Debug|x64 + {2E54D610-D16D-40BF-A7C7-2092BE262779}.Debug|Any CPU.Build.0 = Debug|x64 + {2E54D610-D16D-40BF-A7C7-2092BE262779}.Debug|Any CPU.Deploy.0 = Debug|x64 + {2E54D610-D16D-40BF-A7C7-2092BE262779}.Debug|ARM.ActiveCfg = Debug|ARM + {2E54D610-D16D-40BF-A7C7-2092BE262779}.Debug|ARM.Build.0 = Debug|ARM + {2E54D610-D16D-40BF-A7C7-2092BE262779}.Debug|ARM.Deploy.0 = Debug|ARM + {2E54D610-D16D-40BF-A7C7-2092BE262779}.Debug|ARM64.ActiveCfg = Debug|ARM64 + {2E54D610-D16D-40BF-A7C7-2092BE262779}.Debug|ARM64.Build.0 = Debug|ARM64 + {2E54D610-D16D-40BF-A7C7-2092BE262779}.Debug|ARM64.Deploy.0 = Debug|ARM64 + {2E54D610-D16D-40BF-A7C7-2092BE262779}.Debug|x64.ActiveCfg = Debug|x64 + {2E54D610-D16D-40BF-A7C7-2092BE262779}.Debug|x64.Build.0 = Debug|x64 + {2E54D610-D16D-40BF-A7C7-2092BE262779}.Debug|x64.Deploy.0 = Debug|x64 + {2E54D610-D16D-40BF-A7C7-2092BE262779}.Debug|x86.ActiveCfg = Debug|x86 + {2E54D610-D16D-40BF-A7C7-2092BE262779}.Debug|x86.Build.0 = Debug|x86 + {2E54D610-D16D-40BF-A7C7-2092BE262779}.Debug|x86.Deploy.0 = Debug|x86 + {2E54D610-D16D-40BF-A7C7-2092BE262779}.Release|Any CPU.ActiveCfg = Release|x64 + {2E54D610-D16D-40BF-A7C7-2092BE262779}.Release|Any CPU.Build.0 = Release|x64 + {2E54D610-D16D-40BF-A7C7-2092BE262779}.Release|Any CPU.Deploy.0 = Release|x64 + {2E54D610-D16D-40BF-A7C7-2092BE262779}.Release|ARM.ActiveCfg = Release|ARM + {2E54D610-D16D-40BF-A7C7-2092BE262779}.Release|ARM.Build.0 = Release|ARM + {2E54D610-D16D-40BF-A7C7-2092BE262779}.Release|ARM.Deploy.0 = Release|ARM + {2E54D610-D16D-40BF-A7C7-2092BE262779}.Release|ARM64.ActiveCfg = Release|ARM64 + {2E54D610-D16D-40BF-A7C7-2092BE262779}.Release|ARM64.Build.0 = Release|ARM64 + {2E54D610-D16D-40BF-A7C7-2092BE262779}.Release|ARM64.Deploy.0 = Release|ARM64 + {2E54D610-D16D-40BF-A7C7-2092BE262779}.Release|x64.ActiveCfg = Release|x64 + {2E54D610-D16D-40BF-A7C7-2092BE262779}.Release|x64.Build.0 = Release|x64 + {2E54D610-D16D-40BF-A7C7-2092BE262779}.Release|x64.Deploy.0 = Release|x64 + {2E54D610-D16D-40BF-A7C7-2092BE262779}.Release|x86.ActiveCfg = Release|x86 + {2E54D610-D16D-40BF-A7C7-2092BE262779}.Release|x86.Build.0 = Release|x86 + {2E54D610-D16D-40BF-A7C7-2092BE262779}.Release|x86.Deploy.0 = Release|x86 + EndGlobalSection + GlobalSection(SolutionProperties) = preSolution + HideSolutionNode = FALSE + EndGlobalSection + GlobalSection(ExtensibilityGlobals) = postSolution + SolutionGuid = {ABC939A8-698D-4D13-B894-BA63EF229DEA} EndGlobalSection EndGlobal diff --git a/UwpApplication/App.xaml b/UwpApplication/App.xaml new file mode 100644 index 0000000..dadebe1 --- /dev/null +++ b/UwpApplication/App.xaml @@ -0,0 +1,7 @@ + + + diff --git a/UwpApplication/App.xaml.cs b/UwpApplication/App.xaml.cs new file mode 100644 index 0000000..00dec71 --- /dev/null +++ b/UwpApplication/App.xaml.cs @@ -0,0 +1,100 @@ +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 UwpApplication +{ + /// + /// 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() + { + 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) + { + 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 (e.PrelaunchActivated == false) + { + 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/UwpApplication/Assets/LockScreenLogo.scale-200.png b/UwpApplication/Assets/LockScreenLogo.scale-200.png new file mode 100644 index 0000000..735f57a Binary files /dev/null and b/UwpApplication/Assets/LockScreenLogo.scale-200.png differ diff --git a/UwpApplication/Assets/SplashScreen.scale-200.png b/UwpApplication/Assets/SplashScreen.scale-200.png new file mode 100644 index 0000000..023e7f1 Binary files /dev/null and b/UwpApplication/Assets/SplashScreen.scale-200.png differ diff --git a/UwpApplication/Assets/Square150x150Logo.scale-200.png b/UwpApplication/Assets/Square150x150Logo.scale-200.png new file mode 100644 index 0000000..af49fec Binary files /dev/null and b/UwpApplication/Assets/Square150x150Logo.scale-200.png differ diff --git a/UwpApplication/Assets/Square44x44Logo.scale-200.png b/UwpApplication/Assets/Square44x44Logo.scale-200.png new file mode 100644 index 0000000..ce342a2 Binary files /dev/null and b/UwpApplication/Assets/Square44x44Logo.scale-200.png differ diff --git a/UwpApplication/Assets/Square44x44Logo.targetsize-24_altform-unplated.png b/UwpApplication/Assets/Square44x44Logo.targetsize-24_altform-unplated.png new file mode 100644 index 0000000..f6c02ce Binary files /dev/null and b/UwpApplication/Assets/Square44x44Logo.targetsize-24_altform-unplated.png differ diff --git a/UwpApplication/Assets/StoreLogo.png b/UwpApplication/Assets/StoreLogo.png new file mode 100644 index 0000000..7385b56 Binary files /dev/null and b/UwpApplication/Assets/StoreLogo.png differ diff --git a/UwpApplication/Assets/Wide310x150Logo.scale-200.png b/UwpApplication/Assets/Wide310x150Logo.scale-200.png new file mode 100644 index 0000000..288995b Binary files /dev/null and b/UwpApplication/Assets/Wide310x150Logo.scale-200.png differ diff --git a/UwpApplication/MainPage.xaml b/UwpApplication/MainPage.xaml new file mode 100644 index 0000000..d0e1023 --- /dev/null +++ b/UwpApplication/MainPage.xaml @@ -0,0 +1,14 @@ + + + + + + diff --git a/UwpApplication/MainPage.xaml.cs b/UwpApplication/MainPage.xaml.cs new file mode 100644 index 0000000..09eec0e --- /dev/null +++ b/UwpApplication/MainPage.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 https://go.microsoft.com/fwlink/?LinkId=402352&clcid=0x409 + +namespace UwpApplication +{ + /// + /// An empty page that can be used on its own or navigated to within a Frame. + /// + public sealed partial class MainPage : Page + { + public MainPage() + { + this.InitializeComponent(); + } + } +} diff --git a/UwpApplication/Package.appxmanifest b/UwpApplication/Package.appxmanifest new file mode 100644 index 0000000..38add63 --- /dev/null +++ b/UwpApplication/Package.appxmanifest @@ -0,0 +1,49 @@ + + + + + + + + + + UwpApplication + nutiu + Assets\StoreLogo.png + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/UwpApplication/Properties/AssemblyInfo.cs b/UwpApplication/Properties/AssemblyInfo.cs new file mode 100644 index 0000000..20df3b9 --- /dev/null +++ b/UwpApplication/Properties/AssemblyInfo.cs @@ -0,0 +1,29 @@ +using System.Reflection; +using System.Runtime.CompilerServices; +using System.Runtime.InteropServices; + +// General Information about an assembly is controlled through the following +// set of attributes. Change these attribute values to modify the information +// associated with an assembly. +[assembly: AssemblyTitle("UwpApplication")] +[assembly: AssemblyDescription("")] +[assembly: AssemblyConfiguration("")] +[assembly: AssemblyCompany("")] +[assembly: AssemblyProduct("UwpApplication")] +[assembly: AssemblyCopyright("Copyright © 2022")] +[assembly: AssemblyTrademark("")] +[assembly: AssemblyCulture("")] + +// Version information for an assembly consists of the following four values: +// +// Major Version +// Minor Version +// Build Number +// Revision +// +// You can specify all the values or you can default the Build and Revision Numbers +// by using the '*' as shown below: +// [assembly: AssemblyVersion("1.0.*")] +[assembly: AssemblyVersion("1.0.0.0")] +[assembly: AssemblyFileVersion("1.0.0.0")] +[assembly: ComVisible(false)] \ No newline at end of file diff --git a/UwpApplication/Properties/Default.rd.xml b/UwpApplication/Properties/Default.rd.xml new file mode 100644 index 0000000..af00722 --- /dev/null +++ b/UwpApplication/Properties/Default.rd.xml @@ -0,0 +1,31 @@ + + + + + + + + + + + + + \ No newline at end of file diff --git a/UwpApplication/UwpApplication.csproj b/UwpApplication/UwpApplication.csproj new file mode 100644 index 0000000..232d410 --- /dev/null +++ b/UwpApplication/UwpApplication.csproj @@ -0,0 +1,177 @@ + + + + + Debug + x86 + {2E54D610-D16D-40BF-A7C7-2092BE262779} + AppContainerExe + Properties + UwpApplication + UwpApplication + en-US + UAP + 10.0.22000.0 + 10.0.16299.0 + 14 + 512 + {A5A43C5B-DE2A-4C0C-9213-0A381AF9435A};{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC} + true + false + + + true + bin\x86\Debug\ + DEBUG;TRACE;NETFX_CORE;WINDOWS_UWP + ;2008 + full + x86 + false + prompt + true + + + bin\x86\Release\ + TRACE;NETFX_CORE;WINDOWS_UWP + true + ;2008 + pdbonly + x86 + false + prompt + true + true + + + true + bin\ARM\Debug\ + DEBUG;TRACE;NETFX_CORE;WINDOWS_UWP + ;2008 + full + ARM + false + prompt + true + + + bin\ARM\Release\ + TRACE;NETFX_CORE;WINDOWS_UWP + true + ;2008 + pdbonly + ARM + false + prompt + true + true + + + true + bin\ARM64\Debug\ + DEBUG;TRACE;NETFX_CORE;WINDOWS_UWP + ;2008 + full + ARM64 + false + prompt + true + true + + + bin\ARM64\Release\ + TRACE;NETFX_CORE;WINDOWS_UWP + true + ;2008 + pdbonly + ARM64 + false + prompt + true + true + + + true + bin\x64\Debug\ + DEBUG;TRACE;NETFX_CORE;WINDOWS_UWP + ;2008 + full + x64 + false + prompt + true + + + bin\x64\Release\ + TRACE;NETFX_CORE;WINDOWS_UWP + true + ;2008 + pdbonly + x64 + false + prompt + true + true + + + PackageReference + + + + App.xaml + + + MainPage.xaml + + + + + + Designer + + + + + + + + + + + + + + + MSBuild:Compile + Designer + + + MSBuild:Compile + Designer + + + + + 6.2.12 + + + + + + + + {10ad7910-c8aa-43ed-9231-ebe267ac270f} + ImageCore + + + + 14.0 + + + + \ No newline at end of file