Updated readme and samples
- New content for README.md - Added CONTRIBUTING file - Added SimpleSample app
|
@ -0,0 +1,175 @@
|
|||
Contribution License Agreement
|
||||
|
||||
Microsoft asks that all contributors sign a contributor license agreement (CLA).
|
||||
CLAs are generally common and accepted in most open source software projects.
|
||||
We all want Microsoft's open source projects to be as widely used and
|
||||
distributed as possible. We also want its users to be confident about the
|
||||
origins and continuing existence of the code. The CLA helps us achieve that
|
||||
goal by ensuring that we have the agreement of our contributors to use their
|
||||
work, whether it be code, or documentation.
|
||||
|
||||
The CLA permits Microsoft to distribute your code without restriction. It
|
||||
doesn't require you to assign to us any copyright you have, the ownership of
|
||||
the copyright remains with you. You cannot withdraw permission for use of the
|
||||
contribution at a later date.
|
||||
|
||||
We are generally seeking originally authored code and documentation as
|
||||
contributions. Should you wish to submit materials that are not your original
|
||||
work, you may submit them separately to the Project in accordance with the terms
|
||||
of the CLA.
|
||||
|
||||
_______________________________________________________________________________
|
||||
|
||||
This Contribution License Agreement ("Agreement") is agreed to by the parties
|
||||
signing below ("You"), and conveys certain license rights to Microsoft
|
||||
Corporation and its affiliates ("Microsoft") for Your contributions to Microsoft
|
||||
open source projects. This Agreement is effective as of the latest signature
|
||||
date below ("Effective Date").
|
||||
|
||||
1. Definitions.
|
||||
|
||||
"Code" means the computer software code, whether in human-readable or
|
||||
machine-executable form, that is delivered by You to Microsoft under this
|
||||
Agreement.
|
||||
|
||||
"Project" means any of the projects owned or managed by Microsoft and offered
|
||||
under a license approved by the Open Source Initiative (www.opensource.org).
|
||||
|
||||
"Submit" is the act of uploading, submitting, transmitting, or distributing code
|
||||
or other content to any Project, including but not limited to communication on
|
||||
electronic mailing lists, source code control systems, and issue tracking
|
||||
systems that are managed by, or on behalf of, the Project for the purpose of
|
||||
discussing and improving that Project, but excluding communication that is
|
||||
conspicuously marked or otherwise designated in writing by You as
|
||||
"Not a Submission."
|
||||
|
||||
"Submission" means the Code and any other copyrightable material Submitted by
|
||||
You, including any associated comments and documentation.
|
||||
|
||||
2. Your Submission. You must agree to the terms of this Agreement before making
|
||||
a Submission to any Project. This Agreement covers any and all Submissions that
|
||||
You, now or in the future (except as described in Section 4 below), Submit to
|
||||
any Project.
|
||||
|
||||
3. Originality of Work. You represent that each of Your Submissions is entirely
|
||||
Your original work. Should You wish to Submit materials that are not Your
|
||||
original work, You may Submit them separately to the Project if You (a) retain
|
||||
all copyright and license information that was in the materials as you received
|
||||
them, (b) in the description accompanying your Submission, include the phrase
|
||||
"Submission containing materials of a third party:" followed by the names of the
|
||||
third party and any licenses or other restrictions of which You are aware, and
|
||||
(c) follow any other instructions in the Project's written guidelines concerning
|
||||
Submissions.
|
||||
|
||||
4. Your Employer. If You have an employer (other than yourself), You must have
|
||||
the employer sign in one of the two spaces indicated below. If the employer
|
||||
signs in the first space, the term "You" in this Agreement will refer to You and
|
||||
the employer collectively. If You change employers in the future and desire to
|
||||
Submit additional Submissions, then You agree to sign a new Agreement signed by
|
||||
the new employer before Submitting those Submissions.
|
||||
|
||||
5. Licenses.
|
||||
|
||||
a. Copyright License. You grant Microsoft, and those who receive the Code
|
||||
directly or indirectly from Microsoft, a perpetual, worldwide,
|
||||
non-exclusive, royalty-free, irrevocable license in the Submission to
|
||||
reproduce, prepare derivative works of, publicly display, publicly perform,
|
||||
and distribute the Submission and such derivative works, and to sublicense
|
||||
any or all of the foregoing rights to third parties.
|
||||
|
||||
b. Patent License. You grant Microsoft, and those who receive the Code
|
||||
directly or indirectly from Microsoft, a perpetual, worldwide,
|
||||
non-exclusive, royalty-free, irrevocable license under your patent claims
|
||||
that directly read on the Code to make, have made, use, offer to sell, sell
|
||||
and import or otherwise dispose of the Code.
|
||||
|
||||
c. Other Rights Reserved. Each party reserves all rights not expressly
|
||||
granted in this Agreement. No additional licenses or rights whatsoever
|
||||
(including, without limitation, any implied licenses) are granted by
|
||||
implication, exhaustion, estoppel or otherwise.
|
||||
|
||||
6. Representations and Warranties. You represent that You are legally entitled
|
||||
to grant the above licenses. You represent that each of Your Submissions is
|
||||
entirely Your original work (except as you may have disclosed under Section 3).
|
||||
If an individual is signing this Agreement on behalf of the employer of a person
|
||||
making a Submission, pursuant to Section 4 above, the individual represents and
|
||||
warrants that he or she has the necessary authority to bind the listed employer
|
||||
to the obligations contained in this Agreement. You are not expected to provide
|
||||
support for Your Submission, unless you choose to do so. UNLESS REQUIRED BY
|
||||
APPLICABLE LAW OR AGREED TO IN WRITING, AND EXCEPT FOR THE WARRANTIES EXPRESSLY
|
||||
STATED IN SECTIONS 3, 4, AND 6, THE SUBMISSION PROVIDED UNDER THIS AGREEMENT IS
|
||||
PROVIDED WITHOUT WARRANTY OF ANY KIND, INCLUDING, BUT NOT LIMITED TO, ANY
|
||||
WARRANTY OF NONINFRINGEMENT, MERCHANTABILITY, OR FITNESS FOR A PARTICULAR
|
||||
PURPOSE.
|
||||
|
||||
7. Notice to Microsoft. You agree to notify Microsoft in writing of any facts or
|
||||
circumstances of which You later become aware that would make Your
|
||||
representations in this Agreement inaccurate in any respect.
|
||||
|
||||
8. Information about Submissions. You acknowledge that contributions to Projects
|
||||
and information about contributions may be maintained indefinitely and disclosed
|
||||
publicly, including your name and other information that you submit with Your
|
||||
Submission.
|
||||
|
||||
9. Governing Law/Jurisdiction/Attorneys' Fees. This Agreement shall be construed
|
||||
and controlled by the laws of the State of Washington, and the parties consent
|
||||
to exclusive jurisdiction and venue in the federal courts sitting in King
|
||||
County, Washington, unless no federal subject matter jurisdiction exists, in
|
||||
which case the parties consent to exclusive jurisdiction and venue in the
|
||||
Superior Court of King County, Washington. The parties waive all defenses of
|
||||
lack of personal jurisdiction and forum non-conveniens. Process may be served on
|
||||
either party in the manner authorized by applicable law or court rule. In any
|
||||
action to enforce any right or remedy under this Agreement or to interpret any
|
||||
provision of this Agreement, the prevailing party shall be entitled to recover
|
||||
its reasonable attorneys' fees, costs and other expenses.
|
||||
|
||||
10. Entire Agreement/Assignment. This Agreement is the entire agreement between
|
||||
the parties, and supersedes any and all prior agreements, understandings or
|
||||
communications, written or oral, between the parties relating to the subject
|
||||
matter hereof. This Agreement may be assigned by Microsoft.
|
||||
|
||||
|
||||
Name ("You"):
|
||||
___________________________________________________________
|
||||
|
||||
Signature:
|
||||
___________________________________________________________
|
||||
|
||||
Date:
|
||||
___________________________________________________________
|
||||
|
||||
Primary email address:
|
||||
___________________________________________________________
|
||||
|
||||
Mailing address:
|
||||
___________________________________________________________
|
||||
|
||||
In addition to Your signature above, please initial one of the boxes below:
|
||||
|
||||
___ I am employed by someone else, and per Section 4 above, my employer,
|
||||
by signing below, agrees to be a party to this Agreement, and the defined term
|
||||
"You" includes my employer.
|
||||
|
||||
Employer Name (Individual or Company): ____________________________________
|
||||
Signature: _________________________________________
|
||||
By: _________________________________________
|
||||
Title: _________________________________________
|
||||
Date: _________________________________________
|
||||
|
||||
___ I am employed by someone else, and my employer, by signing below, waives
|
||||
any rights it may have to my Submissions by virtue of my having created it
|
||||
during the term of my employment (including by virtue of any contract with my
|
||||
employer). If signed below, the defined term "You" does not include my
|
||||
employer.
|
||||
|
||||
Employer Name (Individual or Company): ____________________________________
|
||||
Signature: _________________________________________
|
||||
By: _________________________________________
|
||||
Title: _________________________________________
|
||||
Date: _________________________________________
|
||||
|
||||
___ I am not employed by anyone (other than myself) and have sole rights to my
|
||||
Submissions.
|
||||
|
||||
If you have multiple employers, please attach a signature page for each of the
|
||||
employers.
|
151
README.md
|
@ -1,66 +1,113 @@
|
|||
# Windows Canvas
|
||||
|
||||
# Using the NuGet package
|
||||
Windows Canvas is an easy-to-use Windows Runtime API for immediate mode 2D graphics
|
||||
rendering with GPU acceleration. It is available to C# and C++ developers writing
|
||||
Windows Store apps for Windows 8.1 and Windows Phone 8.1. It utilizes the power of
|
||||
Direct2D, and integrates seamlessly with XAML and ICoreWindow.
|
||||
|
||||
Windows Canvas can be build to a nuget package that can be simply installed to a
|
||||
solution or project.
|
||||
Windows Canvas is work in progress and evolving rapidly. The goal of releasing this code
|
||||
in an early, incomplete state is to solicit early developer feedback.
|
||||
|
||||
Two packages are available:
|
||||
More information can be found on the [blog](http://blogs.msdn.com/b/windowscanvas/).
|
||||
|
||||
* _Windows Canvas_ - this package is intended for general development and
|
||||
distribution.
|
||||
## Setup
|
||||
### Visual Studio
|
||||
- Download [here](http://www.visualstudio.com/en-us/downloads/download-visual-studio-vs.aspx)
|
||||
- Visual Studio 2013 Update 2 required
|
||||
|
||||
* _Windows Canvas (debug)_ - this package provides debug binaries for Windows
|
||||
Canvas. This only really useful if you are debugging an issue with Windows
|
||||
Canvas and is not intended for general development.
|
||||
### Clone Repository
|
||||
- Go to 'View' -> 'Team Explorer' -> 'Local Git Repositories' -> 'Clone'
|
||||
- Add the Windows Canvas repository URL (https://github.com/Microsoft/WindowsCanvas.git) and hit 'Clone'
|
||||
|
||||
### Build NuGet Packages
|
||||
- In Windows search, type 'Visual Studio Tools', and select that folder to open it
|
||||
- Launch 'Developer Command Prompt for VS2013'
|
||||
- Change directory to your cloned Windows Canvas repository and run 'build'
|
||||
- Point Visual Studio at the resulting 'bin' directory:
|
||||
- In Visual Studio, go to 'Tools' -> 'NuGet Package Manager' -> 'Package Manager Settings'
|
||||
- Choose 'Package Sources'
|
||||
- Click the '+' button to add a new source
|
||||
- Set 'Name' to 'Windows Canvas' (or a name of your choosing)
|
||||
- Set 'Source' to the full path to the 'bin' directory (inside your cloned Windows Canvas repository)
|
||||
- Click the 'Update' button
|
||||
- Click 'OK'
|
||||
|
||||
## Generating a NuGet package
|
||||
## Quickstart
|
||||
Follow the steps below to get started on writing your own apps.
|
||||
|
||||
A working sample can be found in the Samples directory.
|
||||
|
||||
If nuget.exe has not already been downloaded then the latest version is always
|
||||
available from http://nuget.org/nuget.exe. The `build\nuget\download-nuget.cmd`
|
||||
script downloads this to the correct location under `build\nuget`.
|
||||
- Go to 'File' -> 'New' -> 'Project...'
|
||||
- Select 'Visual C#' -> 'Store Apps' -> 'Universal Apps'
|
||||
- Create a 'Blank App (Universal Apps)'
|
||||
- Set a 'Name' of your choosing
|
||||
- Click 'OK'
|
||||
- Go to 'Tools' -> 'NuGet Package Manager' -> 'Manage NuGet Packages for Solution...'
|
||||
- Select 'Windows Canvas' package and click 'Install'
|
||||
- Click 'Close'
|
||||
- Change Solution platform from 'Any CPU' to x86
|
||||
- You are now ready to hit F5 (Build)
|
||||
|
||||
From a Visual Studio 2013 command prompt run:
|
||||
|
||||
```
|
||||
build
|
||||
## Code Example
|
||||
To give you a flavor of what the code looks like, here is a snippet:
|
||||
```cs
|
||||
canvasControl.Drawing += canvasControl_Drawing;
|
||||
...
|
||||
void canvasControl_Drawing(CanvasControl sender, CanvasDrawingEventArgs args)
|
||||
{
|
||||
args.DrawingSession.Clear(Colors.BlueViolet);
|
||||
}
|
||||
```
|
||||
|
||||
This will build the required binaries and output packages to the 'bin' directory.
|
||||
## Resources
|
||||
|
||||
### Project Backlog
|
||||
- https://github.com/Microsoft/WindowsCanvas/wiki
|
||||
|
||||
### License
|
||||
- [Apache License, Version 2.0](http://www.apache.org/licenses/LICENSE-2.0.html)
|
||||
|
||||
### Contributions
|
||||
- Check out CONTRIBUTING in the root folder
|
||||
|
||||
## Windows Canvas Directory Structure
|
||||
|
||||
**Note: For the bulk of interesting product code, go to /winrt/lib.**
|
||||
|
||||
**/bin** - Binary files generated by the build
|
||||
|
||||
**/build** - Shared, build-related resources that are common across projects
|
||||
|
||||
- /Assets - Common Windows Store assets used for tests and samples
|
||||
- /nuget - Resources needed for building the NuGet package
|
||||
|
||||
**/numeric** - Cross-platform vector and matrix library. There are three implementations:
|
||||
- /Cpp
|
||||
- /DotNet
|
||||
- /WinRT
|
||||
|
||||
**/obj** - All intermediate object files generated during a build
|
||||
|
||||
**/samples** - Example projects showing how to use Windows Canvas
|
||||
|
||||
**/tests** - Test projects that consume Windows Canvas in a similar way to how an
|
||||
external customer would. Each one is a Windows Store app. These tests are run for manual
|
||||
verification.
|
||||
- /CppConsumer
|
||||
- /CsConsumer
|
||||
- /ExampleGallery
|
||||
|
||||
**/tools** - Standalone utilities, separate from Canvas product code
|
||||
- /codegen - Generates headers+IDL from XML resource files (you don't have to build this to build Windows Canvas)
|
||||
- /copyright - Verifies the right copyright banner appears at the top of each source file
|
||||
|
||||
**/winrt** - Windows Canvas product code and automated tests
|
||||
- /dll - Build resources for the product dll
|
||||
- /inc - Common includes
|
||||
- /lib - All the projected IDL and runtime class implementations!
|
||||
- /WinRTDirectX - projections for D3D/DXGI types
|
||||
- /published - Contains headers included in the NuGet package that are required to use Windows Canvas
|
||||
- /test.internal - Automated tests that link directly with winrt.lib to access internals of the implementation
|
||||
- /test.external - Automated tests that use only the public WinRT interface
|
||||
|
||||
|
||||
## Installing the NuGet package
|
||||
|
||||
|
||||
### Adding NuGet to Visual Studio
|
||||
|
||||
If you don't have a `NuGet Package Manager` option in your `Tools` menu then you
|
||||
can add NuGet to Visual Studio by:
|
||||
|
||||
* `Tools` -> `Extensions and Updates` -> `Online` -> `Visual Studio Gallery`
|
||||
* Download and install NuGet Package Manager
|
||||
|
||||
|
||||
### Point NuGet at your bin directory
|
||||
|
||||
In Visual Studio:
|
||||
|
||||
* `Tools` -> `NuGet Package Manager` -> `Package Manager Settings`
|
||||
* Choose `Package Sources`
|
||||
* Click the `+` button to add a new source
|
||||
* Set `Name` to `Windows Canvas` (or a name of your choosing)
|
||||
* Set `Source` to the full path to the `bin` directory
|
||||
* Click the `Update` button
|
||||
* Click `OK`
|
||||
|
||||
|
||||
### Installing the package to your solution
|
||||
|
||||
In Visual Studio, once you have your solution open:
|
||||
|
||||
* `Tools` -> `NuGet Package Manager` -> `Manage NuGet Packages For Solution`
|
||||
_or_ right-click on your solution/project and select `Manage NuGet Packages`
|
||||
|
||||
* Choose `Online` / `Windows Canvas` (or whatever name you chose) Click the
|
||||
`Install` button next to `Windows Canvas`
|
||||
|
|
|
@ -0,0 +1,21 @@
|
|||
<!--
|
||||
Copyright (c) Microsoft Corporation. All rights reserved.
|
||||
|
||||
Licensed under the Apache License, Version 2.0 (the "License"); you may
|
||||
not use these files except in compliance with the License. You may obtain
|
||||
a copy of the License at http://www.apache.org/licenses/LICENSE-2.0
|
||||
|
||||
Unless required by applicable law or agreed to in writing, software
|
||||
distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
|
||||
WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
|
||||
License for the specific language governing permissions and limitations
|
||||
under the License.
|
||||
-->
|
||||
|
||||
<Application
|
||||
x:Class="SimpleSample.App"
|
||||
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
|
||||
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
|
||||
xmlns:local="using:SimpleSample">
|
||||
|
||||
</Application>
|
|
@ -0,0 +1,149 @@
|
|||
// Copyright (c) Microsoft Corporation. All rights reserved.
|
||||
//
|
||||
// Licensed under the Apache License, Version 2.0 (the "License"); you may
|
||||
// not use these files except in compliance with the License. You may obtain
|
||||
// a copy of the License at http://www.apache.org/licenses/LICENSE-2.0
|
||||
//
|
||||
// Unless required by applicable law or agreed to in writing, software
|
||||
// distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
|
||||
// WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
|
||||
// License for the specific language governing permissions and limitations
|
||||
// under the License.
|
||||
|
||||
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.Media.Animation;
|
||||
using Windows.UI.Xaml.Navigation;
|
||||
|
||||
// The Blank Application template is documented at http://go.microsoft.com/fwlink/?LinkId=234227
|
||||
|
||||
namespace SimpleSample
|
||||
{
|
||||
/// <summary>
|
||||
/// Provides application-specific behavior to supplement the default Application class.
|
||||
/// </summary>
|
||||
public sealed partial class App : Application
|
||||
{
|
||||
#if WINDOWS_PHONE_APP
|
||||
private TransitionCollection transitions;
|
||||
#endif
|
||||
|
||||
/// <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();
|
||||
this.Suspending += this.OnSuspending;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Invoked when the application is launched normally by the end user. Other entry points
|
||||
/// will be used when the application is launched to open a specific file, to display
|
||||
/// search results, and so forth.
|
||||
/// </summary>
|
||||
/// <param name="e">Details about the launch request and process.</param>
|
||||
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();
|
||||
|
||||
// TODO: change this value to a cache size that is appropriate for your application
|
||||
rootFrame.CacheSize = 1;
|
||||
|
||||
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)
|
||||
{
|
||||
#if WINDOWS_PHONE_APP
|
||||
// Removes the turnstile navigation for startup.
|
||||
if (rootFrame.ContentTransitions != null)
|
||||
{
|
||||
this.transitions = new TransitionCollection();
|
||||
foreach (var c in rootFrame.ContentTransitions)
|
||||
{
|
||||
this.transitions.Add(c);
|
||||
}
|
||||
}
|
||||
|
||||
rootFrame.ContentTransitions = null;
|
||||
rootFrame.Navigated += this.RootFrame_FirstNavigated;
|
||||
#endif
|
||||
|
||||
// When the navigation stack isn't restored navigate to the first page,
|
||||
// configuring the new page by passing required information as a navigation
|
||||
// parameter
|
||||
if (!rootFrame.Navigate(typeof(MainPage), e.Arguments))
|
||||
{
|
||||
throw new Exception("Failed to create initial page");
|
||||
}
|
||||
}
|
||||
|
||||
// Ensure the current window is active
|
||||
Window.Current.Activate();
|
||||
}
|
||||
|
||||
#if WINDOWS_PHONE_APP
|
||||
/// <summary>
|
||||
/// Restores the content transitions after the app has launched.
|
||||
/// </summary>
|
||||
/// <param name="sender">The object where the handler is attached.</param>
|
||||
/// <param name="e">Details about the navigation event.</param>
|
||||
private void RootFrame_FirstNavigated(object sender, NavigationEventArgs e)
|
||||
{
|
||||
var rootFrame = sender as Frame;
|
||||
rootFrame.ContentTransitions = this.transitions ?? new TransitionCollection() { new NavigationThemeTransition() };
|
||||
rootFrame.Navigated -= this.RootFrame_FirstNavigated;
|
||||
}
|
||||
#endif
|
||||
|
||||
/// <summary>
|
||||
/// 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.
|
||||
/// </summary>
|
||||
/// <param name="sender">The source of the suspend request.</param>
|
||||
/// <param name="e">Details about the suspend request.</param>
|
||||
private void OnSuspending(object sender, SuspendingEventArgs e)
|
||||
{
|
||||
var deferral = e.SuspendingOperation.GetDeferral();
|
||||
|
||||
// TODO: Save application state and stop any background activity
|
||||
deferral.Complete();
|
||||
}
|
||||
}
|
||||
}
|
|
@ -0,0 +1,19 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<Project xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
|
||||
<PropertyGroup>
|
||||
<MSBuildAllProjects>$(MSBuildAllProjects);$(MSBuildThisFileFullPath)</MSBuildAllProjects>
|
||||
<HasSharedItems>true</HasSharedItems>
|
||||
<SharedGUID>631f6a23-bff0-44bf-bf3a-19d65ac62a52</SharedGUID>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup Label="Configuration">
|
||||
<Import_RootNamespace>SimpleSample</Import_RootNamespace>
|
||||
</PropertyGroup>
|
||||
<ItemGroup>
|
||||
<ApplicationDefinition Include="$(MSBuildThisFileDirectory)App.xaml">
|
||||
<SubType>Designer</SubType>
|
||||
</ApplicationDefinition>
|
||||
<Compile Include="$(MSBuildThisFileDirectory)App.xaml.cs">
|
||||
<DependentUpon>App.xaml</DependentUpon>
|
||||
</Compile>
|
||||
</ItemGroup>
|
||||
</Project>
|
|
@ -0,0 +1,12 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<Project ToolsVersion="12.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
|
||||
<PropertyGroup Label="Globals">
|
||||
<ProjectGuid>631f6a23-bff0-44bf-bf3a-19d65ac62a52</ProjectGuid>
|
||||
</PropertyGroup>
|
||||
<Import Project="$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props" Condition="Exists('$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props')" />
|
||||
<Import Project="$(MSBuildExtensionsPath32)\Microsoft\VisualStudio\v$(VisualStudioVersion)\CodeSharing\Microsoft.CodeSharing.Common.Default.props" />
|
||||
<Import Project="$(MSBuildExtensionsPath32)\Microsoft\VisualStudio\v$(VisualStudioVersion)\CodeSharing\Microsoft.CodeSharing.Common.props" />
|
||||
<PropertyGroup />
|
||||
<Import Project="SimpleSample.Shared.projitems" Label="Shared" />
|
||||
<Import Project="$(MSBuildExtensionsPath32)\Microsoft\VisualStudio\v$(VisualStudioVersion)\CodeSharing\Microsoft.CodeSharing.CSharp.targets" />
|
||||
</Project>
|
После Ширина: | Высота: | Размер: 801 B |
Двоичные данные
samples/SimpleSample/SimpleSample.Windows/Assets/SmallLogo.scale-100.png
Normal file
После Ширина: | Высота: | Размер: 329 B |
Двоичные данные
samples/SimpleSample/SimpleSample.Windows/Assets/SplashScreen.scale-100.png
Normal file
После Ширина: | Высота: | Размер: 2.1 KiB |
Двоичные данные
samples/SimpleSample/SimpleSample.Windows/Assets/StoreLogo.scale-100.png
Normal file
После Ширина: | Высота: | Размер: 429 B |
|
@ -0,0 +1,28 @@
|
|||
<!--
|
||||
Copyright (c) Microsoft Corporation. All rights reserved.
|
||||
|
||||
Licensed under the Apache License, Version 2.0 (the "License"); you may
|
||||
not use these files except in compliance with the License. You may obtain
|
||||
a copy of the License at http://www.apache.org/licenses/LICENSE-2.0
|
||||
|
||||
Unless required by applicable law or agreed to in writing, software
|
||||
distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
|
||||
WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
|
||||
License for the specific language governing permissions and limitations
|
||||
under the License.
|
||||
-->
|
||||
|
||||
<Page
|
||||
x:Class="SimpleSample.MainPage"
|
||||
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
|
||||
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
|
||||
xmlns:local="using:SimpleSample"
|
||||
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
|
||||
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
|
||||
xmlns:canvas="using:Microsoft.Graphics.Canvas"
|
||||
mc:Ignorable="d">
|
||||
|
||||
<Grid Background="{ThemeResource ApplicationPageBackgroundThemeBrush}">
|
||||
<canvas:CanvasControl x:Name="canvasControl" />
|
||||
</Grid>
|
||||
</Page>
|
|
@ -0,0 +1,37 @@
|
|||
// Copyright (c) Microsoft Corporation. All rights reserved.
|
||||
//
|
||||
// Licensed under the Apache License, Version 2.0 (the "License"); you may
|
||||
// not use these files except in compliance with the License. You may obtain
|
||||
// a copy of the License at http://www.apache.org/licenses/LICENSE-2.0
|
||||
//
|
||||
// Unless required by applicable law or agreed to in writing, software
|
||||
// distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
|
||||
// WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
|
||||
// License for the specific language governing permissions and limitations
|
||||
// under the License.
|
||||
|
||||
using Windows.UI;
|
||||
using Windows.UI.Xaml.Controls;
|
||||
using Microsoft.Graphics.Canvas;
|
||||
|
||||
namespace SimpleSample
|
||||
{
|
||||
/// <summary>
|
||||
/// Clears the screen with BlanchedAlmond color
|
||||
/// </summary>
|
||||
public sealed partial class MainPage : Page
|
||||
{
|
||||
public MainPage()
|
||||
{
|
||||
this.InitializeComponent();
|
||||
|
||||
// Register our event handler that will draw onto the Canvas
|
||||
canvasControl.Drawing += canvasControl_Drawing;
|
||||
}
|
||||
|
||||
void canvasControl_Drawing(CanvasControl sender, CanvasDrawingEventArgs args)
|
||||
{
|
||||
args.DrawingSession.Clear(Colors.BlanchedAlmond);
|
||||
}
|
||||
}
|
||||
}
|
|
@ -0,0 +1,41 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<Package xmlns="http://schemas.microsoft.com/appx/2010/manifest" xmlns:m2="http://schemas.microsoft.com/appx/2013/manifest">
|
||||
|
||||
<Identity Name="00b132f2-6bb3-4b14-a695-b99f26dc62cd"
|
||||
Publisher="CN=Microsoft Corporation"
|
||||
Version="1.0.0.0" />
|
||||
|
||||
<Properties>
|
||||
<DisplayName>SimpleSample.Windows</DisplayName>
|
||||
<PublisherDisplayName>Microsoft Corporation</PublisherDisplayName>
|
||||
<Logo>Assets\StoreLogo.png</Logo>
|
||||
</Properties>
|
||||
|
||||
<Prerequisites>
|
||||
<OSMinVersion>6.3.0</OSMinVersion>
|
||||
<OSMaxVersionTested>6.3.0</OSMaxVersionTested>
|
||||
</Prerequisites>
|
||||
|
||||
<Resources>
|
||||
<Resource Language="x-generate"/>
|
||||
</Resources>
|
||||
|
||||
<Applications>
|
||||
<Application Id="App"
|
||||
Executable="$targetnametoken$.exe"
|
||||
EntryPoint="SimpleSample.Windows.App">
|
||||
<m2:VisualElements
|
||||
DisplayName="SimpleSample.Windows"
|
||||
Square150x150Logo="Assets\Logo.png"
|
||||
Square30x30Logo="Assets\SmallLogo.png"
|
||||
Description="SimpleSample.Windows"
|
||||
ForegroundText="light"
|
||||
BackgroundColor="#464646">
|
||||
<m2:SplashScreen Image="Assets\SplashScreen.png" />
|
||||
</m2:VisualElements>
|
||||
</Application>
|
||||
</Applications>
|
||||
<Capabilities>
|
||||
<Capability Name="internetClient" />
|
||||
</Capabilities>
|
||||
</Package>
|
|
@ -0,0 +1,41 @@
|
|||
// Copyright (c) Microsoft Corporation. All rights reserved.
|
||||
//
|
||||
// Licensed under the Apache License, Version 2.0 (the "License"); you may
|
||||
// not use these files except in compliance with the License. You may obtain
|
||||
// a copy of the License at http://www.apache.org/licenses/LICENSE-2.0
|
||||
//
|
||||
// Unless required by applicable law or agreed to in writing, software
|
||||
// distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
|
||||
// WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
|
||||
// License for the specific language governing permissions and limitations
|
||||
// under the License.
|
||||
|
||||
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("SimpleSample.Windows")]
|
||||
[assembly: AssemblyDescription("")]
|
||||
[assembly: AssemblyConfiguration("")]
|
||||
[assembly: AssemblyCompany("")]
|
||||
[assembly: AssemblyProduct("SimpleSample.Windows")]
|
||||
[assembly: AssemblyCopyright("Copyright © Microsoft 2014")]
|
||||
[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)]
|
|
@ -0,0 +1,123 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<Project ToolsVersion="12.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
|
||||
<Import Project="$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props" Condition="Exists('$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props')" />
|
||||
<PropertyGroup>
|
||||
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
|
||||
<Platform Condition=" '$(Platform)' == '' ">x86</Platform>
|
||||
<ProjectGuid>{36835E90-6663-40C5-B15E-DE8F3FC27155}</ProjectGuid>
|
||||
<OutputType>AppContainerExe</OutputType>
|
||||
<AppDesignerFolder>Properties</AppDesignerFolder>
|
||||
<RootNamespace>SimpleSample</RootNamespace>
|
||||
<AssemblyName>SimpleSample.Windows</AssemblyName>
|
||||
<DefaultLanguage>en-US</DefaultLanguage>
|
||||
<TargetPlatformVersion>8.1</TargetPlatformVersion>
|
||||
<MinimumVisualStudioVersion>12</MinimumVisualStudioVersion>
|
||||
<FileAlignment>512</FileAlignment>
|
||||
<SynthesizeLinkMetadata>true</SynthesizeLinkMetadata>
|
||||
<ProjectTypeGuids>{BC8A1FFA-BEE3-4634-8014-F334798102B3};{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}</ProjectTypeGuids>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup Condition="'$(Configuration)|$(Platform)' == 'Debug|ARM'">
|
||||
<DebugSymbols>true</DebugSymbols>
|
||||
<OutputPath>bin\ARM\Debug\</OutputPath>
|
||||
<DefineConstants>DEBUG;TRACE;NETFX_CORE;WINDOWS_APP</DefineConstants>
|
||||
<NoWarn>;2008</NoWarn>
|
||||
<DebugType>full</DebugType>
|
||||
<PlatformTarget>ARM</PlatformTarget>
|
||||
<UseVSHostingProcess>false</UseVSHostingProcess>
|
||||
<ErrorReport>prompt</ErrorReport>
|
||||
<Prefer32Bit>true</Prefer32Bit>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup Condition="'$(Configuration)|$(Platform)' == 'Release|ARM'">
|
||||
<OutputPath>bin\ARM\Release\</OutputPath>
|
||||
<DefineConstants>TRACE;NETFX_CORE;WINDOWS_APP</DefineConstants>
|
||||
<Optimize>true</Optimize>
|
||||
<NoWarn>;2008</NoWarn>
|
||||
<DebugType>pdbonly</DebugType>
|
||||
<PlatformTarget>ARM</PlatformTarget>
|
||||
<UseVSHostingProcess>false</UseVSHostingProcess>
|
||||
<ErrorReport>prompt</ErrorReport>
|
||||
<Prefer32Bit>true</Prefer32Bit>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup Condition="'$(Configuration)|$(Platform)' == 'Debug|x64'">
|
||||
<DebugSymbols>true</DebugSymbols>
|
||||
<OutputPath>bin\x64\Debug\</OutputPath>
|
||||
<DefineConstants>DEBUG;TRACE;NETFX_CORE;WINDOWS_APP</DefineConstants>
|
||||
<NoWarn>;2008</NoWarn>
|
||||
<DebugType>full</DebugType>
|
||||
<PlatformTarget>x64</PlatformTarget>
|
||||
<UseVSHostingProcess>false</UseVSHostingProcess>
|
||||
<ErrorReport>prompt</ErrorReport>
|
||||
<Prefer32Bit>true</Prefer32Bit>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup Condition="'$(Configuration)|$(Platform)' == 'Release|x64'">
|
||||
<OutputPath>bin\x64\Release\</OutputPath>
|
||||
<DefineConstants>TRACE;NETFX_CORE;WINDOWS_APP</DefineConstants>
|
||||
<Optimize>true</Optimize>
|
||||
<NoWarn>;2008</NoWarn>
|
||||
<DebugType>pdbonly</DebugType>
|
||||
<PlatformTarget>x64</PlatformTarget>
|
||||
<UseVSHostingProcess>false</UseVSHostingProcess>
|
||||
<ErrorReport>prompt</ErrorReport>
|
||||
<Prefer32Bit>true</Prefer32Bit>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup Condition="'$(Configuration)|$(Platform)' == 'Debug|x86'">
|
||||
<DebugSymbols>true</DebugSymbols>
|
||||
<OutputPath>bin\x86\Debug\</OutputPath>
|
||||
<DefineConstants>DEBUG;TRACE;NETFX_CORE;WINDOWS_APP</DefineConstants>
|
||||
<NoWarn>;2008</NoWarn>
|
||||
<DebugType>full</DebugType>
|
||||
<PlatformTarget>x86</PlatformTarget>
|
||||
<UseVSHostingProcess>false</UseVSHostingProcess>
|
||||
<ErrorReport>prompt</ErrorReport>
|
||||
<Prefer32Bit>true</Prefer32Bit>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup Condition="'$(Configuration)|$(Platform)' == 'Release|x86'">
|
||||
<OutputPath>bin\x86\Release\</OutputPath>
|
||||
<DefineConstants>TRACE;NETFX_CORE;WINDOWS_APP</DefineConstants>
|
||||
<Optimize>true</Optimize>
|
||||
<NoWarn>;2008</NoWarn>
|
||||
<DebugType>pdbonly</DebugType>
|
||||
<PlatformTarget>x86</PlatformTarget>
|
||||
<UseVSHostingProcess>false</UseVSHostingProcess>
|
||||
<ErrorReport>prompt</ErrorReport>
|
||||
<Prefer32Bit>true</Prefer32Bit>
|
||||
</PropertyGroup>
|
||||
<ItemGroup>
|
||||
<!-- A reference to the entire .Net Framework and Windows SDK are automatically included -->
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<Compile Include="MainPage.xaml.cs">
|
||||
<DependentUpon>MainPage.xaml</DependentUpon>
|
||||
</Compile>
|
||||
<Compile Include="Properties\AssemblyInfo.cs" />
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<AppxManifest Include="Package.appxmanifest">
|
||||
<SubType>Designer</SubType>
|
||||
</AppxManifest>
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<Content Include="Assets\Logo.scale-100.png" />
|
||||
<Content Include="Assets\SmallLogo.scale-100.png" />
|
||||
<Content Include="Assets\SplashScreen.scale-100.png" />
|
||||
<Content Include="Assets\StoreLogo.scale-100.png" />
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<Page Include="MainPage.xaml">
|
||||
<Generator>MSBuild:Compile</Generator>
|
||||
<SubType>Designer</SubType>
|
||||
</Page>
|
||||
</ItemGroup>
|
||||
<PropertyGroup Condition=" '$(VisualStudioVersion)' == '' or '$(VisualStudioVersion)' < '12.0' ">
|
||||
<VisualStudioVersion>12.0</VisualStudioVersion>
|
||||
</PropertyGroup>
|
||||
<Import Project="..\SimpleSample.Shared\SimpleSample.Shared.projitems" Label="Shared" />
|
||||
<Import Project="$(MSBuildExtensionsPath)\Microsoft\WindowsXaml\v$(VisualStudioVersion)\Microsoft.Windows.UI.Xaml.CSharp.targets" />
|
||||
<!-- To modify your build process, add your task inside one of the targets below and uncomment it.
|
||||
Other similar extension points exist, see Microsoft.Common.targets.
|
||||
<Target Name="BeforeBuild">
|
||||
</Target>
|
||||
<Target Name="AfterBuild">
|
||||
</Target>
|
||||
-->
|
||||
</Project>
|
Двоичные данные
samples/SimpleSample/SimpleSample.WindowsPhone/Assets/Logo.scale-240.png
Normal file
После Ширина: | Высота: | Размер: 2.5 KiB |
Двоичные данные
samples/SimpleSample/SimpleSample.WindowsPhone/Assets/SmallLogo.scale-240.png
Normal file
После Ширина: | Высота: | Размер: 753 B |
Двоичные данные
samples/SimpleSample/SimpleSample.WindowsPhone/Assets/SplashScreen.scale-240.png
Normal file
После Ширина: | Высота: | Размер: 14 KiB |
Двоичные данные
samples/SimpleSample/SimpleSample.WindowsPhone/Assets/Square71x71Logo.scale-240.png
Normal file
После Ширина: | Высота: | Размер: 1.1 KiB |
Двоичные данные
samples/SimpleSample/SimpleSample.WindowsPhone/Assets/StoreLogo.scale-240.png
Normal file
После Ширина: | Высота: | Размер: 2.1 KiB |
Двоичные данные
samples/SimpleSample/SimpleSample.WindowsPhone/Assets/WideLogo.scale-240.png
Normal file
После Ширина: | Высота: | Размер: 4.4 KiB |
|
@ -0,0 +1,29 @@
|
|||
<!--
|
||||
Copyright (c) Microsoft Corporation. All rights reserved.
|
||||
|
||||
Licensed under the Apache License, Version 2.0 (the "License"); you may
|
||||
not use these files except in compliance with the License. You may obtain
|
||||
a copy of the License at http://www.apache.org/licenses/LICENSE-2.0
|
||||
|
||||
Unless required by applicable law or agreed to in writing, software
|
||||
distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
|
||||
WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
|
||||
License for the specific language governing permissions and limitations
|
||||
under the License.
|
||||
-->
|
||||
|
||||
<Page
|
||||
x:Class="SimpleSample.MainPage"
|
||||
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
|
||||
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
|
||||
xmlns:local="using:SimpleSample"
|
||||
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
|
||||
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
|
||||
xmlns:canvas="using:Microsoft.Graphics.Canvas"
|
||||
mc:Ignorable="d"
|
||||
Background="{ThemeResource ApplicationPageBackgroundThemeBrush}">
|
||||
|
||||
<Grid>
|
||||
<canvas:CanvasControl x:Name="canvasControl" />
|
||||
</Grid>
|
||||
</Page>
|
|
@ -0,0 +1,40 @@
|
|||
// Copyright (c) Microsoft Corporation. All rights reserved.
|
||||
//
|
||||
// Licensed under the Apache License, Version 2.0 (the "License"); you may
|
||||
// not use these files except in compliance with the License. You may obtain
|
||||
// a copy of the License at http://www.apache.org/licenses/LICENSE-2.0
|
||||
//
|
||||
// Unless required by applicable law or agreed to in writing, software
|
||||
// distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
|
||||
// WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
|
||||
// License for the specific language governing permissions and limitations
|
||||
// under the License.
|
||||
|
||||
using Windows.UI;
|
||||
using Windows.UI.Xaml.Controls;
|
||||
using Windows.UI.Xaml.Navigation;
|
||||
using Microsoft.Graphics.Canvas;
|
||||
|
||||
namespace SimpleSample
|
||||
{
|
||||
/// <summary>
|
||||
/// Clears the screen with BlanchedAlmond color
|
||||
/// </summary>
|
||||
public sealed partial class MainPage : Page
|
||||
{
|
||||
public MainPage()
|
||||
{
|
||||
this.InitializeComponent();
|
||||
|
||||
this.NavigationCacheMode = NavigationCacheMode.Required;
|
||||
|
||||
// Register our event handler that will draw onto the Canvas
|
||||
canvasControl.Drawing += canvasControl_Drawing;
|
||||
}
|
||||
|
||||
void canvasControl_Drawing(CanvasControl sender, CanvasDrawingEventArgs args)
|
||||
{
|
||||
args.DrawingSession.Clear(Colors.BlanchedAlmond);
|
||||
}
|
||||
}
|
||||
}
|
|
@ -0,0 +1,44 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<Package xmlns="http://schemas.microsoft.com/appx/2010/manifest" xmlns:m2="http://schemas.microsoft.com/appx/2013/manifest" xmlns:m3="http://schemas.microsoft.com/appx/2014/manifest" xmlns:mp="http://schemas.microsoft.com/appx/2014/phone/manifest">
|
||||
|
||||
<Identity Name="2b8f4ff8-db7e-4f58-8793-326fd828429b"
|
||||
Publisher="CN=Microsoft Corporation"
|
||||
Version="1.0.0.0" />
|
||||
|
||||
<mp:PhoneIdentity PhoneProductId="2b8f4ff8-db7e-4f58-8793-326fd828429b" PhonePublisherId="00000000-0000-0000-0000-000000000000"/>
|
||||
|
||||
<Properties>
|
||||
<DisplayName>SimpleSample.WindowsPhone</DisplayName>
|
||||
<PublisherDisplayName>Microsoft Corporation</PublisherDisplayName>
|
||||
<Logo>Assets\StoreLogo.png</Logo>
|
||||
</Properties>
|
||||
|
||||
<Prerequisites>
|
||||
<OSMinVersion>6.3.1</OSMinVersion>
|
||||
<OSMaxVersionTested>6.3.1</OSMaxVersionTested>
|
||||
</Prerequisites>
|
||||
|
||||
<Resources>
|
||||
<Resource Language="x-generate"/>
|
||||
</Resources>
|
||||
|
||||
<Applications>
|
||||
<Application Id="App"
|
||||
Executable="$targetnametoken$.exe"
|
||||
EntryPoint="SimpleSample.WindowsPhone.App">
|
||||
<m3:VisualElements
|
||||
DisplayName="SimpleSample.WindowsPhone"
|
||||
Square150x150Logo="Assets\Logo.png"
|
||||
Square44x44Logo="Assets\SmallLogo.png"
|
||||
Description="SimpleSample.WindowsPhone"
|
||||
ForegroundText="light"
|
||||
BackgroundColor="transparent">
|
||||
<m3:DefaultTile Wide310x150Logo="Assets\WideLogo.png" Square71x71Logo="Assets\Square71x71Logo.png"/>
|
||||
<m3:SplashScreen Image="Assets\SplashScreen.png"/>
|
||||
</m3:VisualElements>
|
||||
</Application>
|
||||
</Applications>
|
||||
<Capabilities>
|
||||
<Capability Name="internetClientServer" />
|
||||
</Capabilities>
|
||||
</Package>
|
|
@ -0,0 +1,41 @@
|
|||
// Copyright (c) Microsoft Corporation. All rights reserved.
|
||||
//
|
||||
// Licensed under the Apache License, Version 2.0 (the "License"); you may
|
||||
// not use these files except in compliance with the License. You may obtain
|
||||
// a copy of the License at http://www.apache.org/licenses/LICENSE-2.0
|
||||
//
|
||||
// Unless required by applicable law or agreed to in writing, software
|
||||
// distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
|
||||
// WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
|
||||
// License for the specific language governing permissions and limitations
|
||||
// under the License.
|
||||
|
||||
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("SimpleSample.WindowsPhone")]
|
||||
[assembly: AssemblyDescription("")]
|
||||
[assembly: AssemblyConfiguration("")]
|
||||
[assembly: AssemblyCompany("")]
|
||||
[assembly: AssemblyProduct("SimpleSample.WindowsPhone")]
|
||||
[assembly: AssemblyCopyright("Copyright © Microsoft 2014")]
|
||||
[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)]
|
|
@ -0,0 +1,106 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<Project ToolsVersion="12.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
|
||||
<Import Project="$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props" Condition="Exists('$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props')" />
|
||||
<PropertyGroup>
|
||||
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
|
||||
<Platform Condition=" '$(Platform)' == '' ">x86</Platform>
|
||||
<ProjectGuid>{C0A77170-9650-4E0B-BBEA-8D1B924EBBA2}</ProjectGuid>
|
||||
<OutputType>AppContainerExe</OutputType>
|
||||
<AppDesignerFolder>Properties</AppDesignerFolder>
|
||||
<RootNamespace>SimpleSample</RootNamespace>
|
||||
<AssemblyName>SimpleSample.WindowsPhone</AssemblyName>
|
||||
<DefaultLanguage>en-US</DefaultLanguage>
|
||||
<TargetPlatformVersion>8.1</TargetPlatformVersion>
|
||||
<MinimumVisualStudioVersion>12</MinimumVisualStudioVersion>
|
||||
<FileAlignment>512</FileAlignment>
|
||||
<ProjectTypeGuids>{76F1466A-8B6D-4E39-A767-685A06062A39};{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}</ProjectTypeGuids>
|
||||
<SynthesizeLinkMetadata>true</SynthesizeLinkMetadata>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup Condition="'$(Configuration)|$(Platform)' == 'Debug|ARM'">
|
||||
<DebugSymbols>true</DebugSymbols>
|
||||
<OutputPath>bin\ARM\Debug\</OutputPath>
|
||||
<DefineConstants>DEBUG;TRACE;NETFX_CORE;WINDOWS_PHONE_APP</DefineConstants>
|
||||
<NoWarn>;2008</NoWarn>
|
||||
<DebugType>full</DebugType>
|
||||
<PlatformTarget>ARM</PlatformTarget>
|
||||
<UseVSHostingProcess>false</UseVSHostingProcess>
|
||||
<ErrorReport>prompt</ErrorReport>
|
||||
<Prefer32Bit>true</Prefer32Bit>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup Condition="'$(Configuration)|$(Platform)' == 'Release|ARM'">
|
||||
<OutputPath>bin\ARM\Release\</OutputPath>
|
||||
<DefineConstants>TRACE;NETFX_CORE;WINDOWS_PHONE_APP</DefineConstants>
|
||||
<Optimize>true</Optimize>
|
||||
<NoWarn>;2008</NoWarn>
|
||||
<DebugType>pdbonly</DebugType>
|
||||
<PlatformTarget>ARM</PlatformTarget>
|
||||
<UseVSHostingProcess>false</UseVSHostingProcess>
|
||||
<ErrorReport>prompt</ErrorReport>
|
||||
<Prefer32Bit>true</Prefer32Bit>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup Condition="'$(Configuration)|$(Platform)' == 'Debug|x86'">
|
||||
<DebugSymbols>true</DebugSymbols>
|
||||
<OutputPath>bin\x86\Debug\</OutputPath>
|
||||
<DefineConstants>DEBUG;TRACE;NETFX_CORE;WINDOWS_PHONE_APP</DefineConstants>
|
||||
<NoWarn>;2008</NoWarn>
|
||||
<DebugType>full</DebugType>
|
||||
<PlatformTarget>x86</PlatformTarget>
|
||||
<UseVSHostingProcess>false</UseVSHostingProcess>
|
||||
<ErrorReport>prompt</ErrorReport>
|
||||
<Prefer32Bit>true</Prefer32Bit>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup Condition="'$(Configuration)|$(Platform)' == 'Release|x86'">
|
||||
<OutputPath>bin\x86\Release\</OutputPath>
|
||||
<DefineConstants>TRACE;NETFX_CORE;WINDOWS_PHONE_APP</DefineConstants>
|
||||
<Optimize>true</Optimize>
|
||||
<NoWarn>;2008</NoWarn>
|
||||
<DebugType>pdbonly</DebugType>
|
||||
<PlatformTarget>x86</PlatformTarget>
|
||||
<UseVSHostingProcess>false</UseVSHostingProcess>
|
||||
<ErrorReport>prompt</ErrorReport>
|
||||
<Prefer32Bit>true</Prefer32Bit>
|
||||
</PropertyGroup>
|
||||
<ItemGroup>
|
||||
<!-- A reference to the entire .Net Framework and Windows SDK are automatically included -->
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<Compile Include="MainPage.xaml.cs">
|
||||
<DependentUpon>MainPage.xaml</DependentUpon>
|
||||
</Compile>
|
||||
<Compile Include="Properties\AssemblyInfo.cs" />
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<AppxManifest Include="Package.appxmanifest">
|
||||
<SubType>Designer</SubType>
|
||||
</AppxManifest>
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<Content Include="Assets\Logo.scale-240.png" />
|
||||
<Content Include="Assets\SmallLogo.scale-240.png" />
|
||||
<Content Include="Assets\SplashScreen.scale-240.png" />
|
||||
<Content Include="Assets\Square71x71Logo.scale-240.png" />
|
||||
<Content Include="Assets\StoreLogo.scale-240.png" />
|
||||
<Content Include="Assets\WideLogo.scale-240.png" />
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<Page Include="MainPage.xaml">
|
||||
<Generator>MSBuild:Compile</Generator>
|
||||
<SubType>Designer</SubType>
|
||||
</Page>
|
||||
</ItemGroup>
|
||||
<PropertyGroup Condition=" '$(VisualStudioVersion)' == '' or '$(VisualStudioVersion)' < '12.0' ">
|
||||
<VisualStudioVersion>12.0</VisualStudioVersion>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup Condition=" '$(TargetPlatformIdentifier)' == '' ">
|
||||
<TargetPlatformIdentifier>WindowsPhoneApp</TargetPlatformIdentifier>
|
||||
</PropertyGroup>
|
||||
<Import Project="..\SimpleSample.Shared\SimpleSample.Shared.projitems" Label="Shared" />
|
||||
<Import Project="$(MSBuildExtensionsPath)\Microsoft\WindowsXaml\v$(VisualStudioVersion)\Microsoft.Windows.UI.Xaml.CSharp.targets" />
|
||||
<!-- To modify your build process, add your task inside one of the targets below and uncomment it.
|
||||
Other similar extension points exist, see Microsoft.Common.targets.
|
||||
<Target Name="BeforeBuild">
|
||||
</Target>
|
||||
<Target Name="AfterBuild">
|
||||
</Target>
|
||||
-->
|
||||
</Project>
|
|
@ -0,0 +1,70 @@
|
|||
|
||||
Microsoft Visual Studio Solution File, Format Version 12.00
|
||||
# Visual Studio Express 2013 for Windows
|
||||
VisualStudioVersion = 12.0.30501.0
|
||||
MinimumVisualStudioVersion = 10.0.40219.1
|
||||
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "SimpleSample", "SimpleSample", "{0EB97138-0139-4DAF-A16F-6AADA6E3A6D4}"
|
||||
EndProject
|
||||
Project("{D954291E-2A0B-460D-934E-DC6B0785DB48}") = "SimpleSample.Shared", "SimpleSample.Shared\SimpleSample.Shared.shproj", "{631F6A23-BFF0-44BF-BF3A-19D65AC62A52}"
|
||||
EndProject
|
||||
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "SimpleSample.Windows", "SimpleSample.Windows\SimpleSample.Windows.csproj", "{36835E90-6663-40C5-B15E-DE8F3FC27155}"
|
||||
EndProject
|
||||
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "SimpleSample.WindowsPhone", "SimpleSample.WindowsPhone\SimpleSample.WindowsPhone.csproj", "{C0A77170-9650-4E0B-BBEA-8D1B924EBBA2}"
|
||||
EndProject
|
||||
Global
|
||||
GlobalSection(SharedMSBuildProjectFiles) = preSolution
|
||||
SimpleSample.Shared\SimpleSample.Shared.projitems*{36835e90-6663-40c5-b15e-de8f3fc27155}*SharedItemsImports = 4
|
||||
SimpleSample.Shared\SimpleSample.Shared.projitems*{631f6a23-bff0-44bf-bf3a-19d65ac62a52}*SharedItemsImports = 13
|
||||
SimpleSample.Shared\SimpleSample.Shared.projitems*{c0a77170-9650-4e0b-bbea-8d1b924ebba2}*SharedItemsImports = 4
|
||||
EndGlobalSection
|
||||
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
|
||||
{36835E90-6663-40C5-B15E-DE8F3FC27155}.Debug|ARM.ActiveCfg = Debug|ARM
|
||||
{36835E90-6663-40C5-B15E-DE8F3FC27155}.Debug|ARM.Build.0 = Debug|ARM
|
||||
{36835E90-6663-40C5-B15E-DE8F3FC27155}.Debug|ARM.Deploy.0 = Debug|ARM
|
||||
{36835E90-6663-40C5-B15E-DE8F3FC27155}.Debug|x64.ActiveCfg = Debug|x64
|
||||
{36835E90-6663-40C5-B15E-DE8F3FC27155}.Debug|x64.Build.0 = Debug|x64
|
||||
{36835E90-6663-40C5-B15E-DE8F3FC27155}.Debug|x64.Deploy.0 = Debug|x64
|
||||
{36835E90-6663-40C5-B15E-DE8F3FC27155}.Debug|x86.ActiveCfg = Debug|x86
|
||||
{36835E90-6663-40C5-B15E-DE8F3FC27155}.Debug|x86.Build.0 = Debug|x86
|
||||
{36835E90-6663-40C5-B15E-DE8F3FC27155}.Debug|x86.Deploy.0 = Debug|x86
|
||||
{36835E90-6663-40C5-B15E-DE8F3FC27155}.Release|ARM.ActiveCfg = Release|ARM
|
||||
{36835E90-6663-40C5-B15E-DE8F3FC27155}.Release|ARM.Build.0 = Release|ARM
|
||||
{36835E90-6663-40C5-B15E-DE8F3FC27155}.Release|ARM.Deploy.0 = Release|ARM
|
||||
{36835E90-6663-40C5-B15E-DE8F3FC27155}.Release|x64.ActiveCfg = Release|x64
|
||||
{36835E90-6663-40C5-B15E-DE8F3FC27155}.Release|x64.Build.0 = Release|x64
|
||||
{36835E90-6663-40C5-B15E-DE8F3FC27155}.Release|x64.Deploy.0 = Release|x64
|
||||
{36835E90-6663-40C5-B15E-DE8F3FC27155}.Release|x86.ActiveCfg = Release|x86
|
||||
{36835E90-6663-40C5-B15E-DE8F3FC27155}.Release|x86.Build.0 = Release|x86
|
||||
{36835E90-6663-40C5-B15E-DE8F3FC27155}.Release|x86.Deploy.0 = Release|x86
|
||||
{C0A77170-9650-4E0B-BBEA-8D1B924EBBA2}.Debug|ARM.ActiveCfg = Debug|ARM
|
||||
{C0A77170-9650-4E0B-BBEA-8D1B924EBBA2}.Debug|ARM.Build.0 = Debug|ARM
|
||||
{C0A77170-9650-4E0B-BBEA-8D1B924EBBA2}.Debug|ARM.Deploy.0 = Debug|ARM
|
||||
{C0A77170-9650-4E0B-BBEA-8D1B924EBBA2}.Debug|x64.ActiveCfg = Debug|x86
|
||||
{C0A77170-9650-4E0B-BBEA-8D1B924EBBA2}.Debug|x86.ActiveCfg = Debug|x86
|
||||
{C0A77170-9650-4E0B-BBEA-8D1B924EBBA2}.Debug|x86.Build.0 = Debug|x86
|
||||
{C0A77170-9650-4E0B-BBEA-8D1B924EBBA2}.Debug|x86.Deploy.0 = Debug|x86
|
||||
{C0A77170-9650-4E0B-BBEA-8D1B924EBBA2}.Release|ARM.ActiveCfg = Release|ARM
|
||||
{C0A77170-9650-4E0B-BBEA-8D1B924EBBA2}.Release|ARM.Build.0 = Release|ARM
|
||||
{C0A77170-9650-4E0B-BBEA-8D1B924EBBA2}.Release|ARM.Deploy.0 = Release|ARM
|
||||
{C0A77170-9650-4E0B-BBEA-8D1B924EBBA2}.Release|x64.ActiveCfg = Release|x86
|
||||
{C0A77170-9650-4E0B-BBEA-8D1B924EBBA2}.Release|x86.ActiveCfg = Release|x86
|
||||
{C0A77170-9650-4E0B-BBEA-8D1B924EBBA2}.Release|x86.Build.0 = Release|x86
|
||||
{C0A77170-9650-4E0B-BBEA-8D1B924EBBA2}.Release|x86.Deploy.0 = Release|x86
|
||||
EndGlobalSection
|
||||
GlobalSection(SolutionProperties) = preSolution
|
||||
HideSolutionNode = FALSE
|
||||
EndGlobalSection
|
||||
GlobalSection(NestedProjects) = preSolution
|
||||
{631F6A23-BFF0-44BF-BF3A-19D65AC62A52} = {0EB97138-0139-4DAF-A16F-6AADA6E3A6D4}
|
||||
{36835E90-6663-40C5-B15E-DE8F3FC27155} = {0EB97138-0139-4DAF-A16F-6AADA6E3A6D4}
|
||||
{C0A77170-9650-4E0B-BBEA-8D1B924EBBA2} = {0EB97138-0139-4DAF-A16F-6AADA6E3A6D4}
|
||||
EndGlobalSection
|
||||
EndGlobal
|