diff --git a/README.md b/README.md
index 4b4ce0dc1f..c7dcb16c91 100644
--- a/README.md
+++ b/README.md
@@ -1,3 +1,7 @@
+
+
# Universal Windows app samples
This repo contains the samples that demonstrate the API usage patterns for the Universal Windows Platform (UWP) in the Windows Software Development Kit (SDK) for Windows 10. These code samples were created with the Universal Windows templates available in Visual Studio, and are designed to run on desktop, mobile, and future devices that support the Universal Windows Platform.
@@ -84,15 +88,16 @@ For additional Windows samples, see [Windows on GitHub](http://microsoft.github.
diff --git a/Samples/Accelerometer/README.md b/Samples/Accelerometer/README.md
index fc88df7d5c..c294292611 100644
--- a/Samples/Accelerometer/README.md
+++ b/Samples/Accelerometer/README.md
@@ -1,5 +1,6 @@
# Accelerometer sample
diff --git a/Samples/Accelerometer/cpp/Accelerometer.vcxproj b/Samples/Accelerometer/cpp/Accelerometer.vcxproj
index 06afcf347e..efa0c1e474 100644
--- a/Samples/Accelerometer/cpp/Accelerometer.vcxproj
+++ b/Samples/Accelerometer/cpp/Accelerometer.vcxproj
@@ -146,19 +146,19 @@
- Scenario1_DataEvents.xaml
+ ..\shared\Scenario1_DataEvents.xaml
- Scenario2_ShakeEvents.xaml
+ ..\shared\Scenario2_ShakeEvents.xaml
- Scenario3_Polling.xaml
+ ..\shared\Scenario3_Polling.xaml
- Scenario4_OrientationChanged.xaml
+ ..\shared\Scenario4_OrientationChanged.xaml
- Scenario5_DataEventsBatching.xaml
+ ..\shared\Scenario5_DataEventsBatching.xaml
@@ -168,11 +168,11 @@
Designer
-
-
-
-
-
+
+
+
+
+
Styles\Styles.xaml
@@ -199,19 +199,19 @@
- Scenario1_DataEvents.xaml
+ ..\shared\Scenario1_DataEvents.xaml
- Scenario2_ShakeEvents.xaml
+ ..\shared\Scenario2_ShakeEvents.xaml
- Scenario3_Polling.xaml
+ ..\shared\Scenario3_Polling.xaml
- Scenario4_OrientationChanged.xaml
+ ..\shared\Scenario4_OrientationChanged.xaml
- Scenario5_DataEventsBatching.xaml
+ ..\shared\Scenario5_DataEventsBatching.xaml
diff --git a/Samples/Accelerometer/cpp/Accelerometer.vcxproj.filters b/Samples/Accelerometer/cpp/Accelerometer.vcxproj.filters
index dbb5bd5576..9c425d626b 100644
--- a/Samples/Accelerometer/cpp/Accelerometer.vcxproj.filters
+++ b/Samples/Accelerometer/cpp/Accelerometer.vcxproj.filters
@@ -53,11 +53,11 @@
-
-
-
-
-
+
+
+
+
+ Styles
diff --git a/Samples/Accelerometer/cpp/Package.appxmanifest b/Samples/Accelerometer/cpp/Package.appxmanifest
index 7302b04421..b337dcb817 100644
--- a/Samples/Accelerometer/cpp/Package.appxmanifest
+++ b/Samples/Accelerometer/cpp/Package.appxmanifest
@@ -7,14 +7,14 @@
IgnorableNamespaces="uap mp">
- AccelerometerCPP
+ Accelerometer C++ SampleMicrosoft CorporationAssets\StoreLogo-sdk.png
@@ -30,12 +30,12 @@
+ EntryPoint="Accelerometer.App">
diff --git a/Samples/Accelerometer/cs/Accelerometer.csproj b/Samples/Accelerometer/cs/Accelerometer.csproj
index ce818bc4f2..acdee0a749 100644
--- a/Samples/Accelerometer/cs/Accelerometer.csproj
+++ b/Samples/Accelerometer/cs/Accelerometer.csproj
@@ -7,8 +7,8 @@
{DC30CE66-DAEE-4CCF-BD02-8837FE918B6F}AppContainerExeProperties
- AccelerometerCS
- AccelerometerCS
+ SDKTemplate
+ Accelerometeren-USUAP10.0.10240.0
@@ -125,23 +125,28 @@
MSBuild:CompileDesigner
-
+
+ Scenario1_DataEvents.xaml
MSBuild:CompileDesigner
-
+
+ Scenario2_ShakeEvents.xaml
MSBuild:CompileDesigner
-
+
+ Scenario3_Polling.xaml
MSBuild:CompileDesigner
-
+
+ Scenario4_OrientationChanged.xaml
MSBuild:CompileDesigner
-
+
+ Scenario5_DataEventsBatching.xaml
MSBuild:CompileDesigner
diff --git a/Samples/Accelerometer/cs/Package.appxmanifest b/Samples/Accelerometer/cs/Package.appxmanifest
index c24cea491e..87dad868ec 100644
--- a/Samples/Accelerometer/cs/Package.appxmanifest
+++ b/Samples/Accelerometer/cs/Package.appxmanifest
@@ -7,7 +7,7 @@
IgnorableNamespaces="uap mp">
@@ -15,7 +15,7 @@
- AccelerometerCS
+ Accelerometer C# SampleMicrosoft CorporationAssets\StoreLogo-sdk.png
@@ -31,12 +31,12 @@
+ EntryPoint="Accelerometer.App">
diff --git a/Samples/Accelerometer/cs/SampleConfiguration.cs b/Samples/Accelerometer/cs/SampleConfiguration.cs
index cb1dff2671..6889a33f13 100644
--- a/Samples/Accelerometer/cs/SampleConfiguration.cs
+++ b/Samples/Accelerometer/cs/SampleConfiguration.cs
@@ -12,21 +12,20 @@
using System;
using System.Collections.Generic;
using Windows.UI.Xaml.Controls;
-using AccelerometerCS;
namespace SDKTemplate
{
public partial class MainPage : Page
{
- public const string FEATURE_NAME = "AccelerometerCS";
+ public const string FEATURE_NAME = "Accelerometer";
List scenarios = new List
{
- new Scenario() { Title = "Data events", ClassType = typeof(AccelerometerCS.Scenario1_DataEvents) },
- new Scenario() { Title = "Shake events", ClassType = typeof(AccelerometerCS.Scenario2_ShakeEvents) },
- new Scenario() { Title = "Polling", ClassType = typeof(AccelerometerCS.Scenario3_Polling) },
- new Scenario() { Title = "OrientationChange", ClassType = typeof(AccelerometerCS.Scenario4_OrientationChanged) },
- new Scenario() { Title = "Data events batching", ClassType = typeof(AccelerometerCS.Scenario5_DataEventsBatching)}
+ new Scenario() { Title = "Data events", ClassType = typeof(Scenario1_DataEvents) },
+ new Scenario() { Title = "Shake events", ClassType = typeof(Scenario2_ShakeEvents) },
+ new Scenario() { Title = "Polling", ClassType = typeof(Scenario3_Polling) },
+ new Scenario() { Title = "OrientationChange", ClassType = typeof(Scenario4_OrientationChanged) },
+ new Scenario() { Title = "Data events batching", ClassType = typeof(Scenario5_DataEventsBatching)}
};
}
diff --git a/Samples/Accelerometer/cs/Scenario1_DataEvents.xaml b/Samples/Accelerometer/cs/Scenario1_DataEvents.xaml
deleted file mode 100644
index 3dfa10c9be..0000000000
--- a/Samples/Accelerometer/cs/Scenario1_DataEvents.xaml
+++ /dev/null
@@ -1,40 +0,0 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
\ No newline at end of file
diff --git a/Samples/Accelerometer/cs/Scenario1_DataEvents.xaml.cs b/Samples/Accelerometer/cs/Scenario1_DataEvents.xaml.cs
index 6850c3aca2..616e0cb7e4 100644
--- a/Samples/Accelerometer/cs/Scenario1_DataEvents.xaml.cs
+++ b/Samples/Accelerometer/cs/Scenario1_DataEvents.xaml.cs
@@ -12,14 +12,13 @@
using Windows.UI.Xaml;
using Windows.UI.Xaml.Controls;
using Windows.UI.Xaml.Navigation;
-using SDKTemplate;
using System;
using Windows.Devices.Sensors;
using Windows.Foundation;
using System.Threading.Tasks;
using Windows.UI.Core;
-namespace AccelerometerCS
+namespace SDKTemplate
{
public sealed partial class Scenario1_DataEvents : Page
{
diff --git a/Samples/Accelerometer/cs/Scenario2_ShakeEvents.xaml b/Samples/Accelerometer/cs/Scenario2_ShakeEvents.xaml
deleted file mode 100644
index d5a8477c32..0000000000
--- a/Samples/Accelerometer/cs/Scenario2_ShakeEvents.xaml
+++ /dev/null
@@ -1,37 +0,0 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
\ No newline at end of file
diff --git a/Samples/Accelerometer/cs/Scenario2_ShakeEvents.xaml.cs b/Samples/Accelerometer/cs/Scenario2_ShakeEvents.xaml.cs
index 2b018f49d3..88025a1474 100644
--- a/Samples/Accelerometer/cs/Scenario2_ShakeEvents.xaml.cs
+++ b/Samples/Accelerometer/cs/Scenario2_ShakeEvents.xaml.cs
@@ -14,13 +14,12 @@
using Windows.UI.Xaml;
using Windows.UI.Xaml.Controls;
using Windows.UI.Xaml.Navigation;
-using SDKTemplate;
using System;
using Windows.Devices.Sensors;
using Windows.Foundation;
using Windows.UI.Core;
-namespace AccelerometerCS
+namespace SDKTemplate
{
public sealed partial class Scenario2_ShakeEvents : Page
{
diff --git a/Samples/Accelerometer/cs/Scenario3_Polling.xaml b/Samples/Accelerometer/cs/Scenario3_Polling.xaml
deleted file mode 100644
index 17489a8b78..0000000000
--- a/Samples/Accelerometer/cs/Scenario3_Polling.xaml
+++ /dev/null
@@ -1,40 +0,0 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
\ No newline at end of file
diff --git a/Samples/Accelerometer/cs/Scenario3_Polling.xaml.cs b/Samples/Accelerometer/cs/Scenario3_Polling.xaml.cs
index 4c65972e72..9bc895026e 100644
--- a/Samples/Accelerometer/cs/Scenario3_Polling.xaml.cs
+++ b/Samples/Accelerometer/cs/Scenario3_Polling.xaml.cs
@@ -13,14 +13,13 @@
using Windows.UI.Xaml;
using Windows.UI.Xaml.Controls;
using Windows.UI.Xaml.Navigation;
-using SDKTemplate;
using System;
using Windows.Devices.Sensors;
using Windows.Foundation;
using System.Threading.Tasks;
using Windows.UI.Core;
-namespace AccelerometerCS
+namespace SDKTemplate
{
public sealed partial class Scenario3_Polling : Page
{
diff --git a/Samples/Accelerometer/cs/Scenario4_OrientationChanged.xaml b/Samples/Accelerometer/cs/Scenario4_OrientationChanged.xaml
deleted file mode 100644
index 5a451ff4f3..0000000000
--- a/Samples/Accelerometer/cs/Scenario4_OrientationChanged.xaml
+++ /dev/null
@@ -1,59 +0,0 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
diff --git a/Samples/Accelerometer/cs/Scenario4_OrientationChanged.xaml.cs b/Samples/Accelerometer/cs/Scenario4_OrientationChanged.xaml.cs
index 8942b27ef7..df0039b3f2 100644
--- a/Samples/Accelerometer/cs/Scenario4_OrientationChanged.xaml.cs
+++ b/Samples/Accelerometer/cs/Scenario4_OrientationChanged.xaml.cs
@@ -12,7 +12,6 @@
using Windows.UI.Xaml;
using Windows.UI.Xaml.Controls;
using Windows.UI.Xaml.Navigation;
-using SDKTemplate;
using System;
using Windows.Devices.Sensors;
using Windows.Foundation;
@@ -20,7 +19,7 @@
using Windows.UI.Core;
using Windows.Graphics.Display;
-namespace AccelerometerCS
+namespace SDKTemplate
{
///
/// An empty page that can be used on its own or navigated to within a Frame.
diff --git a/Samples/Accelerometer/cs/Scenario5_DataEventsBatching.xaml b/Samples/Accelerometer/cs/Scenario5_DataEventsBatching.xaml
deleted file mode 100644
index 24f5a8e4b3..0000000000
--- a/Samples/Accelerometer/cs/Scenario5_DataEventsBatching.xaml
+++ /dev/null
@@ -1,40 +0,0 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
\ No newline at end of file
diff --git a/Samples/Accelerometer/cs/Scenario5_DataEventsBatching.xaml.cs b/Samples/Accelerometer/cs/Scenario5_DataEventsBatching.xaml.cs
index c9746a5b30..87f434a012 100644
--- a/Samples/Accelerometer/cs/Scenario5_DataEventsBatching.xaml.cs
+++ b/Samples/Accelerometer/cs/Scenario5_DataEventsBatching.xaml.cs
@@ -12,14 +12,13 @@
using Windows.UI.Xaml;
using Windows.UI.Xaml.Controls;
using Windows.UI.Xaml.Navigation;
-using SDKTemplate;
using System;
using Windows.Devices.Sensors;
using Windows.Foundation;
using System.Threading.Tasks;
using Windows.UI.Core;
-namespace AccelerometerCS
+namespace SDKTemplate
{
public sealed partial class Scenario5_DataEventsBatching : Page
{
diff --git a/Samples/Accelerometer/cpp/Scenario1_DataEvents.xaml b/Samples/Accelerometer/shared/Scenario1_DataEvents.xaml
similarity index 100%
rename from Samples/Accelerometer/cpp/Scenario1_DataEvents.xaml
rename to Samples/Accelerometer/shared/Scenario1_DataEvents.xaml
diff --git a/Samples/Accelerometer/cpp/Scenario2_ShakeEvents.xaml b/Samples/Accelerometer/shared/Scenario2_ShakeEvents.xaml
similarity index 100%
rename from Samples/Accelerometer/cpp/Scenario2_ShakeEvents.xaml
rename to Samples/Accelerometer/shared/Scenario2_ShakeEvents.xaml
diff --git a/Samples/Accelerometer/cpp/Scenario3_Polling.xaml b/Samples/Accelerometer/shared/Scenario3_Polling.xaml
similarity index 100%
rename from Samples/Accelerometer/cpp/Scenario3_Polling.xaml
rename to Samples/Accelerometer/shared/Scenario3_Polling.xaml
diff --git a/Samples/Accelerometer/cpp/Scenario4_OrientationChanged.xaml b/Samples/Accelerometer/shared/Scenario4_OrientationChanged.xaml
similarity index 100%
rename from Samples/Accelerometer/cpp/Scenario4_OrientationChanged.xaml
rename to Samples/Accelerometer/shared/Scenario4_OrientationChanged.xaml
diff --git a/Samples/Accelerometer/cpp/Scenario5_DataEventsBatching.xaml b/Samples/Accelerometer/shared/Scenario5_DataEventsBatching.xaml
similarity index 100%
rename from Samples/Accelerometer/cpp/Scenario5_DataEventsBatching.xaml
rename to Samples/Accelerometer/shared/Scenario5_DataEventsBatching.xaml
diff --git a/Samples/ActivitySensor/README.md b/Samples/ActivitySensor/README.md
index b2b7644389..aefb679450 100644
--- a/Samples/ActivitySensor/README.md
+++ b/Samples/ActivitySensor/README.md
@@ -1,5 +1,6 @@
# Activity detection sensor sample
diff --git a/Samples/ActivitySensor/cpp/ActivitySensor.vcxproj b/Samples/ActivitySensor/cpp/ActivitySensor.vcxproj
index 1bb8155c31..c23a65d4d2 100644
--- a/Samples/ActivitySensor/cpp/ActivitySensor.vcxproj
+++ b/Samples/ActivitySensor/cpp/ActivitySensor.vcxproj
@@ -146,16 +146,16 @@
- Scenario1_CurrentActivity.xaml
+ ..\shared\Scenario1_CurrentActivity.xaml
- Scenario2_History.xaml
+ ..\shared\Scenario2_History.xaml
- Scenario3_ChangeEvents.xaml
+ ..\shared\Scenario3_ChangeEvents.xaml
- Scenario4_BackgroundActivity.xaml
+ ..\shared\Scenario4_BackgroundActivity.xaml
@@ -165,10 +165,10 @@
Designer
-
-
-
-
+
+
+
+
Styles\Styles.xaml
@@ -195,16 +195,16 @@
- Scenario1_CurrentActivity.xaml
+ ..\shared\Scenario1_CurrentActivity.xaml
- Scenario2_History.xaml
+ ..\shared\Scenario2_History.xaml
- Scenario3_ChangeEvents.xaml
+ ..\shared\Scenario3_ChangeEvents.xaml
- Scenario4_BackgroundActivity.xaml
+ ..\shared\Scenario4_BackgroundActivity.xaml
diff --git a/Samples/ActivitySensor/cpp/ActivitySensor.vcxproj.filters b/Samples/ActivitySensor/cpp/ActivitySensor.vcxproj.filters
index fdac2af79d..6b002111f4 100644
--- a/Samples/ActivitySensor/cpp/ActivitySensor.vcxproj.filters
+++ b/Samples/ActivitySensor/cpp/ActivitySensor.vcxproj.filters
@@ -51,10 +51,10 @@
-
-
-
-
+
+
+
+ Styles
diff --git a/Samples/ActivitySensor/cpp/Package.appxmanifest b/Samples/ActivitySensor/cpp/Package.appxmanifest
index 2f991dbf3c..527320fa6a 100644
--- a/Samples/ActivitySensor/cpp/Package.appxmanifest
+++ b/Samples/ActivitySensor/cpp/Package.appxmanifest
@@ -7,14 +7,14 @@
IgnorableNamespaces="uap mp">
- ActivitySensorCPP
+ Activity Sensor C++ SampleMicrosoft CorporationAssets\StoreLogo-sdk.png
@@ -30,7 +30,7 @@
+ EntryPoint="ActivitySensor.App">
@@ -39,10 +39,10 @@
diff --git a/Samples/ActivitySensor/cpp/SampleConfiguration.h b/Samples/ActivitySensor/cpp/SampleConfiguration.h
index 12012ea55b..851d207092 100644
--- a/Samples/ActivitySensor/cpp/SampleConfiguration.h
+++ b/Samples/ActivitySensor/cpp/SampleConfiguration.h
@@ -23,7 +23,7 @@ namespace SDKTemplate
{
Platform::String^ get()
{
- return "ActivitySensor";
+ return "Activity sensor";
}
}
diff --git a/Samples/ActivitySensor/cs/ActivitySensor.csproj b/Samples/ActivitySensor/cs/ActivitySensor.csproj
index 153e9cdc1f..5ae149ceda 100644
--- a/Samples/ActivitySensor/cs/ActivitySensor.csproj
+++ b/Samples/ActivitySensor/cs/ActivitySensor.csproj
@@ -7,8 +7,8 @@
{DC30CE66-DAEE-4CCF-BD02-8837FE918B6F}AppContainerExeProperties
- ActivitySensorCS
- ActivitySensorCS
+ SDKTemplate
+ ActivitySensoren-USUAP10.0.10240.0
@@ -124,19 +124,23 @@
MSBuild:CompileDesigner
-
+
+ Scenario1_CurrentActivity.xaml
MSBuild:CompileDesigner
-
+
+ Scenario2_History.xaml
MSBuild:CompileDesigner
-
+
+ Scenario3_ChangeEvents.xaml
MSBuild:CompileDesigner
-
+
+ Scenario4_BackgroundActivity.xaml
MSBuild:CompileDesigner
@@ -189,4 +193,4 @@
-->
-
+
\ No newline at end of file
diff --git a/Samples/ActivitySensor/cs/Package.appxmanifest b/Samples/ActivitySensor/cs/Package.appxmanifest
index 87cb7d231a..6ead913fac 100644
--- a/Samples/ActivitySensor/cs/Package.appxmanifest
+++ b/Samples/ActivitySensor/cs/Package.appxmanifest
@@ -7,14 +7,14 @@
IgnorableNamespaces="uap mp">
- ActivitySensorCS
+ Activity Sensor C# SampleMicrosoft CorporationAssets\StoreLogo-sdk.png
@@ -30,7 +30,7 @@
+ EntryPoint="ActivitySensor.App">
@@ -39,10 +39,10 @@
diff --git a/Samples/ActivitySensor/cs/SampleConfiguration.cs b/Samples/ActivitySensor/cs/SampleConfiguration.cs
index 97edcca320..230b7619a3 100644
--- a/Samples/ActivitySensor/cs/SampleConfiguration.cs
+++ b/Samples/ActivitySensor/cs/SampleConfiguration.cs
@@ -12,13 +12,12 @@
using System;
using System.Collections.Generic;
using Windows.UI.Xaml.Controls;
-using ActivitySensorCS;
namespace SDKTemplate
{
public partial class MainPage : Page
{
- public const string FEATURE_NAME = "ActivitySensorCS";
+ public const string FEATURE_NAME = "Activity sensor";
List scenarios = new List
{
diff --git a/Samples/ActivitySensor/cs/Scenario1_CurrentActivity.xaml b/Samples/ActivitySensor/cs/Scenario1_CurrentActivity.xaml
deleted file mode 100644
index 4c5b326c5e..0000000000
--- a/Samples/ActivitySensor/cs/Scenario1_CurrentActivity.xaml
+++ /dev/null
@@ -1,39 +0,0 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
\ No newline at end of file
diff --git a/Samples/ActivitySensor/cs/Scenario1_CurrentActivity.xaml.cs b/Samples/ActivitySensor/cs/Scenario1_CurrentActivity.xaml.cs
index d6ec051202..0e9d6c074b 100644
--- a/Samples/ActivitySensor/cs/Scenario1_CurrentActivity.xaml.cs
+++ b/Samples/ActivitySensor/cs/Scenario1_CurrentActivity.xaml.cs
@@ -15,9 +15,7 @@
using Windows.UI.Xaml;
using Windows.UI.Xaml.Controls;
-using SDKTemplate;
-
-namespace ActivitySensorCS
+namespace SDKTemplate
{
public sealed partial class Scenario1_CurrentActivity : Page
{
diff --git a/Samples/ActivitySensor/cs/Scenario2_History.xaml b/Samples/ActivitySensor/cs/Scenario2_History.xaml
deleted file mode 100644
index 667f9bdeb0..0000000000
--- a/Samples/ActivitySensor/cs/Scenario2_History.xaml
+++ /dev/null
@@ -1,51 +0,0 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
\ No newline at end of file
diff --git a/Samples/ActivitySensor/cs/Scenario2_History.xaml.cs b/Samples/ActivitySensor/cs/Scenario2_History.xaml.cs
index 46c3e52232..a990eadf73 100644
--- a/Samples/ActivitySensor/cs/Scenario2_History.xaml.cs
+++ b/Samples/ActivitySensor/cs/Scenario2_History.xaml.cs
@@ -16,9 +16,7 @@
using Windows.UI.Xaml;
using Windows.UI.Xaml.Controls;
-using SDKTemplate;
-
-namespace ActivitySensorCS
+namespace SDKTemplate
{
public sealed partial class Scenario2_History : Page
{
diff --git a/Samples/ActivitySensor/cs/Scenario3_ChangeEvents.xaml b/Samples/ActivitySensor/cs/Scenario3_ChangeEvents.xaml
deleted file mode 100644
index 403896bb68..0000000000
--- a/Samples/ActivitySensor/cs/Scenario3_ChangeEvents.xaml
+++ /dev/null
@@ -1,42 +0,0 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
\ No newline at end of file
diff --git a/Samples/ActivitySensor/cs/Scenario3_ChangeEvents.xaml.cs b/Samples/ActivitySensor/cs/Scenario3_ChangeEvents.xaml.cs
index 0563f2d422..5d76e95f75 100644
--- a/Samples/ActivitySensor/cs/Scenario3_ChangeEvents.xaml.cs
+++ b/Samples/ActivitySensor/cs/Scenario3_ChangeEvents.xaml.cs
@@ -18,9 +18,7 @@
using Windows.UI.Xaml.Controls;
using Windows.UI.Xaml.Navigation;
-using SDKTemplate;
-
-namespace ActivitySensorCS
+namespace SDKTemplate
{
public sealed partial class Scenario3_ChangeEvents : Page
{
diff --git a/Samples/ActivitySensor/cs/Scenario4_BackgroundActivity.xaml b/Samples/ActivitySensor/cs/Scenario4_BackgroundActivity.xaml
deleted file mode 100644
index e20a330645..0000000000
--- a/Samples/ActivitySensor/cs/Scenario4_BackgroundActivity.xaml
+++ /dev/null
@@ -1,49 +0,0 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
\ No newline at end of file
diff --git a/Samples/ActivitySensor/cs/Scenario4_BackgroundActivity.xaml.cs b/Samples/ActivitySensor/cs/Scenario4_BackgroundActivity.xaml.cs
index f4349927cd..3acb7b74f0 100644
--- a/Samples/ActivitySensor/cs/Scenario4_BackgroundActivity.xaml.cs
+++ b/Samples/ActivitySensor/cs/Scenario4_BackgroundActivity.xaml.cs
@@ -19,9 +19,7 @@
using Windows.UI.Xaml.Controls;
using Windows.UI.Xaml.Navigation;
-using SDKTemplate;
-
-namespace ActivitySensorCS
+namespace SDKTemplate
{
///
/// An empty page that can be used on its own or navigated to within a Frame.
diff --git a/Samples/ActivitySensor/cpp/Scenario1_CurrentActivity.xaml b/Samples/ActivitySensor/shared/Scenario1_CurrentActivity.xaml
similarity index 100%
rename from Samples/ActivitySensor/cpp/Scenario1_CurrentActivity.xaml
rename to Samples/ActivitySensor/shared/Scenario1_CurrentActivity.xaml
diff --git a/Samples/ActivitySensor/cpp/Scenario2_History.xaml b/Samples/ActivitySensor/shared/Scenario2_History.xaml
similarity index 100%
rename from Samples/ActivitySensor/cpp/Scenario2_History.xaml
rename to Samples/ActivitySensor/shared/Scenario2_History.xaml
diff --git a/Samples/ActivitySensor/cpp/Scenario3_ChangeEvents.xaml b/Samples/ActivitySensor/shared/Scenario3_ChangeEvents.xaml
similarity index 100%
rename from Samples/ActivitySensor/cpp/Scenario3_ChangeEvents.xaml
rename to Samples/ActivitySensor/shared/Scenario3_ChangeEvents.xaml
diff --git a/Samples/ActivitySensor/cpp/Scenario4_BackgroundActivity.xaml b/Samples/ActivitySensor/shared/Scenario4_BackgroundActivity.xaml
similarity index 100%
rename from Samples/ActivitySensor/cpp/Scenario4_BackgroundActivity.xaml
rename to Samples/ActivitySensor/shared/Scenario4_BackgroundActivity.xaml
diff --git a/Samples/AdaptiveStreaming/README.md b/Samples/AdaptiveStreaming/README.md
index e66378561a..19cd86377b 100644
--- a/Samples/AdaptiveStreaming/README.md
+++ b/Samples/AdaptiveStreaming/README.md
@@ -1,5 +1,6 @@
# Adaptive streaming sample
@@ -24,9 +25,9 @@ Related topics
System requirements
-----------------------------
-Client:
-Windows 10
-Windows Phone 10
+**Client:** Windows 10
+
+**Phone:** Windows 10
Build the sample
----------------
diff --git a/Samples/AdvancedCasting/README.md b/Samples/AdvancedCasting/README.md
index 01717c8609..e1df21894b 100644
--- a/Samples/AdvancedCasting/README.md
+++ b/Samples/AdvancedCasting/README.md
@@ -1,5 +1,6 @@
# Advanced casting sample
@@ -41,9 +42,9 @@ Related topics
System requirements
-----------------------------
-Client:
-Windows 10
-Windows Phone 10
+**Client:** Windows 10
+
+**Phone:** Windows 10
Build the sample
----------------
diff --git a/Samples/AllJoyn/ConsumerExperiences/README.md b/Samples/AllJoyn/ConsumerExperiences/README.md
index 883274bb62..a9ba889ccf 100644
--- a/Samples/AllJoyn/ConsumerExperiences/README.md
+++ b/Samples/AllJoyn/ConsumerExperiences/README.md
@@ -1,5 +1,6 @@
# AllJoyn consumer experiences sample
diff --git a/Samples/AllJoyn/ProducerExperiences/README.md b/Samples/AllJoyn/ProducerExperiences/README.md
index e3da92193a..11c9419170 100644
--- a/Samples/AllJoyn/ProducerExperiences/README.md
+++ b/Samples/AllJoyn/ProducerExperiences/README.md
@@ -1,5 +1,6 @@
# AllJoyn producer experiences sample
diff --git a/Samples/Altimeter/README.md b/Samples/Altimeter/README.md
index 1028f0dc78..b2d5698c01 100644
--- a/Samples/Altimeter/README.md
+++ b/Samples/Altimeter/README.md
@@ -1,5 +1,6 @@
# Altimeter sample
diff --git a/Samples/Altimeter/cpp/Altimeter.vcxproj b/Samples/Altimeter/cpp/Altimeter.vcxproj
index 950b20c4cf..065cf2c7ac 100644
--- a/Samples/Altimeter/cpp/Altimeter.vcxproj
+++ b/Samples/Altimeter/cpp/Altimeter.vcxproj
@@ -146,10 +146,10 @@
- Scenario1_DataEvents.xaml
+ ..\shared\Scenario1_DataEvents.xaml
- Scenario2_Polling.xaml
+ ..\shared\Scenario2_Polling.xaml
@@ -159,8 +159,8 @@
Designer
-
-
+
+
Styles\Styles.xaml
@@ -187,10 +187,10 @@
- Scenario1_DataEvents.xaml
+ ..\shared\Scenario1_DataEvents.xaml
- Scenario2_Polling.xaml
+ ..\shared\Scenario2_Polling.xaml
diff --git a/Samples/Altimeter/cpp/Altimeter.vcxproj.filters b/Samples/Altimeter/cpp/Altimeter.vcxproj.filters
index 2e14a48a29..71b6dcb200 100644
--- a/Samples/Altimeter/cpp/Altimeter.vcxproj.filters
+++ b/Samples/Altimeter/cpp/Altimeter.vcxproj.filters
@@ -47,8 +47,8 @@
-
-
+
+ Styles
diff --git a/Samples/Altimeter/cpp/Package.appxmanifest b/Samples/Altimeter/cpp/Package.appxmanifest
index 83bb63ec52..2ad8399612 100644
--- a/Samples/Altimeter/cpp/Package.appxmanifest
+++ b/Samples/Altimeter/cpp/Package.appxmanifest
@@ -7,14 +7,14 @@
IgnorableNamespaces="uap mp">
- AltimeterCPP
+ Altimeter C++ SampleMicrosoft CorporationAssets\StoreLogo-sdk.png
@@ -30,12 +30,12 @@
+ EntryPoint="Altimeter.App">
diff --git a/Samples/Altimeter/cs/Altimeter.csproj b/Samples/Altimeter/cs/Altimeter.csproj
index dfb22b4321..3697000a24 100644
--- a/Samples/Altimeter/cs/Altimeter.csproj
+++ b/Samples/Altimeter/cs/Altimeter.csproj
@@ -7,8 +7,8 @@
{DC30CE66-DAEE-4CCF-BD02-8837FE918B6F}AppContainerExeProperties
- AltimeterCS
- AltimeterCS
+ SDKTemplate
+ Altimeteren-USUAP10.0.10240.0
@@ -122,11 +122,13 @@
MSBuild:CompileDesigner
-
+
+ Scenario1_DataEvents.xaml
MSBuild:CompileDesigner
-
+
+ Scenario2_Polling.xaml
MSBuild:CompileDesigner
diff --git a/Samples/Altimeter/cs/Package.appxmanifest b/Samples/Altimeter/cs/Package.appxmanifest
index 5ca1952e78..7470a24c4e 100644
--- a/Samples/Altimeter/cs/Package.appxmanifest
+++ b/Samples/Altimeter/cs/Package.appxmanifest
@@ -7,7 +7,7 @@
IgnorableNamespaces="uap mp">
@@ -15,7 +15,7 @@
- AltimeterCS
+ Altimeter C# SampleMicrosoft CorporationAssets\StoreLogo-sdk.png
@@ -31,12 +31,12 @@
+ EntryPoint="Altimeter.App">
diff --git a/Samples/Altimeter/cs/SampleConfiguration.cs b/Samples/Altimeter/cs/SampleConfiguration.cs
index 4479050087..1c096c8b60 100644
--- a/Samples/Altimeter/cs/SampleConfiguration.cs
+++ b/Samples/Altimeter/cs/SampleConfiguration.cs
@@ -12,18 +12,17 @@
using System;
using System.Collections.Generic;
using Windows.UI.Xaml.Controls;
-using AltimeterCS;
namespace SDKTemplate
{
public partial class MainPage : Page
{
- public const string FEATURE_NAME = "AltimeterCS";
+ public const string FEATURE_NAME = "Altimeter";
List scenarios = new List
{
- new Scenario() { Title = "Data Events", ClassType = typeof(AltimeterCS.Scenario1_DataEvents) },
- new Scenario() { Title = "Polling", ClassType = typeof(AltimeterCS.Scenario2_Polling) }
+ new Scenario() { Title = "Data Events", ClassType = typeof(Scenario1_DataEvents) },
+ new Scenario() { Title = "Polling", ClassType = typeof(Scenario2_Polling) }
};
}
diff --git a/Samples/Altimeter/cs/Scenario1_DataEvents.xaml b/Samples/Altimeter/cs/Scenario1_DataEvents.xaml
deleted file mode 100644
index 71bd6e7e40..0000000000
--- a/Samples/Altimeter/cs/Scenario1_DataEvents.xaml
+++ /dev/null
@@ -1,34 +0,0 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
\ No newline at end of file
diff --git a/Samples/Altimeter/cs/Scenario1_DataEvents.xaml.cs b/Samples/Altimeter/cs/Scenario1_DataEvents.xaml.cs
index 6c51baffc3..fb5daffd18 100644
--- a/Samples/Altimeter/cs/Scenario1_DataEvents.xaml.cs
+++ b/Samples/Altimeter/cs/Scenario1_DataEvents.xaml.cs
@@ -9,7 +9,6 @@
//
//*********************************************************
-using SDKTemplate;
using System;
using System.Threading.Tasks;
using Windows.Devices.Sensors;
@@ -19,7 +18,7 @@
using Windows.UI.Xaml.Controls;
using Windows.UI.Xaml.Navigation;
-namespace AltimeterCS
+namespace SDKTemplate
{
public sealed partial class Scenario1_DataEvents : Page
{
diff --git a/Samples/Altimeter/cs/Scenario2_Polling.xaml b/Samples/Altimeter/cs/Scenario2_Polling.xaml
deleted file mode 100644
index e6024da685..0000000000
--- a/Samples/Altimeter/cs/Scenario2_Polling.xaml
+++ /dev/null
@@ -1,33 +0,0 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
\ No newline at end of file
diff --git a/Samples/Altimeter/cs/Scenario2_Polling.xaml.cs b/Samples/Altimeter/cs/Scenario2_Polling.xaml.cs
index 9da29b7f42..f36410a37f 100644
--- a/Samples/Altimeter/cs/Scenario2_Polling.xaml.cs
+++ b/Samples/Altimeter/cs/Scenario2_Polling.xaml.cs
@@ -9,7 +9,6 @@
//
//*********************************************************
-using SDKTemplate;
using System;
using System.Threading.Tasks;
using Windows.Devices.Sensors;
@@ -19,7 +18,7 @@
using Windows.UI.Xaml.Controls;
using Windows.UI.Xaml.Navigation;
-namespace AltimeterCS
+namespace SDKTemplate
{
public sealed partial class Scenario2_Polling : Page
{
diff --git a/Samples/Altimeter/cpp/Scenario1_DataEvents.xaml b/Samples/Altimeter/shared/Scenario1_DataEvents.xaml
similarity index 100%
rename from Samples/Altimeter/cpp/Scenario1_DataEvents.xaml
rename to Samples/Altimeter/shared/Scenario1_DataEvents.xaml
diff --git a/Samples/Altimeter/cpp/Scenario2_Polling.xaml b/Samples/Altimeter/shared/Scenario2_Polling.xaml
similarity index 100%
rename from Samples/Altimeter/cpp/Scenario2_Polling.xaml
rename to Samples/Altimeter/shared/Scenario2_Polling.xaml
diff --git a/Samples/AnimationLibrary/README.md b/Samples/AnimationLibrary/README.md
index 284fbdd022..ace6ce75d3 100644
--- a/Samples/AnimationLibrary/README.md
+++ b/Samples/AnimationLibrary/README.md
@@ -1,5 +1,6 @@
# HTML animation library sample
diff --git a/Samples/AnimationMetrics/README.md b/Samples/AnimationMetrics/README.md
index e47359cfbc..41ca99f44f 100644
--- a/Samples/AnimationMetrics/README.md
+++ b/Samples/AnimationMetrics/README.md
@@ -1,5 +1,6 @@
# Animation metrics sample
diff --git a/Samples/AnimationMetrics/cpp/Package.appxmanifest b/Samples/AnimationMetrics/cpp/Package.appxmanifest
index 75b65ccd57..7d71a0b554 100644
--- a/Samples/AnimationMetrics/cpp/Package.appxmanifest
+++ b/Samples/AnimationMetrics/cpp/Package.appxmanifest
@@ -20,7 +20,7 @@
-
+
diff --git a/Samples/AnimationMetrics/cs/Package.appxmanifest b/Samples/AnimationMetrics/cs/Package.appxmanifest
index a880114f49..8b62c5e6a2 100644
--- a/Samples/AnimationMetrics/cs/Package.appxmanifest
+++ b/Samples/AnimationMetrics/cs/Package.appxmanifest
@@ -21,7 +21,7 @@
-
+
diff --git a/Samples/AnimationMetrics/js/Package.appxmanifest b/Samples/AnimationMetrics/js/Package.appxmanifest
index d5d6cb5245..494a646841 100644
--- a/Samples/AnimationMetrics/js/Package.appxmanifest
+++ b/Samples/AnimationMetrics/js/Package.appxmanifest
@@ -19,7 +19,7 @@
-
+
diff --git a/Samples/AppServices/README.md b/Samples/AppServices/README.md
index 90e8c0650d..d9ab959866 100644
--- a/Samples/AppServices/README.md
+++ b/Samples/AppServices/README.md
@@ -1,5 +1,6 @@
# App services sample
diff --git a/Samples/ApplicationData/README.md b/Samples/ApplicationData/README.md
index d1d8fc543f..21de6fcb68 100644
--- a/Samples/ApplicationData/README.md
+++ b/Samples/ApplicationData/README.md
@@ -1,5 +1,6 @@
# Application data sample
diff --git a/Samples/ApplicationResources/README.md b/Samples/ApplicationResources/README.md
index 5fedefe386..1b5105b099 100644
--- a/Samples/ApplicationResources/README.md
+++ b/Samples/ApplicationResources/README.md
@@ -1,5 +1,6 @@
# Application resources and localization sample
@@ -34,11 +35,11 @@ To obtain information about Microsoft Visual Studio 2015 and the tools for devel
## System requirements
-**Client:** Windows 10 Technical Preview
+**Client:** Windows 10
-**Server:** Windows 10 Technical Preview
+**Server:** Windows Server 2016 Technical Preview
-**Phone:** Windows 10 Technical Preview
+**Phone:** Windows 10
## Build the sample
diff --git a/Samples/Appointments/README.md b/Samples/Appointments/README.md
index 1ffbbad514..d6a7ca2583 100644
--- a/Samples/Appointments/README.md
+++ b/Samples/Appointments/README.md
@@ -1,5 +1,6 @@
# Appointment calendar sample
diff --git a/Samples/AssociationLaunching/README.md b/Samples/AssociationLaunching/README.md
index bb86af95a3..80b0f7b335 100644
--- a/Samples/AssociationLaunching/README.md
+++ b/Samples/AssociationLaunching/README.md
@@ -1,5 +1,6 @@
# Association launching sample
diff --git a/Samples/AudioCategory/README.md b/Samples/AudioCategory/README.md
index 6d8a420a16..d03bb54828 100644
--- a/Samples/AudioCategory/README.md
+++ b/Samples/AudioCategory/README.md
@@ -1,5 +1,6 @@
# Audio categories sample
@@ -9,9 +10,9 @@ This sample demonstrates how to create apps that use various audio categories.
System requirements
-----------------------------
-Client:
-Windows 10
-Windows Phone 10
+**Client:** Windows 10
+
+**Phone:** Windows 10
Build the sample
----------------
diff --git a/Samples/AudioCreation/README.md b/Samples/AudioCreation/README.md
index e439df945c..3df149184f 100644
--- a/Samples/AudioCreation/README.md
+++ b/Samples/AudioCreation/README.md
@@ -1,5 +1,6 @@
# Audio graphs sample
@@ -93,9 +94,9 @@ Related topics
System requirements
-----------------------------
-Client:
-Windows 10
-Windows Phone 10
+**Client:** Windows 10
+
+**Phone:** Windows 10
Build the sample
----------------
diff --git a/Samples/BackgroundAudio/README.md b/Samples/BackgroundAudio/README.md
index 33f948cb20..e2c7c62eb2 100644
--- a/Samples/BackgroundAudio/README.md
+++ b/Samples/BackgroundAudio/README.md
@@ -1,5 +1,6 @@
# Background audio sample
@@ -19,9 +20,9 @@ Related topics
System requirements
-----------------------------
-Client:
-Windows 10
-Windows Phone 10
+**Client:** Windows 10
+
+**Phone:** Windows 10
Build the sample
----------------
diff --git a/Samples/BackgroundSensors/README.md b/Samples/BackgroundSensors/README.md
index 5ff4f6f5cc..69635c43f7 100644
--- a/Samples/BackgroundSensors/README.md
+++ b/Samples/BackgroundSensors/README.md
@@ -1,5 +1,6 @@
# Background sensors sample
diff --git a/Samples/BackgroundSensors/cpp/BackgroundSensors.vcxproj b/Samples/BackgroundSensors/cpp/BackgroundSensors.vcxproj
index d2a70639e9..55f2c780d7 100644
--- a/Samples/BackgroundSensors/cpp/BackgroundSensors.vcxproj
+++ b/Samples/BackgroundSensors/cpp/BackgroundSensors.vcxproj
@@ -146,7 +146,7 @@
- Scenario1_DeviceUse.xaml
+ ..\shared\Scenario1_DeviceUse.xaml
@@ -156,7 +156,7 @@
Designer
-
+
Styles\Styles.xaml
@@ -183,7 +183,7 @@
- Scenario1_DeviceUse.xaml
+ ..\shared\Scenario1_DeviceUse.xaml
diff --git a/Samples/BackgroundSensors/cpp/BackgroundSensors.vcxproj.filters b/Samples/BackgroundSensors/cpp/BackgroundSensors.vcxproj.filters
index 91aece4935..d19b5795db 100644
--- a/Samples/BackgroundSensors/cpp/BackgroundSensors.vcxproj.filters
+++ b/Samples/BackgroundSensors/cpp/BackgroundSensors.vcxproj.filters
@@ -34,7 +34,7 @@
Styles
-
+
diff --git a/Samples/BackgroundSensors/cpp/Package.appxmanifest b/Samples/BackgroundSensors/cpp/Package.appxmanifest
index e6b0d56b78..856b46f7bc 100644
--- a/Samples/BackgroundSensors/cpp/Package.appxmanifest
+++ b/Samples/BackgroundSensors/cpp/Package.appxmanifest
@@ -1,9 +1,9 @@
-
+
- Background Sensors CPP sample
+ Background Sensors C++ sampleMicrosoft CorporationAssets\StoreLogo-sdk.png
@@ -14,10 +14,10 @@
-
+
diff --git a/Samples/BackgroundSensors/cpp/SampleConfiguration.h b/Samples/BackgroundSensors/cpp/SampleConfiguration.h
index fce2dc47f9..882c7265e7 100644
--- a/Samples/BackgroundSensors/cpp/SampleConfiguration.h
+++ b/Samples/BackgroundSensors/cpp/SampleConfiguration.h
@@ -14,7 +14,7 @@ namespace SDKTemplate
{
Platform::String^ get()
{
- return "Background Sensors CPP sample";
+ return "Background sensors";
}
}
diff --git a/Samples/BackgroundSensors/cpp/Scenario1_DeviceUse.xaml b/Samples/BackgroundSensors/cpp/Scenario1_DeviceUse.xaml
deleted file mode 100644
index 507d72be44..0000000000
--- a/Samples/BackgroundSensors/cpp/Scenario1_DeviceUse.xaml
+++ /dev/null
@@ -1,45 +0,0 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
- Launches a DeviceUse trigger background task to listen for accelerometer data. Displays the number of data samples received by the background task.
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
diff --git a/Samples/BackgroundSensors/cs/BackgroundSensors.csproj b/Samples/BackgroundSensors/cs/BackgroundSensors.csproj
index 4208c64ee2..eff14245fe 100644
--- a/Samples/BackgroundSensors/cs/BackgroundSensors.csproj
+++ b/Samples/BackgroundSensors/cs/BackgroundSensors.csproj
@@ -7,8 +7,8 @@
{DC30CE66-DAEE-4CCF-BD02-8837FE918B6F}AppContainerExeProperties
- BackgroundSensorsCS
- BackgroundSensorsCS
+ SDKTemplate
+ BackgroundSensorsen-USUAP10.0.10240.0
@@ -121,7 +121,8 @@
MSBuild:CompileDesigner
-
+
+ Scenario1_DeviceUse.xaml
MSBuild:CompileDesigner
@@ -174,4 +175,4 @@
-->
-
+
\ No newline at end of file
diff --git a/Samples/BackgroundSensors/cs/Package.appxmanifest b/Samples/BackgroundSensors/cs/Package.appxmanifest
index 3ee03da09a..c195cfa49f 100644
--- a/Samples/BackgroundSensors/cs/Package.appxmanifest
+++ b/Samples/BackgroundSensors/cs/Package.appxmanifest
@@ -7,7 +7,7 @@
IgnorableNamespaces="uap mp">
@@ -15,7 +15,7 @@
- BackgroundSensorsCS
+ Background Sensors C# SampleMicrosoft CorporationAssets\StoreLogo-sdk.png
@@ -31,12 +31,12 @@
+ EntryPoint="BackgroundSensors.App">
diff --git a/Samples/BackgroundSensors/cs/SampleConfiguration.cs b/Samples/BackgroundSensors/cs/SampleConfiguration.cs
index 6f7fe7f951..793a4d2a98 100644
--- a/Samples/BackgroundSensors/cs/SampleConfiguration.cs
+++ b/Samples/BackgroundSensors/cs/SampleConfiguration.cs
@@ -8,7 +8,7 @@ namespace SDKTemplate
{
public partial class MainPage : Page
{
- public const string FEATURE_NAME = "Background Sensors";
+ public const string FEATURE_NAME = "Background sensors";
List scenarios = new List
{
diff --git a/Samples/BackgroundSensors/cs/Scenario1_DeviceUse.xaml b/Samples/BackgroundSensors/cs/Scenario1_DeviceUse.xaml
deleted file mode 100644
index 1150691be9..0000000000
--- a/Samples/BackgroundSensors/cs/Scenario1_DeviceUse.xaml
+++ /dev/null
@@ -1,45 +0,0 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
- Launches a DeviceUse trigger background task to listen for accelerometer data. Displays the number of data samples received by the background task.
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
diff --git a/Samples/BackgroundSensors/cs/Scenario1_DeviceUse.xaml.cs b/Samples/BackgroundSensors/cs/Scenario1_DeviceUse.xaml.cs
index 3c95afd696..0413108c27 100644
--- a/Samples/BackgroundSensors/cs/Scenario1_DeviceUse.xaml.cs
+++ b/Samples/BackgroundSensors/cs/Scenario1_DeviceUse.xaml.cs
@@ -285,11 +285,11 @@ private void RefreshTimer_Tick(object sender, object e)
if (ApplicationData.Current.LocalSettings.Values.ContainsKey("SampleCount"))
{
ulong sampleCount = (ulong)ApplicationData.Current.LocalSettings.Values["SampleCount"];
- ScenarioOutputSampleCount.Text = sampleCount.ToString(System.Globalization.CultureInfo.CurrentCulture);
+ ScenarioOutput_SampleCount.Text = sampleCount.ToString(System.Globalization.CultureInfo.CurrentCulture);
}
else
{
- ScenarioOutputSampleCount.Text = "No data";
+ ScenarioOutput_SampleCount.Text = "No data";
}
}
diff --git a/Samples/BackgroundTask/cs/BackgroundTask/Scenario1_SampleBackgroundTask.xaml b/Samples/BackgroundSensors/shared/Scenario1_DeviceUse.xaml
similarity index 55%
rename from Samples/BackgroundTask/cs/BackgroundTask/Scenario1_SampleBackgroundTask.xaml
rename to Samples/BackgroundSensors/shared/Scenario1_DeviceUse.xaml
index efc66b9acf..ba25797af4 100644
--- a/Samples/BackgroundTask/cs/BackgroundTask/Scenario1_SampleBackgroundTask.xaml
+++ b/Samples/BackgroundSensors/shared/Scenario1_DeviceUse.xaml
@@ -1,4 +1,4 @@
-
-
-
-
- Registers a background task for the Time Zone Change system event. The
- background task runs whenever the Time Zone changes.
+ Launches a DeviceUse trigger background task to listen for accelerometer data. Displays the number of data samples received by the background task.
-
-
-
+
+
+
+
+
+
+
+
+
-
-
-
-
-
-
-
-
-
-
diff --git a/Samples/BackgroundTask/README.md b/Samples/BackgroundTask/README.md
index 46308a8e5f..3d57e5094c 100644
--- a/Samples/BackgroundTask/README.md
+++ b/Samples/BackgroundTask/README.md
@@ -1,5 +1,6 @@
# Background task sample
diff --git a/Samples/BackgroundTask/cpp/BackgroundTask/BackgroundTask.vcxproj b/Samples/BackgroundTask/cpp/BackgroundTask/BackgroundTask.vcxproj
index afd1866078..9408a3d734 100644
--- a/Samples/BackgroundTask/cpp/BackgroundTask/BackgroundTask.vcxproj
+++ b/Samples/BackgroundTask/cpp/BackgroundTask/BackgroundTask.vcxproj
@@ -2,7 +2,7 @@
{f710b9fd-4e6b-42d7-a99a-6d48888d48b0}
- BackgroundTask
+ SDKTemplateen-US14.0true
@@ -148,19 +148,19 @@
- Scenario1_SampleBackgroundTask.xaml
+ ..\..\shared\Scenario1_SampleBackgroundTask.xaml
- Scenario2_SampleBackgroundTaskWithCondition.xaml
+ ..\..\shared\Scenario2_SampleBackgroundTaskWithCondition.xaml
- Scenario3_ServicingCompleteTask.xaml
+ ..\..\shared\Scenario3_ServicingCompleteTask.xaml
- Scenario4_TimeTriggeredTask.xaml
+ ..\..\shared\Scenario4_TimeTriggeredTask.xaml
- Scenario5_ApplicationTriggerTask.xaml
+ ..\..\shared\Scenario5_ApplicationTriggerTask.xaml
@@ -170,11 +170,11 @@
Designer
-
-
-
-
-
+
+
+
+
+
Styles\Styles.xaml
@@ -201,19 +201,19 @@
- Scenario1_SampleBackgroundTask.xaml
+ ..\..\shared\Scenario1_SampleBackgroundTask.xaml
- Scenario2_SampleBackgroundTaskWithCondition.xaml
+ ..\..\shared\Scenario2_SampleBackgroundTaskWithCondition.xaml
- Scenario3_ServicingCompleteTask.xaml
+ ..\..\shared\Scenario3_ServicingCompleteTask.xaml
- Scenario4_TimeTriggeredTask.xaml
+ ..\..\shared\Scenario4_TimeTriggeredTask.xaml
- Scenario5_ApplicationTriggerTask.xaml
+ ..\..\shared\Scenario5_ApplicationTriggerTask.xaml
diff --git a/Samples/BackgroundTask/cpp/BackgroundTask/BackgroundTask.vcxproj.filters b/Samples/BackgroundTask/cpp/BackgroundTask/BackgroundTask.vcxproj.filters
index a98a4867f6..a609b35fdf 100644
--- a/Samples/BackgroundTask/cpp/BackgroundTask/BackgroundTask.vcxproj.filters
+++ b/Samples/BackgroundTask/cpp/BackgroundTask/BackgroundTask.vcxproj.filters
@@ -40,10 +40,10 @@
Styles
-
-
-
-
+
+
+
+
@@ -62,4 +62,4 @@
Assets
-
+
\ No newline at end of file
diff --git a/Samples/BackgroundTask/cpp/BackgroundTask/Package.appxmanifest b/Samples/BackgroundTask/cpp/BackgroundTask/Package.appxmanifest
index 0cd4b0a7c6..5d692e3a54 100644
--- a/Samples/BackgroundTask/cpp/BackgroundTask/Package.appxmanifest
+++ b/Samples/BackgroundTask/cpp/BackgroundTask/Package.appxmanifest
@@ -14,7 +14,7 @@
- BackgroundTask
+ Background Tasks C++ SampleMicrosoft CorporationAssets\StoreLogo-sdk.png
@@ -45,11 +45,10 @@
diff --git a/Samples/BackgroundTask/cpp/BackgroundTask/SampleConfiguration.cpp b/Samples/BackgroundTask/cpp/BackgroundTask/SampleConfiguration.cpp
index 5a079c2895..255743be2e 100644
--- a/Samples/BackgroundTask/cpp/BackgroundTask/SampleConfiguration.cpp
+++ b/Samples/BackgroundTask/cpp/BackgroundTask/SampleConfiguration.cpp
@@ -13,7 +13,6 @@
#include "SampleConfiguration.h"
using namespace SDKTemplate;
-using namespace BackgroundTask;
String^ BackgroundTaskSample::SampleBackgroundTaskProgress = "";
bool BackgroundTaskSample::SampleBackgroundTaskRegistered = false;
@@ -35,11 +34,11 @@ Array^ MainPage::scenariosInner = ref new Array
{
// The format here is the following:
// { "Description for the sample", "Fully quaified name for the class that implements the scenario" }
- { "Background task", "BackgroundTask.SampleBackgroundTask" },
- { "Background task with a condition", "BackgroundTask.SampleBackgroundTaskWithCondition" },
- { "Servicing complete task", "BackgroundTask.ServicingCompleteTask" },
- { "Background task with time trigger", "BackgroundTask.TimeTriggeredTask" },
- { "Background task with application trigger", "BackgroundTask.ApplicationTriggerTask" }
+ { "Background task", "SDKTemplate.SampleBackgroundTask" },
+ { "Background task with a condition", "SDKTemplate.SampleBackgroundTaskWithCondition" },
+ { "Servicing complete task", "SDKTemplate.ServicingCompleteTask" },
+ { "Background task with time trigger", "SDKTemplate.TimeTriggeredTask" },
+ { "Background task with application trigger", "SDKTemplate.ApplicationTriggerTask" }
};
String^ BackgroundTaskSample::GetBackgroundTaskStatus(String^ name)
diff --git a/Samples/BackgroundTask/cpp/BackgroundTask/SampleConfiguration.h b/Samples/BackgroundTask/cpp/BackgroundTask/SampleConfiguration.h
index 84a6202614..46fbe95240 100644
--- a/Samples/BackgroundTask/cpp/BackgroundTask/SampleConfiguration.h
+++ b/Samples/BackgroundTask/cpp/BackgroundTask/SampleConfiguration.h
@@ -39,7 +39,7 @@ namespace SDKTemplate
{
String^ get()
{
- return ref new String(L"Background Task");
+ return L"Background tasks";
}
}
@@ -53,10 +53,7 @@ namespace SDKTemplate
private:
static Array^ scenariosInner;
};
-}
-namespace BackgroundTask
-{
class BackgroundTaskSample
{
public:
diff --git a/Samples/BackgroundTask/cpp/BackgroundTask/Scenario1_SampleBackgroundTask.xaml b/Samples/BackgroundTask/cpp/BackgroundTask/Scenario1_SampleBackgroundTask.xaml
deleted file mode 100644
index c675a4c8be..0000000000
--- a/Samples/BackgroundTask/cpp/BackgroundTask/Scenario1_SampleBackgroundTask.xaml
+++ /dev/null
@@ -1,47 +0,0 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
- Registers a background task for the Time Zone Change system event. The
- background task runs whenever the Time Zone changes.
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
diff --git a/Samples/BackgroundTask/cpp/BackgroundTask/Scenario1_SampleBackgroundTask.xaml.cpp b/Samples/BackgroundTask/cpp/BackgroundTask/Scenario1_SampleBackgroundTask.xaml.cpp
index 179ff8ff71..f8fe642c59 100644
--- a/Samples/BackgroundTask/cpp/BackgroundTask/Scenario1_SampleBackgroundTask.xaml.cpp
+++ b/Samples/BackgroundTask/cpp/BackgroundTask/Scenario1_SampleBackgroundTask.xaml.cpp
@@ -18,7 +18,6 @@
#include "SampleConfiguration.h"
using namespace SDKTemplate;
-using namespace BackgroundTask;
using namespace Windows::ApplicationModel::Background;
using namespace Windows::UI::Core;
diff --git a/Samples/BackgroundTask/cpp/BackgroundTask/Scenario1_SampleBackgroundTask.xaml.h b/Samples/BackgroundTask/cpp/BackgroundTask/Scenario1_SampleBackgroundTask.xaml.h
index ede736d12e..382bda2b2d 100644
--- a/Samples/BackgroundTask/cpp/BackgroundTask/Scenario1_SampleBackgroundTask.xaml.h
+++ b/Samples/BackgroundTask/cpp/BackgroundTask/Scenario1_SampleBackgroundTask.xaml.h
@@ -19,7 +19,7 @@
#include "Scenario1_SampleBackgroundTask.g.h"
#include "MainPage.xaml.h"
-namespace BackgroundTask
+namespace SDKTemplate
{
///
/// An empty page that can be used on its own or navigated to within a Frame.
diff --git a/Samples/BackgroundTask/cpp/BackgroundTask/Scenario2_SampleBackgroundTaskWithCondition.xaml b/Samples/BackgroundTask/cpp/BackgroundTask/Scenario2_SampleBackgroundTaskWithCondition.xaml
deleted file mode 100644
index 1b27fef6ec..0000000000
--- a/Samples/BackgroundTask/cpp/BackgroundTask/Scenario2_SampleBackgroundTaskWithCondition.xaml
+++ /dev/null
@@ -1,50 +0,0 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
- Registers a background task for the Time Zone Change system event and
- the Internet Available system condition. The background task runs
- whenever the Time Zone changes if there is an available internet
- connection. The task will be canceled if the internet connection is
- disconnected while the background task is running.
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
diff --git a/Samples/BackgroundTask/cpp/BackgroundTask/Scenario2_SampleBackgroundTaskWithCondition.xaml.cpp b/Samples/BackgroundTask/cpp/BackgroundTask/Scenario2_SampleBackgroundTaskWithCondition.xaml.cpp
index 65ea051c73..6e663d4384 100644
--- a/Samples/BackgroundTask/cpp/BackgroundTask/Scenario2_SampleBackgroundTaskWithCondition.xaml.cpp
+++ b/Samples/BackgroundTask/cpp/BackgroundTask/Scenario2_SampleBackgroundTaskWithCondition.xaml.cpp
@@ -18,7 +18,6 @@
#include "SampleConfiguration.h"
using namespace SDKTemplate;
-using namespace BackgroundTask;
using namespace Windows::ApplicationModel::Background;
using namespace Windows::UI::Core;
diff --git a/Samples/BackgroundTask/cpp/BackgroundTask/Scenario2_SampleBackgroundTaskWithCondition.xaml.h b/Samples/BackgroundTask/cpp/BackgroundTask/Scenario2_SampleBackgroundTaskWithCondition.xaml.h
index dac5629261..72b2d85d14 100644
--- a/Samples/BackgroundTask/cpp/BackgroundTask/Scenario2_SampleBackgroundTaskWithCondition.xaml.h
+++ b/Samples/BackgroundTask/cpp/BackgroundTask/Scenario2_SampleBackgroundTaskWithCondition.xaml.h
@@ -19,7 +19,7 @@
#include "Scenario2_SampleBackgroundTaskWithCondition.g.h"
#include "MainPage.xaml.h"
-namespace BackgroundTask
+namespace SDKTemplate
{
///
/// An empty page that can be used on its own or navigated to within a Frame.
diff --git a/Samples/BackgroundTask/cpp/BackgroundTask/Scenario3_ServicingCompleteTask.xaml b/Samples/BackgroundTask/cpp/BackgroundTask/Scenario3_ServicingCompleteTask.xaml
deleted file mode 100644
index 290da05555..0000000000
--- a/Samples/BackgroundTask/cpp/BackgroundTask/Scenario3_ServicingCompleteTask.xaml
+++ /dev/null
@@ -1,48 +0,0 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
- Registers a background task for the Servicing Complete event. The
- background task runs when the application is updated with a newer
- version.
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
diff --git a/Samples/BackgroundTask/cpp/BackgroundTask/Scenario3_ServicingCompleteTask.xaml.cpp b/Samples/BackgroundTask/cpp/BackgroundTask/Scenario3_ServicingCompleteTask.xaml.cpp
index 8293939aa7..0c19ff811e 100644
--- a/Samples/BackgroundTask/cpp/BackgroundTask/Scenario3_ServicingCompleteTask.xaml.cpp
+++ b/Samples/BackgroundTask/cpp/BackgroundTask/Scenario3_ServicingCompleteTask.xaml.cpp
@@ -18,7 +18,6 @@
#include "SampleConfiguration.h"
using namespace SDKTemplate;
-using namespace BackgroundTask;
using namespace Windows::ApplicationModel::Background;
using namespace Windows::UI::Core;
diff --git a/Samples/BackgroundTask/cpp/BackgroundTask/Scenario3_ServicingCompleteTask.xaml.h b/Samples/BackgroundTask/cpp/BackgroundTask/Scenario3_ServicingCompleteTask.xaml.h
index bc0c3987b4..879c2fd863 100644
--- a/Samples/BackgroundTask/cpp/BackgroundTask/Scenario3_ServicingCompleteTask.xaml.h
+++ b/Samples/BackgroundTask/cpp/BackgroundTask/Scenario3_ServicingCompleteTask.xaml.h
@@ -19,7 +19,7 @@
#include "Scenario3_ServicingCompleteTask.g.h"
#include "MainPage.xaml.h"
-namespace BackgroundTask
+namespace SDKTemplate
{
///
/// An empty page that can be used on its own or navigated to within a Frame.
diff --git a/Samples/BackgroundTask/cpp/BackgroundTask/Scenario4_TimeTriggeredTask.xaml b/Samples/BackgroundTask/cpp/BackgroundTask/Scenario4_TimeTriggeredTask.xaml
deleted file mode 100644
index 0045c7032d..0000000000
--- a/Samples/BackgroundTask/cpp/BackgroundTask/Scenario4_TimeTriggeredTask.xaml
+++ /dev/null
@@ -1,48 +0,0 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
- Registers a background task for a time trigger event and adds the
- application to the lock screen. The background task runs every 15 mins
- provided the app is on the lock screen.
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
diff --git a/Samples/BackgroundTask/cpp/BackgroundTask/Scenario4_TimeTriggeredTask.xaml.cpp b/Samples/BackgroundTask/cpp/BackgroundTask/Scenario4_TimeTriggeredTask.xaml.cpp
index 5c0c12d832..2f93188d29 100644
--- a/Samples/BackgroundTask/cpp/BackgroundTask/Scenario4_TimeTriggeredTask.xaml.cpp
+++ b/Samples/BackgroundTask/cpp/BackgroundTask/Scenario4_TimeTriggeredTask.xaml.cpp
@@ -18,7 +18,6 @@
#include "SampleConfiguration.h"
using namespace SDKTemplate;
-using namespace BackgroundTask;
using namespace Windows::ApplicationModel::Background;
using namespace Windows::UI::Core;
diff --git a/Samples/BackgroundTask/cpp/BackgroundTask/Scenario4_TimeTriggeredTask.xaml.h b/Samples/BackgroundTask/cpp/BackgroundTask/Scenario4_TimeTriggeredTask.xaml.h
index dd59945785..8461c2b4a3 100644
--- a/Samples/BackgroundTask/cpp/BackgroundTask/Scenario4_TimeTriggeredTask.xaml.h
+++ b/Samples/BackgroundTask/cpp/BackgroundTask/Scenario4_TimeTriggeredTask.xaml.h
@@ -19,7 +19,7 @@
#include "Scenario4_TimeTriggeredTask.g.h"
#include "MainPage.xaml.h"
-namespace BackgroundTask
+namespace SDKTemplate
{
///
/// An empty page that can be used on its own or navigated to within a Frame.
diff --git a/Samples/BackgroundTask/cpp/BackgroundTask/Scenario5_ApplicationTriggerTask.xaml b/Samples/BackgroundTask/cpp/BackgroundTask/Scenario5_ApplicationTriggerTask.xaml
deleted file mode 100644
index c1d776873b..0000000000
--- a/Samples/BackgroundTask/cpp/BackgroundTask/Scenario5_ApplicationTriggerTask.xaml
+++ /dev/null
@@ -1,49 +0,0 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
- Registers a background task for an application trigger event, requests
- background access and then signals the event.
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
diff --git a/Samples/BackgroundTask/cpp/BackgroundTask/Scenario5_ApplicationTriggerTask.xaml.cpp b/Samples/BackgroundTask/cpp/BackgroundTask/Scenario5_ApplicationTriggerTask.xaml.cpp
index deaa1d2801..2067080fc5 100644
--- a/Samples/BackgroundTask/cpp/BackgroundTask/Scenario5_ApplicationTriggerTask.xaml.cpp
+++ b/Samples/BackgroundTask/cpp/BackgroundTask/Scenario5_ApplicationTriggerTask.xaml.cpp
@@ -18,7 +18,6 @@
#include "SampleConfiguration.h"
using namespace SDKTemplate;
-using namespace BackgroundTask;
using namespace concurrency;
using namespace Windows::ApplicationModel::Background;
using namespace Windows::UI::Core;
diff --git a/Samples/BackgroundTask/cpp/BackgroundTask/Scenario5_ApplicationTriggerTask.xaml.h b/Samples/BackgroundTask/cpp/BackgroundTask/Scenario5_ApplicationTriggerTask.xaml.h
index d29b858860..994baa2b85 100644
--- a/Samples/BackgroundTask/cpp/BackgroundTask/Scenario5_ApplicationTriggerTask.xaml.h
+++ b/Samples/BackgroundTask/cpp/BackgroundTask/Scenario5_ApplicationTriggerTask.xaml.h
@@ -20,7 +20,7 @@
#include "Scenario5_ApplicationTriggerTask.g.h"
#include "MainPage.xaml.h"
-namespace BackgroundTask
+namespace SDKTemplate
{
///
/// An empty page that can be used on its own or navigated to within a Frame.
diff --git a/Samples/BackgroundTask/cs/BackgroundTask/BackgroundTask.csproj b/Samples/BackgroundTask/cs/BackgroundTask/BackgroundTask.csproj
index 4ea07e90cc..195378e403 100644
--- a/Samples/BackgroundTask/cs/BackgroundTask/BackgroundTask.csproj
+++ b/Samples/BackgroundTask/cs/BackgroundTask/BackgroundTask.csproj
@@ -7,7 +7,7 @@
{DC30CE66-DAEE-4CCF-BD02-8837FE918B6F}AppContainerExeProperties
- BackgroundTask
+ SDKTemplateBackgroundTasken-USUAP
@@ -99,7 +99,9 @@
MainPage.xaml.cs
MainPage.xaml
-
+
+ Properties\AssemblyInfo.cs
+ Scenario1_SampleBackgroundTask.xaml
@@ -133,26 +135,31 @@
MSBuild:CompileDesigner
-
+
+ Scenario1_SampleBackgroundTask.xaml
MSBuild:Compile
-
+
+ Scenario2_SampleBackgroundTaskWithCondition.xaml
MSBuild:Compile
-
+
+ Scenario5_ApplicationTriggerTask.xaml
MSBuild:CompileDesigner
-
+
+ Scenario4_TimeTriggeredTask.xaml
MSBuild:Compile
-
+
+ Scenario3_ServicingCompleteTask.xaml
MSBuild:Compile
@@ -206,4 +213,4 @@
-->
-
+
\ No newline at end of file
diff --git a/Samples/BackgroundTask/cs/BackgroundTask/Package.appxmanifest b/Samples/BackgroundTask/cs/BackgroundTask/Package.appxmanifest
index 520a375ebf..06e9b2899e 100644
--- a/Samples/BackgroundTask/cs/BackgroundTask/Package.appxmanifest
+++ b/Samples/BackgroundTask/cs/BackgroundTask/Package.appxmanifest
@@ -15,7 +15,7 @@
- BackgroundTask
+ Background Tasks C# SampleMicrosoft CorporationAssets\StoreLogo-sdk.png
@@ -33,11 +33,10 @@
Executable="$targetnametoken$.exe"
EntryPoint="BackgroundTask.App">
diff --git a/Samples/BackgroundTask/cs/BackgroundTask/Properties/AssemblyInfo.cs b/Samples/BackgroundTask/cs/BackgroundTask/Properties/AssemblyInfo.cs
deleted file mode 100644
index d588b00c28..0000000000
--- a/Samples/BackgroundTask/cs/BackgroundTask/Properties/AssemblyInfo.cs
+++ /dev/null
@@ -1,29 +0,0 @@
-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("BackgroundTask")]
-[assembly: AssemblyDescription("")]
-[assembly: AssemblyConfiguration("")]
-[assembly: AssemblyCompany("Microsoft Corporation")]
-[assembly: AssemblyProduct("")]
-[assembly: AssemblyCopyright("")]
-[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)]
diff --git a/Samples/BackgroundTask/cs/BackgroundTask/SampleConfiguration.cs b/Samples/BackgroundTask/cs/BackgroundTask/SampleConfiguration.cs
index f1d8d30e6c..d4e223a7b8 100644
--- a/Samples/BackgroundTask/cs/BackgroundTask/SampleConfiguration.cs
+++ b/Samples/BackgroundTask/cs/BackgroundTask/SampleConfiguration.cs
@@ -21,7 +21,7 @@ namespace SDKTemplate
{
public partial class MainPage : Page
{
- public const string FEATURE_NAME = "BackgroundTask";
+ public const string FEATURE_NAME = "Background tasks";
List scenarios = new List
{
diff --git a/Samples/BackgroundTask/cs/BackgroundTask/Scenario2_SampleBackgroundTaskWithCondition.xaml b/Samples/BackgroundTask/cs/BackgroundTask/Scenario2_SampleBackgroundTaskWithCondition.xaml
deleted file mode 100644
index f8ce8e7c40..0000000000
--- a/Samples/BackgroundTask/cs/BackgroundTask/Scenario2_SampleBackgroundTaskWithCondition.xaml
+++ /dev/null
@@ -1,60 +0,0 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- Registers a background task for the Time Zone Change system event and
- the Internet Available system condition. The background task runs
- whenever the Time Zone changes if there is an available internet
- connection. The task will be canceled if the internet connection is
- disconnected while the background task is running.
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
diff --git a/Samples/BackgroundTask/cs/BackgroundTask/Scenario4_TimeTriggeredTask.xaml b/Samples/BackgroundTask/cs/BackgroundTask/Scenario4_TimeTriggeredTask.xaml
deleted file mode 100644
index 376b6452b2..0000000000
--- a/Samples/BackgroundTask/cs/BackgroundTask/Scenario4_TimeTriggeredTask.xaml
+++ /dev/null
@@ -1,58 +0,0 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- Registers a background task for a time trigger event and adds the
- application to the lock screen. The background task runs every 15 mins
- provided the app is on the lock screen.
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
diff --git a/Samples/BackgroundTask/cs/BackgroundTask/Scenario5_ApplicationTriggerTask.xaml b/Samples/BackgroundTask/cs/BackgroundTask/Scenario5_ApplicationTriggerTask.xaml
deleted file mode 100644
index 84ac42d626..0000000000
--- a/Samples/BackgroundTask/cs/BackgroundTask/Scenario5_ApplicationTriggerTask.xaml
+++ /dev/null
@@ -1,59 +0,0 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- Registers a background task for an application trigger event, requests background
- access and then signals the event.
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
diff --git a/Samples/BackgroundTask/shared/Scenario1_SampleBackgroundTask.xaml b/Samples/BackgroundTask/shared/Scenario1_SampleBackgroundTask.xaml
new file mode 100644
index 0000000000..04f61ae69c
--- /dev/null
+++ b/Samples/BackgroundTask/shared/Scenario1_SampleBackgroundTask.xaml
@@ -0,0 +1,42 @@
+
+
+
+
+
+
+
+
+
+ Registers a background task for the Time Zone Change system event. The
+ background task runs whenever the Time Zone changes.
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/Samples/BackgroundTask/shared/Scenario2_SampleBackgroundTaskWithCondition.xaml b/Samples/BackgroundTask/shared/Scenario2_SampleBackgroundTaskWithCondition.xaml
new file mode 100644
index 0000000000..4a6da80d4c
--- /dev/null
+++ b/Samples/BackgroundTask/shared/Scenario2_SampleBackgroundTaskWithCondition.xaml
@@ -0,0 +1,45 @@
+
+
+
+
+
+
+
+
+
+ Registers a background task for the Time Zone Change system event and
+ the Internet Available system condition. The background task runs
+ whenever the Time Zone changes if there is an available internet
+ connection. The task will be canceled if the internet connection is
+ disconnected while the background task is running.
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/Samples/BackgroundTask/shared/Scenario3_ServicingCompleteTask.xaml b/Samples/BackgroundTask/shared/Scenario3_ServicingCompleteTask.xaml
new file mode 100644
index 0000000000..931149e23b
--- /dev/null
+++ b/Samples/BackgroundTask/shared/Scenario3_ServicingCompleteTask.xaml
@@ -0,0 +1,43 @@
+
+
+
+
+
+
+
+
+
+ Registers a background task for the Servicing Complete event. The
+ background task runs when the application is updated with a newer
+ version.
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/Samples/BackgroundTask/shared/Scenario4_TimeTriggeredTask.xaml b/Samples/BackgroundTask/shared/Scenario4_TimeTriggeredTask.xaml
new file mode 100644
index 0000000000..063d23aeea
--- /dev/null
+++ b/Samples/BackgroundTask/shared/Scenario4_TimeTriggeredTask.xaml
@@ -0,0 +1,43 @@
+
+
+
+
+
+
+
+
+
+ Registers a background task for a time trigger event and adds the
+ application to the lock screen. The background task runs every 15 mins
+ provided the app is on the lock screen.
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/Samples/BackgroundTask/shared/Scenario5_ApplicationTriggerTask.xaml b/Samples/BackgroundTask/shared/Scenario5_ApplicationTriggerTask.xaml
new file mode 100644
index 0000000000..40e85a5bb5
--- /dev/null
+++ b/Samples/BackgroundTask/shared/Scenario5_ApplicationTriggerTask.xaml
@@ -0,0 +1,44 @@
+
+
+
+
+
+
+
+
+
+ Registers a background task for an application trigger event, requests background
+ access and then signals the event.
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/Samples/BackgroundTransfer/README.md b/Samples/BackgroundTransfer/README.md
index cabb236ffa..34b69e3cd2 100644
--- a/Samples/BackgroundTransfer/README.md
+++ b/Samples/BackgroundTransfer/README.md
@@ -1,5 +1,6 @@
# Background transfer sample
@@ -62,7 +63,7 @@ For more information on network capabilities, see [How to set network capabiliti
**Client:** Windows 10
-**Server:** Windows Server 2016 Insider Preview
+**Server:** Windows Server 2016 Technical Preview
**Phone:** Windows 10
diff --git a/Samples/BarcodeScanner/README.md b/Samples/BarcodeScanner/README.md
index 9e55350720..462152308e 100644
--- a/Samples/BarcodeScanner/README.md
+++ b/Samples/BarcodeScanner/README.md
@@ -1,5 +1,6 @@
# Barcode scanner sample
diff --git a/Samples/Barometer/README.md b/Samples/Barometer/README.md
index 793ed48dfd..1ceb5bb295 100644
--- a/Samples/Barometer/README.md
+++ b/Samples/Barometer/README.md
@@ -1,5 +1,6 @@
# Barometer sample
diff --git a/Samples/BasicFaceDetection/README.md b/Samples/BasicFaceDetection/README.md
index ec7928a475..5bb371dafa 100644
--- a/Samples/BasicFaceDetection/README.md
+++ b/Samples/BasicFaceDetection/README.md
@@ -1,5 +1,6 @@
# Basic face detection sample
diff --git a/Samples/BasicFaceTracking/README.md b/Samples/BasicFaceTracking/README.md
index 7fc52df050..cd6a52bf16 100644
--- a/Samples/BasicFaceTracking/README.md
+++ b/Samples/BasicFaceTracking/README.md
@@ -1,5 +1,6 @@
# Basic face tracking sample
diff --git a/Samples/BasicInput/README.md b/Samples/BasicInput/README.md
index d678c39237..0055cbb703 100644
--- a/Samples/BasicInput/README.md
+++ b/Samples/BasicInput/README.md
@@ -1,5 +1,6 @@
# Basic input sample
@@ -40,7 +41,7 @@ To obtain information about Microsoft Visual Studio 2015 and the tools for devel
**Client:** Windows 10
-**Server:** Windows Server 2016 Insider Preview
+**Server:** Windows Server 2016 Technical Preview
**Phone:** Windows 10
diff --git a/Samples/BasicMediaCasting/README.md b/Samples/BasicMediaCasting/README.md
index 897bff7d92..8f99dc34ef 100644
--- a/Samples/BasicMediaCasting/README.md
+++ b/Samples/BasicMediaCasting/README.md
@@ -1,5 +1,6 @@
# Basic media casting sample
@@ -30,9 +31,10 @@ Related topics
System requirements
-----------------------------
-Client:
-Windows 10
-Windows Phone 10
+**Client:** Windows 10
+
+**Phone:** Windows 10
+
Build the sample
----------------
diff --git a/Samples/BluetoothAdvertisement/README.md b/Samples/BluetoothAdvertisement/README.md
index 9b0f74eb50..392f59a411 100644
--- a/Samples/BluetoothAdvertisement/README.md
+++ b/Samples/BluetoothAdvertisement/README.md
@@ -1,5 +1,6 @@
# Bluetooth advertisement sample
diff --git a/Samples/CameraFaceDetection/README.md b/Samples/CameraFaceDetection/README.md
index ebc1ffcd2a..5e585567a2 100644
--- a/Samples/CameraFaceDetection/README.md
+++ b/Samples/CameraFaceDetection/README.md
@@ -1,5 +1,6 @@
# Camera face detection sample
diff --git a/Samples/CameraGetPreviewFrame/README.md b/Samples/CameraGetPreviewFrame/README.md
index 9cb345a698..2a033adca3 100644
--- a/Samples/CameraGetPreviewFrame/README.md
+++ b/Samples/CameraGetPreviewFrame/README.md
@@ -1,5 +1,6 @@
# Camera preview frame sample
diff --git a/Samples/CameraHdr/README.md b/Samples/CameraHdr/README.md
index 59c75b7dc9..78b5188afb 100644
--- a/Samples/CameraHdr/README.md
+++ b/Samples/CameraHdr/README.md
@@ -1,5 +1,6 @@
# High dynamic range sample
@@ -58,11 +59,11 @@ This sample also implements a custom UI to better simulate the experience that a
**Hardware:** Camera
-**Client:** Windows 10 - Known Issue with HDR requires build greater than 10142
+**Client:** Windows 10
-**Server:** Windows Server 2016 Technical Preview - Known Issue with HDR requires build greater than 10142
+**Server:** Windows Server 2016 Technical Preview
-**Phone:** Windows 10 - Known Issue with HDR requires build greater than 10142
+**Phone:** Windows 10
## Build the sample
diff --git a/Samples/CameraProfile/README.md b/Samples/CameraProfile/README.md
index e0eb35bad1..4e96429ec4 100644
--- a/Samples/CameraProfile/README.md
+++ b/Samples/CameraProfile/README.md
@@ -1,5 +1,6 @@
# Camera profiles sample
diff --git a/Samples/CameraStarterKit/README.md b/Samples/CameraStarterKit/README.md
index caed8e13eb..d86c987286 100644
--- a/Samples/CameraStarterKit/README.md
+++ b/Samples/CameraStarterKit/README.md
@@ -1,5 +1,6 @@
# Basic camera app sample
diff --git a/Samples/CameraVideoStabilization/README.md b/Samples/CameraVideoStabilization/README.md
index a1446f7cbe..dc38bc6c74 100644
--- a/Samples/CameraVideoStabilization/README.md
+++ b/Samples/CameraVideoStabilization/README.md
@@ -1,5 +1,6 @@
# Video stabilization sample
diff --git a/Samples/CashDrawer/README.md b/Samples/CashDrawer/README.md
index 887f696378..7046fd64af 100644
--- a/Samples/CashDrawer/README.md
+++ b/Samples/CashDrawer/README.md
@@ -1,5 +1,6 @@
# Cash drawer sample
diff --git a/Samples/Clipboard/README.md b/Samples/Clipboard/README.md
index 0c4d1ad3a4..95135c423e 100644
--- a/Samples/Clipboard/README.md
+++ b/Samples/Clipboard/README.md
@@ -1,5 +1,6 @@
# Clipboard sample
diff --git a/Samples/Compass/README.md b/Samples/Compass/README.md
index ff79f23d1c..b210208124 100644
--- a/Samples/Compass/README.md
+++ b/Samples/Compass/README.md
@@ -1,5 +1,6 @@
# Compass sample
diff --git a/Samples/ComplexInk/README.md b/Samples/ComplexInk/README.md
index 88cb33eed5..a9f9573157 100644
--- a/Samples/ComplexInk/README.md
+++ b/Samples/ComplexInk/README.md
@@ -1,5 +1,6 @@
# Complex inking sample
diff --git a/Samples/Compression/README.md b/Samples/Compression/README.md
index a094014227..0a393d16bd 100644
--- a/Samples/Compression/README.md
+++ b/Samples/Compression/README.md
@@ -1,5 +1,6 @@
# Compression sample
diff --git a/Samples/ContentIndexer/README.md b/Samples/ContentIndexer/README.md
index 6a21412459..77a93b8f10 100644
--- a/Samples/ContentIndexer/README.md
+++ b/Samples/ContentIndexer/README.md
@@ -1,5 +1,6 @@
# Content indexer sample
diff --git a/Samples/ContextMenu/README.md b/Samples/ContextMenu/README.md
index 7523ab6136..4ab4d2062e 100644
--- a/Samples/ContextMenu/README.md
+++ b/Samples/ContextMenu/README.md
@@ -1,5 +1,6 @@
# Context menu sample
diff --git a/Samples/CortanaVoiceCommand/README.md b/Samples/CortanaVoiceCommand/README.md
index 5147dd9603..9aab283f81 100644
--- a/Samples/CortanaVoiceCommand/README.md
+++ b/Samples/CortanaVoiceCommand/README.md
@@ -1,5 +1,6 @@
# Cortana voice command sample
diff --git a/Samples/CredentialPicker/README.md b/Samples/CredentialPicker/README.md
index 34848ccf79..a0f33df66c 100644
--- a/Samples/CredentialPicker/README.md
+++ b/Samples/CredentialPicker/README.md
@@ -1,5 +1,6 @@
# Credential picker sample
diff --git a/Samples/CustomHidDeviceAccess/README.md b/Samples/CustomHidDeviceAccess/README.md
index 5026fe07e5..b697e2b8c4 100644
--- a/Samples/CustomHidDeviceAccess/README.md
+++ b/Samples/CustomHidDeviceAccess/README.md
@@ -1,5 +1,6 @@
# Custom HID device sample
diff --git a/Samples/CustomSensors/README.md b/Samples/CustomSensors/README.md
index 30aea0ba62..18786ad68e 100644
--- a/Samples/CustomSensors/README.md
+++ b/Samples/CustomSensors/README.md
@@ -1,5 +1,6 @@
# Custom sensors sample
diff --git a/Samples/CustomSerialDeviceAccess/README.md b/Samples/CustomSerialDeviceAccess/README.md
index 69766a2208..857c003d3e 100644
--- a/Samples/CustomSerialDeviceAccess/README.md
+++ b/Samples/CustomSerialDeviceAccess/README.md
@@ -1,5 +1,6 @@
# Custom serial device sample
@@ -33,7 +34,7 @@ This scenario demonstrates the use of event notification APIs provided by Window
**Client:** Windows 10
-**Server:** Windows 10
+**Server:** Windows Server 2016 Technical Preview
## Build the sample
diff --git a/Samples/CustomUsbDeviceAccess/README.md b/Samples/CustomUsbDeviceAccess/README.md
index bc2353cc5b..f142c6c6f7 100644
--- a/Samples/CustomUsbDeviceAccess/README.md
+++ b/Samples/CustomUsbDeviceAccess/README.md
@@ -1,5 +1,6 @@
# Custom USB device sample
@@ -136,9 +137,9 @@ The sample adds the [**DeviceCapability**](http://msdn.microsoft.com/library/win
## Operating system requirements
-* **Client:** Windows 10
+**Client:** Windows 10
-* **Server:** Windows Server 2016 Technical Preview
+**Server:** Windows Server 2016 Technical Preview
## Driver requirements
diff --git a/Samples/D2DCustomEffects/README.md b/Samples/D2DCustomEffects/README.md
index c5976abe82..8640f8e9dc 100644
--- a/Samples/D2DCustomEffects/README.md
+++ b/Samples/D2DCustomEffects/README.md
@@ -1,5 +1,6 @@
# Direct2D custom image effects sample
diff --git a/Samples/D2DGradientMesh/README.md b/Samples/D2DGradientMesh/README.md
index 3d9407f132..354c1a60d0 100644
--- a/Samples/D2DGradientMesh/README.md
+++ b/Samples/D2DGradientMesh/README.md
@@ -1,5 +1,6 @@
# Direct2D gradient mesh sample
diff --git a/Samples/D2DPhotoAdjustment/README.md b/Samples/D2DPhotoAdjustment/README.md
index 85a8f87994..8bf16336d1 100644
--- a/Samples/D2DPhotoAdjustment/README.md
+++ b/Samples/D2DPhotoAdjustment/README.md
@@ -1,5 +1,6 @@
# Direct2D photo adjustment sample
@@ -57,16 +58,6 @@ Related APIs:
## Build the sample
-## System requirements
-
-**Client:** Windows 10
-
-**Server:** Windows Server 2016 Technical Preview
-
-**Phone:** Windows 10
-
-## Build the sample
-
1. If you download the samples ZIP, be sure to unzip the entire archive, not just the folder with the sample you want to build.
2. Start Microsoft Visual Studio 2015 and select **File** \> **Open** \> **Project/Solution**.
3. Starting in the folder where you unzipped the samples, go to the Samples subfolder, then the subfolder for this specific sample, then the subfolder for your preferred language (C++, C#, or JavaScript). Double-click the Visual Studio2015 Solution (.sln) file.
diff --git a/Samples/DWriteLineSpacingModes/README.md b/Samples/DWriteLineSpacingModes/README.md
index b058024ad7..9921313c5e 100644
--- a/Samples/DWriteLineSpacingModes/README.md
+++ b/Samples/DWriteLineSpacingModes/README.md
@@ -1,5 +1,6 @@
# Line spacing (DirectWrite) sample
diff --git a/Samples/DWriteTextLayoutCloudFont/README.md b/Samples/DWriteTextLayoutCloudFont/README.md
index c7624149a1..900a061f77 100644
--- a/Samples/DWriteTextLayoutCloudFont/README.md
+++ b/Samples/DWriteTextLayoutCloudFont/README.md
@@ -1,5 +1,6 @@
# Downloadable fonts (DirectWrite) sample
diff --git a/Samples/DataReaderWriter/README.md b/Samples/DataReaderWriter/README.md
index 393ca05ec1..f94b88ec82 100644
--- a/Samples/DataReaderWriter/README.md
+++ b/Samples/DataReaderWriter/README.md
@@ -1,5 +1,6 @@
# Serializing and deserializing data sample
diff --git a/Samples/DatagramSocket/README.md b/Samples/DatagramSocket/README.md
index cca746b0d8..7a6bd3a38c 100644
--- a/Samples/DatagramSocket/README.md
+++ b/Samples/DatagramSocket/README.md
@@ -1,5 +1,6 @@
# DatagramSocket sample
@@ -95,7 +96,7 @@ This sample requires that network capabilities be set in the *Package.appxmanife
**Client:** Windows 10
-**Server:** Windows Server 2016 Insider Preview
+**Server:** Windows Server 2016 Technical Preview
**Phone:** Windows 10
diff --git a/Samples/DateTimeFormatting/README.md b/Samples/DateTimeFormatting/README.md
new file mode 100644
index 0000000000..821dc422ca
--- /dev/null
+++ b/Samples/DateTimeFormatting/README.md
@@ -0,0 +1,72 @@
+
+
+# Date and time formatting sample
+
+This sample demonstrates how to use the
+[**DateTimeFormatter**](http://msdn.microsoft.com/library/windows/apps/br206828)
+class in the
+[**Windows.Globalization.DateTimeFormatting**](http://msdn.microsoft.com/library/windows/apps/br206859)
+namespace to display dates and times according to the user's preferences.
+
+The **DateTimeFormatter**
+class provides a globally-aware method for formatting a date or time into a string for display to a user.
+It can either use the default preferences of the current user,
+or the caller can override these to specify other languages, geographic region,
+and clock and calendar systems.
+The caller can request a format using the well-known constants
+(shorttime, longtime, shortdate or longdate) or define the specific elements required.
+
+The sample also uses the
+[**Windows.Globalization.CalendarIdentifiers**](http://msdn.microsoft.com/library/windows/apps/br229460)
+and
+[**Windows.Globalization.ClockIdentifiers**](http://msdn.microsoft.com/library/windows/apps/br229462)
+classes.
+
+This sample contains scenarios that demonstrate:
+
+- How to format the current date and time using the Long and Short formats.
+- How to format the current date and time using custom formats that are specified using a template string or a parameterized template.
+- How to format dates and times by overriding the user's default global context. This is used when an app presents dates or times that reflect different settings from the user's current defaults.
+- How to format dates and times by using Unicode extensions in specified languages, overriding the user's default global context if applicable.
+- How to convert and format the current date and time using the time zone support available in the [**Format**](http://msdn.microsoft.com/library/windows/apps/dn264145) method.
+
+## Related topics
+
+[**NumberFormatting** sample](http://go.microsoft.com/fwlink/p/?LinkId=620578&clcid=0x409)
+
+### **Reference**
+
+[**Windows.Globalization.CalendarIdentifiers**](http://msdn.microsoft.com/library/windows/apps/br229460)
+
+[**Windows.Globalization.ClockIdentifiers**](http://msdn.microsoft.com/library/windows/apps/br229462)
+
+[**Windows.Globalization.DateTimeFormatting.DateTimeFormatter**](http://msdn.microsoft.com/library/windows/apps/br206828)
+
+## System requirements
+
+**Client:** Windows 10
+
+**Server:** Windows Server 2016 Technical Preview
+
+**Phone:** Windows 10
+
+## Build the sample
+
+1. If you download the samples ZIP, be sure to unzip the entire archive, not just the folder with the sample you want to build.
+2. Start Microsoft Visual Studio 2015 and select **File** \> **Open** \> **Project/Solution**.
+3. Starting in the folder where you unzipped the samples, go to the Samples subfolder, then the subfolder for this specific sample, then the subfolder for your preferred language (C++, C#, or JavaScript). Double-click the Visual Studio2015 Solution (.sln) file.
+4. Press Ctrl+Shift+B, or select **Build** \> **Build Solution**.
+
+## Run the sample
+
+The next steps depend on whether you just want to deploy the sample or you want to both deploy and run it.
+
+### Deploying the sample
+
+- Select Build > Deploy Solution.
+
+### Deploying and running the sample
+
+- To debug the sample and then run it, press F5 or select Debug > Start Debugging. To run the sample without debugging, press Ctrl+F5 or select Debug > Start Without Debugging.
diff --git a/Samples/DateTimeFormatting/cpp/DateTimeFormatting.sln b/Samples/DateTimeFormatting/cpp/DateTimeFormatting.sln
new file mode 100644
index 0000000000..b864f45c54
--- /dev/null
+++ b/Samples/DateTimeFormatting/cpp/DateTimeFormatting.sln
@@ -0,0 +1,40 @@
+
+Microsoft Visual Studio Solution File, Format Version 12.00
+# Visual Studio 14
+VisualStudioVersion = 14.0.22823.1
+MinimumVisualStudioVersion = 10.0.40219.1
+Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "DateTimeFormatting", "DateTimeFormatting.vcxproj", "{F710B9FD-4E6B-42D7-A99A-6D48888D48B0}"
+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
+ {F710B9FD-4E6B-42D7-A99A-6D48888D48B0}.Debug|ARM.ActiveCfg = Debug|ARM
+ {F710B9FD-4E6B-42D7-A99A-6D48888D48B0}.Debug|ARM.Build.0 = Debug|ARM
+ {F710B9FD-4E6B-42D7-A99A-6D48888D48B0}.Debug|ARM.Deploy.0 = Debug|ARM
+ {F710B9FD-4E6B-42D7-A99A-6D48888D48B0}.Debug|x64.ActiveCfg = Debug|x64
+ {F710B9FD-4E6B-42D7-A99A-6D48888D48B0}.Debug|x64.Build.0 = Debug|x64
+ {F710B9FD-4E6B-42D7-A99A-6D48888D48B0}.Debug|x64.Deploy.0 = Debug|x64
+ {F710B9FD-4E6B-42D7-A99A-6D48888D48B0}.Debug|x86.ActiveCfg = Debug|Win32
+ {F710B9FD-4E6B-42D7-A99A-6D48888D48B0}.Debug|x86.Build.0 = Debug|Win32
+ {F710B9FD-4E6B-42D7-A99A-6D48888D48B0}.Debug|x86.Deploy.0 = Debug|Win32
+ {F710B9FD-4E6B-42D7-A99A-6D48888D48B0}.Release|ARM.ActiveCfg = Release|ARM
+ {F710B9FD-4E6B-42D7-A99A-6D48888D48B0}.Release|ARM.Build.0 = Release|ARM
+ {F710B9FD-4E6B-42D7-A99A-6D48888D48B0}.Release|ARM.Deploy.0 = Release|ARM
+ {F710B9FD-4E6B-42D7-A99A-6D48888D48B0}.Release|x64.ActiveCfg = Release|x64
+ {F710B9FD-4E6B-42D7-A99A-6D48888D48B0}.Release|x64.Build.0 = Release|x64
+ {F710B9FD-4E6B-42D7-A99A-6D48888D48B0}.Release|x64.Deploy.0 = Release|x64
+ {F710B9FD-4E6B-42D7-A99A-6D48888D48B0}.Release|x86.ActiveCfg = Release|Win32
+ {F710B9FD-4E6B-42D7-A99A-6D48888D48B0}.Release|x86.Build.0 = Release|Win32
+ {F710B9FD-4E6B-42D7-A99A-6D48888D48B0}.Release|x86.Deploy.0 = Release|Win32
+ EndGlobalSection
+ GlobalSection(SolutionProperties) = preSolution
+ HideSolutionNode = FALSE
+ EndGlobalSection
+EndGlobal
diff --git a/Samples/DateTimeFormatting/cpp/DateTimeFormatting.vcxproj b/Samples/DateTimeFormatting/cpp/DateTimeFormatting.vcxproj
new file mode 100644
index 0000000000..f80f294411
--- /dev/null
+++ b/Samples/DateTimeFormatting/cpp/DateTimeFormatting.vcxproj
@@ -0,0 +1,250 @@
+
+
+
+ {f710b9fd-4e6b-42d7-a99a-6d48888d48b0}
+ SDKTemplate
+ en-US
+ 14.0
+ true
+ Windows Store
+ 10.0
+ 10.0.10240.0
+ 10.0.10240.0
+ true
+
+
+
+
+ Debug
+ ARM
+
+
+ Debug
+ Win32
+
+
+ Debug
+ x64
+
+
+ Release
+ ARM
+
+
+ Release
+ Win32
+
+
+ Release
+ x64
+
+
+
+ Application
+ true
+ v140
+
+
+ Application
+ true
+ v140
+
+
+ Application
+ true
+ v140
+
+
+ Application
+ false
+ true
+ v140
+ true
+
+
+ Application
+ false
+ true
+ v140
+ true
+
+
+ Application
+ false
+ true
+ v140
+ true
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ $(VC_IncludePath);$(UniversalCRT_IncludePath);$(WindowsSDK_IncludePath);..\..\..\SharedContent\cpp
+
+
+
+ /bigobj %(AdditionalOptions)
+ 4453;28204
+
+
+
+
+ /bigobj %(AdditionalOptions)
+ 4453;28204
+
+
+
+
+ /bigobj %(AdditionalOptions)
+ 4453;28204
+
+
+
+
+ /bigobj %(AdditionalOptions)
+ 4453;28204
+
+
+
+
+ /bigobj %(AdditionalOptions)
+ 4453;28204
+
+
+
+
+ /bigobj %(AdditionalOptions)
+ 4453;28204
+
+
+
+
+
+ ..\..\..\SharedContent\xaml\App.xaml
+
+
+ ..\..\..\SharedContent\cpp\MainPage.xaml
+
+
+
+ ..\shared\Scenario1_LongAndShortFormats.xaml
+
+
+ ..\shared\Scenario2_StringTemplate.xaml
+
+
+ ..\shared\Scenario3_ParameterizedTemplate.xaml
+
+
+ ..\shared\Scenario4_Override.xaml
+
+
+ ..\shared\Scenario5_UnicodeExtensions.xaml
+
+
+ ..\shared\Scenario6_TimeZone.xaml
+
+
+
+
+ Designer
+
+
+ Designer
+
+
+
+
+
+
+
+
+ Styles\Styles.xaml
+
+
+
+
+ Designer
+
+
+
+
+ ..\..\..\SharedContent\xaml\App.xaml
+
+
+ ..\..\..\SharedContent\cpp\MainPage.xaml
+
+
+ Create
+ Create
+ Create
+ Create
+ Create
+ Create
+
+
+
+ ..\shared\Scenario1_LongAndShortFormats.xaml
+
+
+ ..\shared\Scenario2_StringTemplate.xaml
+
+
+ ..\shared\Scenario3_ParameterizedTemplate.xaml
+
+
+ ..\shared\Scenario4_Override.xaml
+
+
+ ..\shared\Scenario5_UnicodeExtensions.xaml
+
+
+ ..\shared\Scenario6_TimeZone.xaml
+
+
+
+
+ Assets\microsoft-sdk.png
+
+
+ Assets\smalltile-sdk.png
+
+
+ Assets\splash-sdk.png
+
+
+ Assets\squaretile-sdk.png
+
+
+ Assets\storelogo-sdk.png
+
+
+ Assets\tile-sdk.png
+
+
+ Assets\windows-sdk.png
+
+
+
+
+
+
\ No newline at end of file
diff --git a/Samples/DateTimeFormatting/cpp/DateTimeFormatting.vcxproj.filters b/Samples/DateTimeFormatting/cpp/DateTimeFormatting.vcxproj.filters
new file mode 100644
index 0000000000..8d62513bba
--- /dev/null
+++ b/Samples/DateTimeFormatting/cpp/DateTimeFormatting.vcxproj.filters
@@ -0,0 +1,77 @@
+
+
+
+
+ 80bfd669-aa83-4537-9611-027cffe0d8af
+ bmp;fbx;gif;jpg;jpeg;tga;tiff;tif;png
+
+
+ {c6978fb6-bc64-498d-97c8-f5b53997e54e}
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Styles
+
+
+
+
+
+
+
+
+
+
+ Assets
+
+
+ Assets
+
+
+ Assets
+
+
+ Assets
+
+
+ Assets
+
+
+ Assets
+
+
+ Assets
+
+
+
\ No newline at end of file
diff --git a/Samples/DateTimeFormatting/cpp/Package.appxmanifest b/Samples/DateTimeFormatting/cpp/Package.appxmanifest
new file mode 100644
index 0000000000..d03f70b263
--- /dev/null
+++ b/Samples/DateTimeFormatting/cpp/Package.appxmanifest
@@ -0,0 +1,49 @@
+
+
+
+
+
+
+
+
+
+ Date Time Formatting C++ Sample
+ Microsoft Corporation
+ Assets\StoreLogo-sdk.png
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/Samples/DateTimeFormatting/cpp/SampleConfiguration.cpp b/Samples/DateTimeFormatting/cpp/SampleConfiguration.cpp
new file mode 100644
index 0000000000..ed598039f4
--- /dev/null
+++ b/Samples/DateTimeFormatting/cpp/SampleConfiguration.cpp
@@ -0,0 +1,26 @@
+//*********************************************************
+//
+// Copyright (c) Microsoft. All rights reserved.
+// This code is licensed under the MIT License (MIT).
+// THIS CODE IS PROVIDED *AS IS* WITHOUT WARRANTY OF
+// ANY KIND, EITHER EXPRESS OR IMPLIED, INCLUDING ANY
+// IMPLIED WARRANTIES OF FITNESS FOR A PARTICULAR
+// PURPOSE, MERCHANTABILITY, OR NON-INFRINGEMENT.
+//
+//*********************************************************
+
+#include "pch.h"
+#include "MainPage.xaml.h"
+#include "SampleConfiguration.h"
+
+using namespace SDKTemplate;
+
+Platform::Array^ MainPage::scenariosInner = ref new Platform::Array
+{
+ { "Format date and time using long and short", "SDKTemplate.Scenario1_LongAndShortFormats" },
+ { "Format using a string template", "SDKTemplate.Scenario2_StringTemplate" },
+ { "Format using a parameterized template", "SDKTemplate.Scenario3_ParameterizedTemplate" },
+ { "Override the current user's settings", "SDKTemplate.Scenario4_Override" },
+ { "Format using Unicode extensions", "SDKTemplate.Scenario5_UnicodeExtensions" },
+ { "Format using different time zones", "SDKTemplate.Scenario6_TimeZone" }
+};
diff --git a/Samples/DateTimeFormatting/cpp/SampleConfiguration.h b/Samples/DateTimeFormatting/cpp/SampleConfiguration.h
new file mode 100644
index 0000000000..a38ec3cfb6
--- /dev/null
+++ b/Samples/DateTimeFormatting/cpp/SampleConfiguration.h
@@ -0,0 +1,47 @@
+//*********************************************************
+//
+// Copyright (c) Microsoft. All rights reserved.
+// This code is licensed under the MIT License (MIT).
+// THIS CODE IS PROVIDED *AS IS* WITHOUT WARRANTY OF
+// ANY KIND, EITHER EXPRESS OR IMPLIED, INCLUDING ANY
+// IMPLIED WARRANTIES OF FITNESS FOR A PARTICULAR
+// PURPOSE, MERCHANTABILITY, OR NON-INFRINGEMENT.
+//
+//*********************************************************
+
+#pragma once
+#include "pch.h"
+
+namespace SDKTemplate
+{
+ value struct Scenario;
+
+ partial ref class MainPage
+ {
+ internal:
+ static property Platform::String^ FEATURE_NAME
+ {
+ Platform::String^ get()
+ {
+ return "Date and time formatting";
+ }
+ }
+
+ static property Platform::Array^ scenarios
+ {
+ Platform::Array^ get()
+ {
+ return scenariosInner;
+ }
+ }
+
+ private:
+ static Platform::Array^ scenariosInner;
+ };
+
+ public value struct Scenario
+ {
+ Platform::String^ Title;
+ Platform::String^ ClassName;
+ };
+}
diff --git a/Samples/DateTimeFormatting/cpp/Scenario1_LongAndShortFormats.xaml.cpp b/Samples/DateTimeFormatting/cpp/Scenario1_LongAndShortFormats.xaml.cpp
new file mode 100644
index 0000000000..a736cceddc
--- /dev/null
+++ b/Samples/DateTimeFormatting/cpp/Scenario1_LongAndShortFormats.xaml.cpp
@@ -0,0 +1,64 @@
+//*********************************************************
+//
+// Copyright (c) Microsoft. All rights reserved.
+// This code is licensed under the MIT License (MIT).
+// THIS CODE IS PROVIDED *AS IS* WITHOUT WARRANTY OF
+// ANY KIND, EITHER EXPRESS OR IMPLIED, INCLUDING ANY
+// IMPLIED WARRANTIES OF FITNESS FOR A PARTICULAR
+// PURPOSE, MERCHANTABILITY, OR NON-INFRINGEMENT.
+//
+//*********************************************************
+
+#include "pch.h"
+#include "Scenario1_LongAndShortFormats.xaml.h"
+
+using namespace SDKTemplate;
+
+using namespace Platform;
+using namespace Windows::Foundation;
+using namespace Windows::Foundation::Collections;
+using namespace Windows::Globalization;
+using namespace Windows::Globalization::DateTimeFormatting;
+using namespace Windows::UI::Xaml;
+using namespace Windows::UI::Xaml::Controls;
+using namespace Windows::UI::Xaml::Navigation;
+
+Scenario1_LongAndShortFormats::Scenario1_LongAndShortFormats()
+{
+ InitializeComponent();
+}
+
+void Scenario1_LongAndShortFormats::Display()
+{
+ // This scenario uses the Windows.Globalization.DateTimeFormatting.DateTimeFormatter class
+ // in order to display dates and times using basic formatters.
+
+ //Get the current application context language
+ String^ currentLanguage = ApplicationLanguages::Languages->GetAt(0);
+
+ // Formatters for dates and times
+ Array ^dateFormatters = {
+ ref new DateTimeFormatter("shortdate"),
+ ref new DateTimeFormatter("longdate"),
+ ref new DateTimeFormatter("shorttime"),
+ ref new DateTimeFormatter("longtime")
+ };
+
+ // Obtain the date that will be formatted.
+ Windows::Globalization::Calendar^ cal = ref new Windows::Globalization::Calendar();
+ Windows::Foundation::DateTime dateToFormat = cal->GetDateTime();
+
+ // Keep the results here
+ String^ results = "";
+ results = results + "Current application context language: " + currentLanguage + "\n\n";
+
+ // Generate the results.
+ for (auto formatter : dateFormatters)
+ {
+ // Perform the actual formatting.
+ results = results + formatter->Template + ": " + formatter->Format(dateToFormat) + "\n";
+ }
+
+ // Display the results.
+ OutputTextBlock->Text = results;
+}
diff --git a/Samples/DateTimeFormatting/cpp/Scenario1_LongAndShortFormats.xaml.h b/Samples/DateTimeFormatting/cpp/Scenario1_LongAndShortFormats.xaml.h
new file mode 100644
index 0000000000..cdf4159604
--- /dev/null
+++ b/Samples/DateTimeFormatting/cpp/Scenario1_LongAndShortFormats.xaml.h
@@ -0,0 +1,26 @@
+//*********************************************************
+//
+// Copyright (c) Microsoft. All rights reserved.
+// This code is licensed under the MIT License (MIT).
+// THIS CODE IS PROVIDED *AS IS* WITHOUT WARRANTY OF
+// ANY KIND, EITHER EXPRESS OR IMPLIED, INCLUDING ANY
+// IMPLIED WARRANTIES OF FITNESS FOR A PARTICULAR
+// PURPOSE, MERCHANTABILITY, OR NON-INFRINGEMENT.
+//
+//*********************************************************
+
+#pragma once
+
+#include "pch.h"
+#include "Scenario1_LongAndShortFormats.g.h"
+
+namespace SDKTemplate
+{
+ [Windows::Foundation::Metadata::WebHostHidden]
+ public ref class Scenario1_LongAndShortFormats sealed
+ {
+ public:
+ Scenario1_LongAndShortFormats();
+ void Display();
+ };
+}
diff --git a/Samples/DateTimeFormatting/cpp/Scenario2_StringTemplate.xaml.cpp b/Samples/DateTimeFormatting/cpp/Scenario2_StringTemplate.xaml.cpp
new file mode 100644
index 0000000000..5c9f5d3da5
--- /dev/null
+++ b/Samples/DateTimeFormatting/cpp/Scenario2_StringTemplate.xaml.cpp
@@ -0,0 +1,123 @@
+//*********************************************************
+//
+// Copyright (c) Microsoft. All rights reserved.
+// This code is licensed under the MIT License (MIT).
+// THIS CODE IS PROVIDED *AS IS* WITHOUT WARRANTY OF
+// ANY KIND, EITHER EXPRESS OR IMPLIED, INCLUDING ANY
+// IMPLIED WARRANTIES OF FITNESS FOR A PARTICULAR
+// PURPOSE, MERCHANTABILITY, OR NON-INFRINGEMENT.
+//
+//*********************************************************
+
+#include "pch.h"
+#include "Scenario2_StringTemplate.xaml.h"
+
+using namespace SDKTemplate;
+
+using namespace Platform;
+using namespace Windows::Foundation;
+using namespace Windows::Foundation::Collections;
+using namespace Windows::Globalization;
+using namespace Windows::Globalization::DateTimeFormatting;
+using namespace Windows::UI::Xaml;
+using namespace Windows::UI::Xaml::Controls;
+using namespace Windows::UI::Xaml::Navigation;
+
+Scenario2_StringTemplate::Scenario2_StringTemplate()
+{
+ InitializeComponent();
+}
+
+void Scenario2_StringTemplate::Display()
+{
+ // This scenario uses the Windows.Globalization.DateTimeFormatting.DateTimeFormatter class
+ // to format a date/time via a string template. Note that the order specifed in the string pattern does
+ // not determine the order of the parts of the formatted string. The current application language and region value will
+ // determine the pattern of the date returned based on the specified parts.
+
+ //Get the current application context language
+ String^ currentLanguage = ApplicationLanguages::Languages->GetAt(0);
+
+ // Formatters for dates.
+ Array^ dateFormatters = {
+ ref new DateTimeFormatter("month day"),
+ ref new DateTimeFormatter("month year"),
+ ref new DateTimeFormatter("month day year"),
+ ref new DateTimeFormatter("month day dayofweek year"),
+ ref new DateTimeFormatter("dayofweek.abbreviated"),
+ ref new DateTimeFormatter("month.abbreviated"),
+ ref new DateTimeFormatter("year.abbreviated")
+ };
+
+ // Formatters for time.
+ Array^ timeFormatters = {
+ ref new DateTimeFormatter("hour minute"),
+ ref new DateTimeFormatter("hour minute second"),
+ ref new DateTimeFormatter("hour")
+ };
+
+ // Formatters for timezone.
+ Array^ timeZoneFormatters = {
+ ref new DateTimeFormatter("timezone"),
+ ref new DateTimeFormatter("timezone.full"),
+ ref new DateTimeFormatter("timezone.abbreviated")
+ };
+
+ // Formatters for combinations.
+ Array^ combinationFormatters = {
+ ref new DateTimeFormatter("hour minute second timezone.full"),
+ ref new DateTimeFormatter("day month year hour minute timezone"),
+ ref new DateTimeFormatter("dayofweek day month year hour minute second"),
+ ref new DateTimeFormatter("dayofweek.abbreviated day month hour minute"),
+ ref new DateTimeFormatter("dayofweek day month year hour minute second timezone.abbreviated")
+ };
+
+ // Obtain the date that will be formatted.
+ Windows::Globalization::Calendar^ cal = ref new Windows::Globalization::Calendar();
+ Windows::Foundation::DateTime dateToFormat = cal->GetDateTime();
+
+ // Keep the results here
+ String^ results = "";
+ results = results + "Current application context language: " + currentLanguage + "\n\n";
+ results = results + "Dates:\n";
+
+ // Generate the results.
+ for (auto formatter : dateFormatters)
+ {
+ // Perform the actual formatting.
+ results = results + formatter->Template + ": " + formatter->Format(dateToFormat) + "\n";
+ }
+
+ results = results + "\n";
+ results = results + "Times:\n";
+
+ // Generate the results.
+ for (auto formatter : timeFormatters)
+ {
+ // Perform the actual formatting.
+ results = results + formatter->Template + ": " + formatter->Format(dateToFormat) + "\n";
+ }
+
+ results = results + "\n";
+ results = results + "Time zones:\n";
+
+ // Generate the results.
+ for (auto formatter : timeZoneFormatters)
+ {
+ // Perform the actual formatting.
+ results = results + formatter->Template + ": " + formatter->Format(dateToFormat) + "\n";
+ }
+
+ results = results + "\n";
+ results = results + "Date and time combinations:\n";
+
+ // Generate the results.
+ for (auto formatter : combinationFormatters)
+ {
+ // Perform the actual formatting.
+ results = results + formatter->Template + ": " + formatter->Format(dateToFormat) + "\n";
+ }
+
+ // Display the results.
+ OutputTextBlock->Text = results;
+}
diff --git a/Samples/DateTimeFormatting/cpp/Scenario2_StringTemplate.xaml.h b/Samples/DateTimeFormatting/cpp/Scenario2_StringTemplate.xaml.h
new file mode 100644
index 0000000000..2e591f1346
--- /dev/null
+++ b/Samples/DateTimeFormatting/cpp/Scenario2_StringTemplate.xaml.h
@@ -0,0 +1,26 @@
+//*********************************************************
+//
+// Copyright (c) Microsoft. All rights reserved.
+// This code is licensed under the MIT License (MIT).
+// THIS CODE IS PROVIDED *AS IS* WITHOUT WARRANTY OF
+// ANY KIND, EITHER EXPRESS OR IMPLIED, INCLUDING ANY
+// IMPLIED WARRANTIES OF FITNESS FOR A PARTICULAR
+// PURPOSE, MERCHANTABILITY, OR NON-INFRINGEMENT.
+//
+//*********************************************************
+
+#pragma once
+
+#include "pch.h"
+#include "Scenario2_StringTemplate.g.h"
+
+namespace SDKTemplate
+{
+ [Windows::Foundation::Metadata::WebHostHidden]
+ public ref class Scenario2_StringTemplate sealed
+ {
+ public:
+ Scenario2_StringTemplate();
+ void Display();
+ };
+}
diff --git a/Samples/DateTimeFormatting/cpp/Scenario3_ParameterizedTemplate.xaml.cpp b/Samples/DateTimeFormatting/cpp/Scenario3_ParameterizedTemplate.xaml.cpp
new file mode 100644
index 0000000000..d7504d9c28
--- /dev/null
+++ b/Samples/DateTimeFormatting/cpp/Scenario3_ParameterizedTemplate.xaml.cpp
@@ -0,0 +1,114 @@
+//*********************************************************
+//
+// Copyright (c) Microsoft. All rights reserved.
+// This code is licensed under the MIT License (MIT).
+// THIS CODE IS PROVIDED *AS IS* WITHOUT WARRANTY OF
+// ANY KIND, EITHER EXPRESS OR IMPLIED, INCLUDING ANY
+// IMPLIED WARRANTIES OF FITNESS FOR A PARTICULAR
+// PURPOSE, MERCHANTABILITY, OR NON-INFRINGEMENT.
+//
+//*********************************************************
+
+#include "pch.h"
+#include "Scenario3_ParameterizedTemplate.xaml.h"
+
+using namespace SDKTemplate;
+
+using namespace Platform;
+using namespace Windows::Foundation;
+using namespace Windows::Foundation::Collections;
+using namespace Windows::Globalization;
+using namespace Windows::Globalization::DateTimeFormatting;
+using namespace Windows::UI::Xaml;
+using namespace Windows::UI::Xaml::Controls;
+using namespace Windows::UI::Xaml::Navigation;
+
+Scenario3_ParameterizedTemplate::Scenario3_ParameterizedTemplate()
+{
+ InitializeComponent();
+}
+
+void Scenario3_ParameterizedTemplate::Display()
+{
+ // This scenario uses the Windows.Globalization.DateTimeFormatting.DateTimeFormatter class
+ // to format a date/time by specifying a template via parameters. Note that the current application language
+ // language and region value will determine the pattern of the date returned based on the
+ // specified parts.
+
+ //Get the current application context language
+ String^ currentLanguage = ApplicationLanguages::Languages->GetAt(0);
+
+ // Formatters for dates
+ Array^ dateFormatters = {
+ ref new DateTimeFormatter(
+ YearFormat::Full,
+ MonthFormat::Abbreviated,
+ DayFormat::Default,
+ DayOfWeekFormat::Abbreviated),
+
+ ref new DateTimeFormatter(
+ YearFormat::Abbreviated,
+ MonthFormat::Abbreviated,
+ DayFormat::Default,
+ DayOfWeekFormat::None),
+
+ ref new DateTimeFormatter(
+ YearFormat::Full,
+ MonthFormat::Full,
+ DayFormat::None,
+ DayOfWeekFormat::None),
+
+ ref new DateTimeFormatter(
+ YearFormat::None,
+ MonthFormat::Full,
+ DayFormat::Default,
+ DayOfWeekFormat::None),
+ };
+
+ // Formatters for times
+ Array^ timeFormatters = {
+ ref new DateTimeFormatter(
+ HourFormat::Default,
+ MinuteFormat::Default,
+ SecondFormat::Default),
+
+ ref new DateTimeFormatter(
+ HourFormat::Default,
+ MinuteFormat::Default,
+ SecondFormat::None),
+
+ ref new DateTimeFormatter(
+ HourFormat::Default,
+ MinuteFormat::None,
+ SecondFormat::None),
+ };
+
+ // Obtain the date that will be formatted.
+ Windows::Globalization::Calendar^ cal = ref new Windows::Globalization::Calendar();
+ Windows::Foundation::DateTime dateToFormat = cal->GetDateTime();
+
+ // Keep the results here
+ String^ results = "";
+ results = results + "Current application context language: " + currentLanguage + "\n\n";
+ results = results + "Dates:\n";
+
+ // Generate the results.
+ for (auto formatter : dateFormatters)
+ {
+ // Perform the actual formatting.
+ results = results + formatter->Template + ": " + formatter->Format(dateToFormat) + "\n";
+ }
+
+ results = results + "\n";
+ results = results + "Times:\n";
+
+ // Generate the results.
+ for (auto formatter : timeFormatters)
+ {
+ // Perform the actual formatting.
+ results = results + formatter->Template + ": " + formatter->Format(dateToFormat) + "\n";
+ }
+
+ // Display the results.
+ OutputTextBlock->Text = results;
+}
diff --git a/Samples/DateTimeFormatting/cpp/Scenario3_ParameterizedTemplate.xaml.h b/Samples/DateTimeFormatting/cpp/Scenario3_ParameterizedTemplate.xaml.h
new file mode 100644
index 0000000000..f554e480b9
--- /dev/null
+++ b/Samples/DateTimeFormatting/cpp/Scenario3_ParameterizedTemplate.xaml.h
@@ -0,0 +1,26 @@
+//*********************************************************
+//
+// Copyright (c) Microsoft. All rights reserved.
+// This code is licensed under the MIT License (MIT).
+// THIS CODE IS PROVIDED *AS IS* WITHOUT WARRANTY OF
+// ANY KIND, EITHER EXPRESS OR IMPLIED, INCLUDING ANY
+// IMPLIED WARRANTIES OF FITNESS FOR A PARTICULAR
+// PURPOSE, MERCHANTABILITY, OR NON-INFRINGEMENT.
+//
+//*********************************************************
+
+#pragma once
+
+#include "pch.h"
+#include "Scenario3_ParameterizedTemplate.g.h"
+
+namespace SDKTemplate
+{
+ [Windows::Foundation::Metadata::WebHostHidden]
+ public ref class Scenario3_ParameterizedTemplate sealed
+ {
+ public:
+ Scenario3_ParameterizedTemplate();
+ void Display();
+ };
+}
diff --git a/Samples/DateTimeFormatting/cpp/Scenario4_Override.xaml.cpp b/Samples/DateTimeFormatting/cpp/Scenario4_Override.xaml.cpp
new file mode 100644
index 0000000000..b46e1dcea6
--- /dev/null
+++ b/Samples/DateTimeFormatting/cpp/Scenario4_Override.xaml.cpp
@@ -0,0 +1,94 @@
+//*********************************************************
+//
+// Copyright (c) Microsoft. All rights reserved.
+// This code is licensed under the MIT License (MIT).
+// THIS CODE IS PROVIDED *AS IS* WITHOUT WARRANTY OF
+// ANY KIND, EITHER EXPRESS OR IMPLIED, INCLUDING ANY
+// IMPLIED WARRANTIES OF FITNESS FOR A PARTICULAR
+// PURPOSE, MERCHANTABILITY, OR NON-INFRINGEMENT.
+//
+//*********************************************************
+
+#include "pch.h"
+#include "Scenario4_Override.xaml.h"
+
+using namespace SDKTemplate;
+
+using namespace Platform;
+using namespace Platform::Collections;
+using namespace Windows::Foundation;
+using namespace Windows::Foundation::Collections;
+using namespace Windows::Globalization;
+using namespace Windows::Globalization::DateTimeFormatting;
+using namespace Windows::UI::Xaml;
+using namespace Windows::UI::Xaml::Controls;
+using namespace Windows::UI::Xaml::Navigation;
+
+Scenario4_Override::Scenario4_Override()
+{
+ InitializeComponent();
+}
+
+void Scenario4_Override::Display()
+{
+ // This scenario uses the Windows.Globalization.DateTimeFormatting.DateTimeFormatter class
+ // to format a date/time by using a formatter that provides specific languages,
+ // geographic region, calendar and clock
+
+ //Get the current default application context language
+ String^ currentLanguage = ApplicationLanguages::Languages->GetAt(0);
+
+ // Array languages used by the test
+ auto ja = ref new Vector({ "ja-JP" });
+ auto fr = ref new Vector({ "fr-FR" });
+ auto de = ref new Vector({ "de-DE" });
+
+ // Formatters for dates and times
+ Array ^dateFormatters = {
+ ref new DateTimeFormatter("longdate", ja, "JP", CalendarIdentifiers::Japanese, ClockIdentifiers::TwelveHour),
+
+ ref new DateTimeFormatter("month day", fr, "FR", CalendarIdentifiers::Gregorian, ClockIdentifiers::TwentyFourHour),
+
+ ref new DateTimeFormatter(
+ YearFormat::Abbreviated,
+ MonthFormat::Abbreviated,
+ DayFormat::Default,
+ DayOfWeekFormat::None,
+ HourFormat::None,
+ MinuteFormat::None,
+ SecondFormat::None,
+ de, "DE", CalendarIdentifiers::Gregorian, ClockIdentifiers::TwelveHour),
+
+ ref new DateTimeFormatter("longtime", ja, "JP", CalendarIdentifiers::Japanese, ClockIdentifiers::TwelveHour),
+
+ ref new DateTimeFormatter("hour minute", fr, "FR", CalendarIdentifiers::Gregorian, ClockIdentifiers::TwentyFourHour),
+
+ ref new DateTimeFormatter(
+ YearFormat::None,
+ MonthFormat::None,
+ DayFormat::None,
+ DayOfWeekFormat::None,
+ HourFormat::Default,
+ MinuteFormat::Default,
+ SecondFormat::None,
+ de, "DE", CalendarIdentifiers::Gregorian, ClockIdentifiers::TwelveHour)
+ };
+
+ // Obtain the date that will be formatted.
+ Windows::Globalization::Calendar^ cal = ref new Windows::Globalization::Calendar();
+ Windows::Foundation::DateTime dateToFormat = cal->GetDateTime();
+
+ // Keep the results here
+ String^ results = "";
+ results = results + "Current default application context language: " + currentLanguage + "\n\n";
+
+ // Generate the results.
+ for (auto formatter : dateFormatters)
+ {
+ // Perform the actual formatting.
+ results = results + formatter->Template + ": (" + formatter->ResolvedLanguage + ") " + formatter->Format(dateToFormat) + "\n";
+ }
+
+ // Display the results.
+ OutputTextBlock->Text = results;
+}
diff --git a/Samples/DateTimeFormatting/cpp/Scenario4_Override.xaml.h b/Samples/DateTimeFormatting/cpp/Scenario4_Override.xaml.h
new file mode 100644
index 0000000000..78eb34eebb
--- /dev/null
+++ b/Samples/DateTimeFormatting/cpp/Scenario4_Override.xaml.h
@@ -0,0 +1,26 @@
+//*********************************************************
+//
+// Copyright (c) Microsoft. All rights reserved.
+// This code is licensed under the MIT License (MIT).
+// THIS CODE IS PROVIDED *AS IS* WITHOUT WARRANTY OF
+// ANY KIND, EITHER EXPRESS OR IMPLIED, INCLUDING ANY
+// IMPLIED WARRANTIES OF FITNESS FOR A PARTICULAR
+// PURPOSE, MERCHANTABILITY, OR NON-INFRINGEMENT.
+//
+//*********************************************************
+
+#pragma once
+
+#include "pch.h"
+#include "Scenario4_Override.g.h"
+
+namespace SDKTemplate
+{
+ [Windows::Foundation::Metadata::WebHostHidden]
+ public ref class Scenario4_Override sealed
+ {
+ public:
+ Scenario4_Override();
+ void Display();
+ };
+}
diff --git a/Samples/DateTimeFormatting/cpp/Scenario5_UnicodeExtensions.xaml.cpp b/Samples/DateTimeFormatting/cpp/Scenario5_UnicodeExtensions.xaml.cpp
new file mode 100644
index 0000000000..97fbd11be2
--- /dev/null
+++ b/Samples/DateTimeFormatting/cpp/Scenario5_UnicodeExtensions.xaml.cpp
@@ -0,0 +1,106 @@
+//*********************************************************
+//
+// Copyright (c) Microsoft. All rights reserved.
+// This code is licensed under the MIT License (MIT).
+// THIS CODE IS PROVIDED *AS IS* WITHOUT WARRANTY OF
+// ANY KIND, EITHER EXPRESS OR IMPLIED, INCLUDING ANY
+// IMPLIED WARRANTIES OF FITNESS FOR A PARTICULAR
+// PURPOSE, MERCHANTABILITY, OR NON-INFRINGEMENT.
+//
+//*********************************************************
+
+#include "pch.h"
+#include "Scenario5_UnicodeExtensions.xaml.h"
+
+using namespace SDKTemplate;
+
+using namespace Platform;
+using namespace Platform::Collections;
+using namespace Windows::Foundation;
+using namespace Windows::Foundation::Collections;
+using namespace Windows::Globalization;
+using namespace Windows::Globalization::DateTimeFormatting;
+using namespace Windows::UI::Xaml;
+using namespace Windows::UI::Xaml::Controls;
+using namespace Windows::UI::Xaml::Navigation;
+
+Scenario5_UnicodeExtensions::Scenario5_UnicodeExtensions()
+{
+ InitializeComponent();
+}
+
+void Scenario5_UnicodeExtensions::Display()
+{
+ // This scenario uses the Windows.Globalization.DateTimeFormatting.DateTimeFormatter class
+ // to format a date/time by using a formatter that uses unicode extenstion in the specified
+ // language name
+
+ // Get the current application context language
+ String^ currentLanguage = ApplicationLanguages::Languages->GetAt(0);
+
+ // Keep the results here
+ String^ results = "";
+ results += "Current application context language: " + currentLanguage + "\n\n";
+
+ // Formatters for dates and times
+ Array ^dateFormatters = {
+ // Default application context
+ ref new DateTimeFormatter("longdate longtime"),
+
+ // Telugu language, Gregorian Calendar and Latin Numeral System
+ ref new DateTimeFormatter("longdate longtime", ref new Vector({ "te-in-u-ca-gregory-nu-latn", "en-US" })),
+
+ // Hebrew language and Arabic Numeral System - calendar NOT specified in constructor
+ ref new DateTimeFormatter(YearFormat::Default,
+ MonthFormat::Default,
+ DayFormat::Default,
+ DayOfWeekFormat::Default,
+ HourFormat::Default,
+ MinuteFormat::Default,
+ SecondFormat::Default,
+ ref new Vector({ "he-IL-u-nu-arab", "en-US" })),
+ // Hebrew language and calendar - calendar specified in constructor
+ // also, which overrides the one specified in Unicode extension
+ ref new DateTimeFormatter(YearFormat::Default,
+ MonthFormat::Default,
+ DayFormat::Default,
+ DayOfWeekFormat::Default,
+ HourFormat::Default,
+ MinuteFormat::Default,
+ SecondFormat::Default,
+ ref new Vector({ "he-IL-u-ca-hebrew-co-phonebk", "en-US" }),
+ "US",
+ CalendarIdentifiers::Gregorian,
+ ClockIdentifiers::TwentyFourHour),
+ };
+
+ // Obtain the date that will be formatted.
+ Windows::Globalization::Calendar^ cal = ref new Windows::Globalization::Calendar();
+ Windows::Foundation::DateTime dateToFormat = cal->GetDateTime();
+
+ // Format and display date/time along with other relevant properites
+ for (auto formatter : dateFormatters)
+ {
+ // Perform the actual formatting.
+ results += "Result: " + formatter->Format(dateToFormat) + "\n";
+
+ String^ languages = "";
+ for (auto language : formatter->Languages)
+ {
+ if (!languages->IsEmpty())
+ {
+ languages += ", ";
+ }
+ languages += language;
+ }
+
+ results += " Language List: " + languages + "\n" +
+ " Template: " + formatter->Template + "\n" +
+ " Resolved Language: " + formatter->ResolvedLanguage + "\n" +
+ " Calendar System: " + formatter->Calendar + "\n" +
+ " Numeral System: " + formatter->NumeralSystem + "\n\n";
+ }
+
+ // Display the results.
+ OutputTextBlock->Text = results;
+}
diff --git a/Samples/DateTimeFormatting/cpp/Scenario5_UnicodeExtensions.xaml.h b/Samples/DateTimeFormatting/cpp/Scenario5_UnicodeExtensions.xaml.h
new file mode 100644
index 0000000000..0f3d1aa1bb
--- /dev/null
+++ b/Samples/DateTimeFormatting/cpp/Scenario5_UnicodeExtensions.xaml.h
@@ -0,0 +1,26 @@
+//*********************************************************
+//
+// Copyright (c) Microsoft. All rights reserved.
+// This code is licensed under the MIT License (MIT).
+// THIS CODE IS PROVIDED *AS IS* WITHOUT WARRANTY OF
+// ANY KIND, EITHER EXPRESS OR IMPLIED, INCLUDING ANY
+// IMPLIED WARRANTIES OF FITNESS FOR A PARTICULAR
+// PURPOSE, MERCHANTABILITY, OR NON-INFRINGEMENT.
+//
+//*********************************************************
+
+#pragma once
+
+#include "pch.h"
+#include "Scenario5_UnicodeExtensions.g.h"
+
+namespace SDKTemplate
+{
+ [Windows::Foundation::Metadata::WebHostHidden]
+ public ref class Scenario5_UnicodeExtensions sealed
+ {
+ public:
+ Scenario5_UnicodeExtensions();
+ void Display();
+ };
+}
diff --git a/Samples/DateTimeFormatting/cpp/Scenario6_TimeZone.xaml.cpp b/Samples/DateTimeFormatting/cpp/Scenario6_TimeZone.xaml.cpp
new file mode 100644
index 0000000000..463cbd6ee0
--- /dev/null
+++ b/Samples/DateTimeFormatting/cpp/Scenario6_TimeZone.xaml.cpp
@@ -0,0 +1,84 @@
+//*********************************************************
+//
+// Copyright (c) Microsoft. All rights reserved.
+// This code is licensed under the MIT License (MIT).
+// THIS CODE IS PROVIDED *AS IS* WITHOUT WARRANTY OF
+// ANY KIND, EITHER EXPRESS OR IMPLIED, INCLUDING ANY
+// IMPLIED WARRANTIES OF FITNESS FOR A PARTICULAR
+// PURPOSE, MERCHANTABILITY, OR NON-INFRINGEMENT.
+//
+//*********************************************************
+
+#include "pch.h"
+#include "Scenario6_TimeZone.xaml.h"
+
+using namespace SDKTemplate;
+
+using namespace Platform;
+using namespace Platform::Collections;
+using namespace Windows::Foundation;
+using namespace Windows::Foundation::Collections;
+using namespace Windows::Globalization;
+using namespace Windows::Globalization::DateTimeFormatting;
+using namespace Windows::UI::Xaml;
+using namespace Windows::UI::Xaml::Controls;
+using namespace Windows::UI::Xaml::Navigation;
+
+Scenario6_TimeZone::Scenario6_TimeZone()
+{
+ InitializeComponent();
+}
+
+void Scenario6_TimeZone::Display()
+{
+ // This scenario illustrates time zone support in DateTimeFormatter class
+
+ // Displayed time zones (other than local time zone)
+ auto timeZones = ref new Vector({ "UTC", "America/New_York", "Asia/Kolkata" });
+
+ // Keep the results here
+ String^ results = "";
+
+ // Create formatter object using longdate and longtime template
+ DateTimeFormatter^ dateFormatter = ref new DateTimeFormatter("longdate longtime");
+
+ // Create date/time to format and display.
+ Windows::Globalization::Calendar^ calendar = ref new Windows::Globalization::Calendar();
+ Windows::Foundation::DateTime dateToFormat = calendar->GetDateTime();
+
+ // Show current time.
+ results += "Current date and time\n" +
+ "In Local time zone: " + dateFormatter->Format(dateToFormat) + "\n";
+ for (auto timeZone : timeZones)
+ {
+ results += "In " + timeZone + " time zone: " + dateFormatter->Format(dateToFormat, timeZone) + "\n";
+ }
+ results += "\n";
+
+ // Show a time on 14th day of second month of next year.
+ // Note the effect of daylight saving on the results.
+ calendar->AddYears(1); calendar->Month = 2; calendar->Day = 14;
+ dateToFormat = calendar->GetDateTime();
+ results += "Same time on 14th day of second month of next year\n" +
+ "In Local time zone: " + dateFormatter->Format(dateToFormat) + "\n";
+ for (auto timeZone : timeZones)
+ {
+ results += "In " + timeZone + " time zone: " + dateFormatter->Format(dateToFormat, timeZone) + "\n";
+ }
+ results += "\n";
+
+ // Show a time on 14th day of tenth month of next year.
+ // Note the effect of daylight saving on the results.
+ calendar->AddMonths(8);
+ dateToFormat = calendar->GetDateTime();
+ results += "Same time on 14th day of tenth month of next year\n" +
+ "In Local time zone: " + dateFormatter->Format(dateToFormat) + "\n";
+ for (auto timeZone : timeZones)
+ {
+ results += "In " + timeZone + " time zone: " + dateFormatter->Format(dateToFormat, timeZone) + "\n";
+ }
+ results += "\n";
+
+ // Display the results.
+ OutputTextBlock->Text = results;
+}
diff --git a/Samples/DateTimeFormatting/cpp/Scenario6_TimeZone.xaml.h b/Samples/DateTimeFormatting/cpp/Scenario6_TimeZone.xaml.h
new file mode 100644
index 0000000000..dece6650f1
--- /dev/null
+++ b/Samples/DateTimeFormatting/cpp/Scenario6_TimeZone.xaml.h
@@ -0,0 +1,26 @@
+//*********************************************************
+//
+// Copyright (c) Microsoft. All rights reserved.
+// This code is licensed under the MIT License (MIT).
+// THIS CODE IS PROVIDED *AS IS* WITHOUT WARRANTY OF
+// ANY KIND, EITHER EXPRESS OR IMPLIED, INCLUDING ANY
+// IMPLIED WARRANTIES OF FITNESS FOR A PARTICULAR
+// PURPOSE, MERCHANTABILITY, OR NON-INFRINGEMENT.
+//
+//*********************************************************
+
+#pragma once
+
+#include "pch.h"
+#include "Scenario6_TimeZone.g.h"
+
+namespace SDKTemplate
+{
+ [Windows::Foundation::Metadata::WebHostHidden]
+ public ref class Scenario6_TimeZone sealed
+ {
+ public:
+ Scenario6_TimeZone();
+ void Display();
+ };
+}
diff --git a/Samples/DateTimeFormatting/cpp/pch.cpp b/Samples/DateTimeFormatting/cpp/pch.cpp
new file mode 100644
index 0000000000..ade821753a
--- /dev/null
+++ b/Samples/DateTimeFormatting/cpp/pch.cpp
@@ -0,0 +1,5 @@
+//
+// Include the standard header and generate the precompiled header.
+//
+
+#include "pch.h"
diff --git a/Samples/DateTimeFormatting/cpp/pch.h b/Samples/DateTimeFormatting/cpp/pch.h
new file mode 100644
index 0000000000..1dcc72eba4
--- /dev/null
+++ b/Samples/DateTimeFormatting/cpp/pch.h
@@ -0,0 +1,10 @@
+//
+// Header for standard system include files.
+//
+
+#pragma once
+
+#include
+#include
+
+#include "App.xaml.h"
diff --git a/Samples/DateTimeFormatting/cs/DateTimeFormatting.csproj b/Samples/DateTimeFormatting/cs/DateTimeFormatting.csproj
new file mode 100644
index 0000000000..d4bdb982bf
--- /dev/null
+++ b/Samples/DateTimeFormatting/cs/DateTimeFormatting.csproj
@@ -0,0 +1,213 @@
+
+
+
+
+ Debug
+ {DC30CE66-DAEE-4CCF-BD02-8837FE918B6F}
+ AppContainerExe
+ Properties
+ SDKTemplate
+ DateTimeFormatting
+ en-US
+ UAP
+ 10.0.10240.0
+ 10.0.10240.0
+ 14
+ true
+ 512
+ {A5A43C5B-DE2A-4C0C-9213-0A381AF9435A};{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}
+
+
+ true
+ bin\ARM\Debug\
+ DEBUG;TRACE;NETFX_CORE;WINDOWS_UAP
+ ;2008
+ full
+ ARM
+ false
+ prompt
+ true
+
+
+ bin\ARM\Release\
+ TRACE;NETFX_CORE;WINDOWS_UAP
+ true
+ ;2008
+ pdbonly
+ ARM
+ false
+ prompt
+ true
+ true
+
+
+ true
+ bin\x64\Debug\
+ DEBUG;TRACE;NETFX_CORE;WINDOWS_UAP
+ ;2008
+ full
+ x64
+ false
+ prompt
+ true
+
+
+ bin\x64\Release\
+ TRACE;NETFX_CORE;WINDOWS_UAP
+ true
+ ;2008
+ pdbonly
+ x64
+ false
+ prompt
+ true
+ true
+
+
+ true
+ bin\x86\Debug\
+ DEBUG;TRACE;NETFX_CORE;WINDOWS_UAP
+ ;2008
+ full
+ x86
+ false
+ prompt
+ true
+
+
+ bin\x86\Release\
+ TRACE;NETFX_CORE;WINDOWS_UAP
+ true
+ ;2008
+ pdbonly
+ x86
+ false
+ prompt
+ true
+ true
+
+
+
+
+
+
+ App.xaml.cs
+ App.xaml
+
+
+ MainPage.xaml.cs
+ MainPage.xaml
+
+
+ Properties\AssemblyInfo.cs"
+
+
+
+ Scenario1_LongAndShortFormats.xaml
+
+
+ Scenario2_StringTemplate.xaml
+
+
+ Scenario3_ParameterizedTemplate.xaml
+
+
+ Scenario4_Override.xaml
+
+
+ Scenario5_UnicodeExtensions.xaml
+
+
+ Scenario6_TimeZone.xaml
+
+
+
+
+ Designer
+
+
+
+
+ App.xaml
+ MSBuild:Compile
+ Designer
+
+
+ MainPage.xaml
+ MSBuild:Compile
+ Designer
+
+
+ Scenario1_LongAndShortFormats.xaml
+ MSBuild:Compile
+ Designer
+
+
+ Scenario2_StringTemplate.xaml
+ MSBuild:Compile
+ Designer
+
+
+ Scenario3_ParameterizedTemplate.xaml
+ MSBuild:Compile
+ Designer
+
+
+ Scenario4_Override.xaml
+ MSBuild:Compile
+ Designer
+
+
+ Scenario5_UnicodeExtensions.xaml
+ MSBuild:Compile
+ Designer
+
+
+ Scenario6_TimeZone.xaml
+ MSBuild:Compile
+ Designer
+
+
+ Styles\Styles.xaml
+ MSBuild:Compile
+ Designer
+
+
+
+
+ Properties\Default.rd.xml
+
+
+ Assets\microsoft-sdk.png
+
+
+ Assets\smallTile-sdk.png
+
+
+ Assets\splash-sdk.png
+
+
+ Assets\squareTile-sdk.png
+
+
+ Assets\storeLogo-sdk.png
+
+
+ Assets\tile-sdk.png
+
+
+ Assets\windows-sdk.png
+
+
+
+ 14.0
+
+
+
+
\ No newline at end of file
diff --git a/Samples/DateTimeFormatting/cs/DateTimeFormatting.sln b/Samples/DateTimeFormatting/cs/DateTimeFormatting.sln
new file mode 100644
index 0000000000..4a5abf319f
--- /dev/null
+++ b/Samples/DateTimeFormatting/cs/DateTimeFormatting.sln
@@ -0,0 +1,40 @@
+
+Microsoft Visual Studio Solution File, Format Version 12.00
+# Visual Studio 14
+VisualStudioVersion = 14.0.22823.1
+MinimumVisualStudioVersion = 10.0.40219.1
+Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "DateTimeFormatting", "DateTimeFormatting.csproj", "{DC30CE66-DAEE-4CCF-BD02-8837FE918B6F}"
+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
+ {DC30CE66-DAEE-4CCF-BD02-8837FE918B6F}.Debug|ARM.ActiveCfg = Debug|ARM
+ {DC30CE66-DAEE-4CCF-BD02-8837FE918B6F}.Debug|ARM.Build.0 = Debug|ARM
+ {DC30CE66-DAEE-4CCF-BD02-8837FE918B6F}.Debug|ARM.Deploy.0 = Debug|ARM
+ {DC30CE66-DAEE-4CCF-BD02-8837FE918B6F}.Debug|x64.ActiveCfg = Debug|x64
+ {DC30CE66-DAEE-4CCF-BD02-8837FE918B6F}.Debug|x64.Build.0 = Debug|x64
+ {DC30CE66-DAEE-4CCF-BD02-8837FE918B6F}.Debug|x64.Deploy.0 = Debug|x64
+ {DC30CE66-DAEE-4CCF-BD02-8837FE918B6F}.Debug|x86.ActiveCfg = Debug|x86
+ {DC30CE66-DAEE-4CCF-BD02-8837FE918B6F}.Debug|x86.Build.0 = Debug|x86
+ {DC30CE66-DAEE-4CCF-BD02-8837FE918B6F}.Debug|x86.Deploy.0 = Debug|x86
+ {DC30CE66-DAEE-4CCF-BD02-8837FE918B6F}.Release|ARM.ActiveCfg = Release|ARM
+ {DC30CE66-DAEE-4CCF-BD02-8837FE918B6F}.Release|ARM.Build.0 = Release|ARM
+ {DC30CE66-DAEE-4CCF-BD02-8837FE918B6F}.Release|ARM.Deploy.0 = Release|ARM
+ {DC30CE66-DAEE-4CCF-BD02-8837FE918B6F}.Release|x64.ActiveCfg = Release|x64
+ {DC30CE66-DAEE-4CCF-BD02-8837FE918B6F}.Release|x64.Build.0 = Release|x64
+ {DC30CE66-DAEE-4CCF-BD02-8837FE918B6F}.Release|x64.Deploy.0 = Release|x64
+ {DC30CE66-DAEE-4CCF-BD02-8837FE918B6F}.Release|x86.ActiveCfg = Release|x86
+ {DC30CE66-DAEE-4CCF-BD02-8837FE918B6F}.Release|x86.Build.0 = Release|x86
+ {DC30CE66-DAEE-4CCF-BD02-8837FE918B6F}.Release|x86.Deploy.0 = Release|x86
+ EndGlobalSection
+ GlobalSection(SolutionProperties) = preSolution
+ HideSolutionNode = FALSE
+ EndGlobalSection
+EndGlobal
diff --git a/Samples/DateTimeFormatting/cs/Package.appxmanifest b/Samples/DateTimeFormatting/cs/Package.appxmanifest
new file mode 100644
index 0000000000..0828a2ac24
--- /dev/null
+++ b/Samples/DateTimeFormatting/cs/Package.appxmanifest
@@ -0,0 +1,50 @@
+
+
+
+
+
+
+
+
+
+
+ Date Time Formatting C# Sample
+ Microsoft Corporation
+ Assets\StoreLogo-sdk.png
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/Samples/DateTimeFormatting/cs/SampleConfiguration.cs b/Samples/DateTimeFormatting/cs/SampleConfiguration.cs
new file mode 100644
index 0000000000..2e39fa3ba1
--- /dev/null
+++ b/Samples/DateTimeFormatting/cs/SampleConfiguration.cs
@@ -0,0 +1,38 @@
+//*********************************************************
+//
+// Copyright (c) Microsoft. All rights reserved.
+// This code is licensed under the MIT License (MIT).
+// THIS CODE IS PROVIDED *AS IS* WITHOUT WARRANTY OF
+// ANY KIND, EITHER EXPRESS OR IMPLIED, INCLUDING ANY
+// IMPLIED WARRANTIES OF FITNESS FOR A PARTICULAR
+// PURPOSE, MERCHANTABILITY, OR NON-INFRINGEMENT.
+//
+//*********************************************************
+
+using System;
+using System.Collections.Generic;
+using Windows.UI.Xaml.Controls;
+
+namespace SDKTemplate
+{
+ public partial class MainPage : Page
+ {
+ public const string FEATURE_NAME = "Date and time formatting";
+
+ List scenarios = new List
+ {
+ new Scenario() { Title = "Format date and time using long and short", ClassType = typeof(Scenario1_LongAndShortFormats) },
+ new Scenario() { Title = "Format using a string template", ClassType = typeof(Scenario2_StringTemplate) },
+ new Scenario() { Title = "Format using a parameterized template", ClassType = typeof(Scenario3_ParameterizedTemplate) },
+ new Scenario() { Title = "Override the current user's settings", ClassType = typeof(Scenario4_Override) },
+ new Scenario() { Title = "Format using Unicode extensions", ClassType = typeof(Scenario5_UnicodeExtensions) },
+ new Scenario() { Title = "Format using different time zones", ClassType = typeof(Scenario6_TimeZone) }
+ };
+ }
+
+ public class Scenario
+ {
+ public string Title { get; set; }
+ public Type ClassType { get; set; }
+ }
+}
diff --git a/Samples/DateTimeFormatting/cs/Scenario1_LongAndShortFormats.xaml.cs b/Samples/DateTimeFormatting/cs/Scenario1_LongAndShortFormats.xaml.cs
new file mode 100644
index 0000000000..c0dcd598c6
--- /dev/null
+++ b/Samples/DateTimeFormatting/cs/Scenario1_LongAndShortFormats.xaml.cs
@@ -0,0 +1,71 @@
+//*********************************************************
+//
+// Copyright (c) Microsoft. All rights reserved.
+// This code is licensed under the MIT License (MIT).
+// THIS CODE IS PROVIDED *AS IS* WITHOUT WARRANTY OF
+// ANY KIND, EITHER EXPRESS OR IMPLIED, INCLUDING ANY
+// IMPLIED WARRANTIES OF FITNESS FOR A PARTICULAR
+// PURPOSE, MERCHANTABILITY, OR NON-INFRINGEMENT.
+//
+//*********************************************************
+
+using System;
+using System.Collections.Generic;
+using System.Text;
+using Windows.Foundation;
+using Windows.Foundation.Collections;
+using Windows.Globalization;
+using Windows.Globalization.DateTimeFormatting;
+using Windows.UI.Xaml;
+using Windows.UI.Xaml.Controls;
+using Windows.UI.Xaml.Navigation;
+
+namespace SDKTemplate
+{
+ public sealed partial class Scenario1_LongAndShortFormats : Page
+ {
+ public Scenario1_LongAndShortFormats()
+ {
+ this.InitializeComponent();
+ }
+
+ ///
+ /// This is the click handler for the 'Display' button.
+ ///
+ private void Display()
+ {
+ // This scenario uses the Windows.Globalization.DateTimeFormatting.DateTimeFormatter class
+ // in order to display dates and times using basic formatters.
+
+ // We keep results in this variable
+ StringBuilder results = new StringBuilder();
+ results.AppendLine("Current application context language: " + ApplicationLanguages.Languages[0]);
+ results.AppendLine();
+
+ // Create basic date/time formatters.
+ DateTimeFormatter[] basicFormatters = new[]
+ {
+ // Default date formatters
+ new DateTimeFormatter("shortdate"),
+ new DateTimeFormatter("longdate"),
+
+ // Default time formatters
+ new DateTimeFormatter("shorttime"),
+ new DateTimeFormatter("longtime"),
+ };
+
+ // Create date/time to format and display.
+ DateTime dateTime = DateTime.Now;
+
+ // Format and display date/time. Calendar will always support Now. Otherwise you may need to verify dateTime is in supported range.
+ foreach (DateTimeFormatter formatter in basicFormatters)
+ {
+ // Format and display date/time.
+ results.AppendLine(formatter.Template + ": " + formatter.Format(dateTime));
+ }
+
+ // Display the results
+ OutputTextBlock.Text = results.ToString();
+ }
+ }
+}
diff --git a/Samples/DateTimeFormatting/cs/Scenario2_StringTemplate.xaml.cs b/Samples/DateTimeFormatting/cs/Scenario2_StringTemplate.xaml.cs
new file mode 100644
index 0000000000..a53afee1ed
--- /dev/null
+++ b/Samples/DateTimeFormatting/cs/Scenario2_StringTemplate.xaml.cs
@@ -0,0 +1,133 @@
+//*********************************************************
+//
+// Copyright (c) Microsoft. All rights reserved.
+// This code is licensed under the MIT License (MIT).
+// THIS CODE IS PROVIDED *AS IS* WITHOUT WARRANTY OF
+// ANY KIND, EITHER EXPRESS OR IMPLIED, INCLUDING ANY
+// IMPLIED WARRANTIES OF FITNESS FOR A PARTICULAR
+// PURPOSE, MERCHANTABILITY, OR NON-INFRINGEMENT.
+//
+//*********************************************************
+
+using System;
+using System.Text;
+using Windows.Foundation;
+using Windows.Foundation.Collections;
+using Windows.Globalization;
+using Windows.Globalization.DateTimeFormatting;
+using Windows.UI.Xaml;
+using Windows.UI.Xaml.Controls;
+using Windows.UI.Xaml.Navigation;
+
+namespace SDKTemplate
+{
+ public sealed partial class Scenario2_StringTemplate : Page
+ {
+ public Scenario2_StringTemplate()
+ {
+ this.InitializeComponent();
+ }
+
+ ///
+ /// This is the click handler for the 'Display' button.
+ ///
+ private void Display()
+ {
+ // This scenario uses the Windows.Globalization.DateTimeFormatting.DateTimeFormatter class
+ // to format a date/time via a string template. Note that the order specifed in the string pattern does
+ // not determine the order of the parts of the formatted string. The user's language and region preferences will
+ // determine the pattern of the date returned based on the specified parts.
+
+ // Create template-based date/time formatters.
+ DateTimeFormatter[] dateFormatters = new[]
+ {
+ // Formatters for dates.
+ new DateTimeFormatter("month day"),
+ new DateTimeFormatter("month year"),
+ new DateTimeFormatter("month day year"),
+ new DateTimeFormatter("month day dayofweek year"),
+ new DateTimeFormatter("dayofweek.abbreviated"),
+ new DateTimeFormatter("month.abbreviated"),
+ new DateTimeFormatter("year.abbreviated")
+ };
+
+ // Create template-based date/time formatters.
+ DateTimeFormatter[] timeFormatters = new[]
+ {
+ // Formatters for time.
+ new DateTimeFormatter("hour minute"),
+ new DateTimeFormatter("hour minute second"),
+ new DateTimeFormatter("hour")
+ };
+
+ // Create template-based date/time formatters.
+ DateTimeFormatter[] timeZoneFormatters = new[]
+ {
+ // Formatters for time zone.
+ new DateTimeFormatter("timezone"),
+ new DateTimeFormatter("timezone.full"),
+ new DateTimeFormatter("timezone.abbreviated")
+ };
+
+ // Create template-based date/time formatters.
+ DateTimeFormatter[] combinationFormatters = new[]
+ {
+ // Formatters for combinations.
+ new DateTimeFormatter("hour minute second timezone.full"),
+ new DateTimeFormatter("day month year hour minute timezone"),
+ new DateTimeFormatter("dayofweek day month year hour minute second"),
+ new DateTimeFormatter("dayofweek.abbreviated day month hour minute"),
+ new DateTimeFormatter("dayofweek day month year hour minute second timezone.abbreviated"),
+ };
+
+ // Create date/time to format and display.
+ DateTime dateTime = DateTime.Now;
+
+ // We keep results in this variable
+ StringBuilder results = new StringBuilder();
+ results.AppendLine("Current application context language: " + ApplicationLanguages.Languages[0]);
+ results.AppendLine();
+ results.AppendLine("Dates:");
+
+ // Format and display date/time. Calendar always supports Now. Otherwise you may need to verify dateTime is in supported range.
+ foreach (DateTimeFormatter formatter in dateFormatters)
+ {
+ // Format and display date/time.
+ results.AppendLine(formatter.Template + ": " + formatter.Format(dateTime));
+ }
+
+ results.AppendLine();
+ results.AppendLine("Times:");
+
+ // Format and display date/time. Calendar always supports Now. Otherwise you may need to verify dateTime is in supported range.
+ foreach (DateTimeFormatter formatter in timeFormatters)
+ {
+ // Format and display date/time.
+ results.AppendLine(formatter.Template + ": " + formatter.Format(dateTime));
+ }
+
+ results.AppendLine();
+ results.AppendLine("Time zones:");
+
+ // Format and display date/time. Calendar always supports Now. Otherwise you may need to verify dateTime is in supported range.
+ foreach (DateTimeFormatter formatter in timeZoneFormatters)
+ {
+ // Format and display date/time.
+ results.AppendLine(formatter.Template + ": " + formatter.Format(dateTime));
+ }
+
+ results.AppendLine();
+ results.AppendLine("Date and time combinations:");
+
+ // Format and display date/time. Calendar always supports Now. Otherwise you may need to verify dateTime is in supported range.
+ foreach (DateTimeFormatter formatter in combinationFormatters)
+ {
+ // Format and display date/time.
+ results.AppendLine(formatter.Template + ": " + formatter.Format(dateTime));
+ }
+
+ // Display the results
+ OutputTextBlock.Text = results.ToString();
+ }
+ }
+}
diff --git a/Samples/DateTimeFormatting/cs/Scenario3_ParameterizedTemplate.xaml.cs b/Samples/DateTimeFormatting/cs/Scenario3_ParameterizedTemplate.xaml.cs
new file mode 100644
index 0000000000..b5072ffcdb
--- /dev/null
+++ b/Samples/DateTimeFormatting/cs/Scenario3_ParameterizedTemplate.xaml.cs
@@ -0,0 +1,116 @@
+//*********************************************************
+//
+// Copyright (c) Microsoft. All rights reserved.
+// This code is licensed under the MIT License (MIT).
+// THIS CODE IS PROVIDED *AS IS* WITHOUT WARRANTY OF
+// ANY KIND, EITHER EXPRESS OR IMPLIED, INCLUDING ANY
+// IMPLIED WARRANTIES OF FITNESS FOR A PARTICULAR
+// PURPOSE, MERCHANTABILITY, OR NON-INFRINGEMENT.
+//
+//*********************************************************
+
+using System;
+using System.Text;
+using Windows.Foundation;
+using Windows.Foundation.Collections;
+using Windows.Globalization;
+using Windows.Globalization.DateTimeFormatting;
+using Windows.UI.Xaml;
+using Windows.UI.Xaml.Controls;
+using Windows.UI.Xaml.Navigation;
+
+namespace SDKTemplate
+{
+ public sealed partial class Scenario3_ParameterizedTemplate : Page
+ {
+ public Scenario3_ParameterizedTemplate()
+ {
+ this.InitializeComponent();
+ }
+
+ ///
+ /// This is the click handler for the 'Display' button.
+ ///
+ private void Display()
+ {
+ // This scenario uses the Windows.Globalization.DateTimeFormatting.DateTimeFormatter class
+ // to format a date/time by specifying a template via parameters. Note that the user's language
+ // and region preferences will determine the pattern of the date returned based on the
+ // specified parts.
+
+ // We keep results in this variable
+ StringBuilder results = new StringBuilder();
+ results.AppendLine("Current application context language: " + ApplicationLanguages.Languages[0]);
+ results.AppendLine();
+
+ // Create formatters with individual format specifiers for date/time elements.
+ DateTimeFormatter[] dateFormatters = new[]
+ {
+ // Example formatters for dates.
+ new DateTimeFormatter(
+ YearFormat.Full,
+ MonthFormat.Abbreviated,
+ DayFormat.Default,
+ DayOfWeekFormat.Abbreviated),
+ new DateTimeFormatter(
+ YearFormat.Abbreviated,
+ MonthFormat.Abbreviated,
+ DayFormat.Default,
+ DayOfWeekFormat.None),
+ new DateTimeFormatter(
+ YearFormat.Full,
+ MonthFormat.Full,
+ DayFormat.None,
+ DayOfWeekFormat.None),
+ new DateTimeFormatter(
+ YearFormat.None,
+ MonthFormat.Full,
+ DayFormat.Default,
+ DayOfWeekFormat.None)
+ };
+
+ // Create formatters with individual format specifiers for time elements.
+ DateTimeFormatter[] timeFormatters = new[]
+ {
+ // Example formatters for times.
+ new DateTimeFormatter(
+ HourFormat.Default,
+ MinuteFormat.Default,
+ SecondFormat.Default),
+ new DateTimeFormatter(
+ HourFormat.Default,
+ MinuteFormat.Default,
+ SecondFormat.None),
+ new DateTimeFormatter(
+ HourFormat.Default,
+ MinuteFormat.None,
+ SecondFormat.None),
+ };
+
+ // Create date/time to format and display.
+ DateTime dateTime = DateTime.Now;
+
+ results.AppendLine("Dates:");
+
+ // Format and display date/time. Calendar always supports Now. Otherwise you may need to verify dateTime is in supported range.
+ foreach (DateTimeFormatter formatter in dateFormatters)
+ {
+ // Format and display date/time.
+ results.AppendLine(formatter.Template + ": " + formatter.Format(dateTime));
+ }
+
+ results.AppendLine();
+ results.AppendLine("Times:");
+
+ // Format and display date/time. Calendar always supports Now. Otherwise you may need to verify dateTime is in supported range.
+ foreach (DateTimeFormatter formatter in timeFormatters)
+ {
+ // Format and display date/time.
+ results.AppendLine(formatter.Template + ": " + formatter.Format(dateTime));
+ }
+
+ // Display the results
+ OutputTextBlock.Text = results.ToString();
+ }
+ }
+}
diff --git a/Samples/DateTimeFormatting/cs/Scenario4_Override.xaml.cs b/Samples/DateTimeFormatting/cs/Scenario4_Override.xaml.cs
new file mode 100644
index 0000000000..b846dc3945
--- /dev/null
+++ b/Samples/DateTimeFormatting/cs/Scenario4_Override.xaml.cs
@@ -0,0 +1,97 @@
+//*********************************************************
+//
+// Copyright (c) Microsoft. All rights reserved.
+// This code is licensed under the MIT License (MIT).
+// THIS CODE IS PROVIDED *AS IS* WITHOUT WARRANTY OF
+// ANY KIND, EITHER EXPRESS OR IMPLIED, INCLUDING ANY
+// IMPLIED WARRANTIES OF FITNESS FOR A PARTICULAR
+// PURPOSE, MERCHANTABILITY, OR NON-INFRINGEMENT.
+//
+//*********************************************************
+
+using System;
+using System.Text;
+using Windows.Foundation;
+using Windows.Foundation.Collections;
+using Windows.Globalization;
+using Windows.Globalization.DateTimeFormatting;
+using Windows.UI.Xaml;
+using Windows.UI.Xaml.Controls;
+using Windows.UI.Xaml.Navigation;
+
+namespace SDKTemplate
+{
+ public sealed partial class Scenario4_Override : Page
+ {
+ public Scenario4_Override()
+ {
+ this.InitializeComponent();
+ }
+
+ ///
+ /// This is the click handler for the 'Display' button.
+ ///
+ private void Display()
+ {
+ // This scenario uses the Windows.Globalization.DateTimeFormatting.DateTimeFormatter class
+ // to format a date/time by using a formatter that provides specific languages,
+ // geographic region, calendar and clock
+
+ // We keep results in this variable
+ StringBuilder results = new StringBuilder();
+ results.AppendLine("Current default application context language: " + ApplicationLanguages.Languages[0]);
+ results.AppendLine();
+
+ // Create formatters with individual format specifiers for date/time elements.
+ DateTimeFormatter[] templateFormatters = new[]
+ {
+ // Example formatters for dates using string templates.
+ new DateTimeFormatter("longdate", new[] { "ja-JP", "en-US" }, "JP", CalendarIdentifiers.Japanese, ClockIdentifiers.TwelveHour),
+ new DateTimeFormatter("month day", new[] { "fr-FR", "en-US" }, "FR", CalendarIdentifiers.Gregorian, ClockIdentifiers.TwentyFourHour),
+
+ // Example formatters using paranetrized date templates.
+ new DateTimeFormatter(YearFormat.Abbreviated,
+ MonthFormat.Abbreviated,
+ DayFormat.Default,
+ DayOfWeekFormat.None,
+ HourFormat.None,
+ MinuteFormat.None,
+ SecondFormat.None,
+ new[] { "de-DE", "en-US" },
+ "DE",
+ CalendarIdentifiers.Gregorian,
+ ClockIdentifiers.TwelveHour),
+
+ // Example formatters for times.
+ new DateTimeFormatter("longtime", new[] { "ja-JP", "en-US" }, "JP", CalendarIdentifiers.Japanese, ClockIdentifiers.TwelveHour),
+ new DateTimeFormatter("hour minute", new[] { "fr-FR", "en-US" }, "FR", CalendarIdentifiers.Gregorian, ClockIdentifiers.TwentyFourHour),
+
+ // Example formatters using paranetrized time templates.
+ new DateTimeFormatter(YearFormat.None,
+ MonthFormat.None,
+ DayFormat.None,
+ DayOfWeekFormat.None,
+ HourFormat.Default,
+ MinuteFormat.Default,
+ SecondFormat.None,
+ new[] { "de-DE" },
+ "DE",
+ CalendarIdentifiers.Gregorian,
+ ClockIdentifiers.TwelveHour),
+ };
+
+ // Create date/time to format and display.
+ DateTime dateTime = DateTime.Now;
+
+ // Format and display date/time. Calendar always supports Now. Otherwise you may need to verify dateTime is in supported range.
+ foreach (DateTimeFormatter formatter in templateFormatters)
+ {
+ // Format and display date/time.
+ results.AppendLine(formatter.Template + ": (" + formatter.ResolvedLanguage + ") " + formatter.Format(dateTime));
+ }
+
+ // Display the results
+ OutputTextBlock.Text = results.ToString();
+ }
+ }
+}
diff --git a/Samples/DateTimeFormatting/cs/Scenario5_UnicodeExtensions.xaml.cs b/Samples/DateTimeFormatting/cs/Scenario5_UnicodeExtensions.xaml.cs
new file mode 100644
index 0000000000..7ebb6867cf
--- /dev/null
+++ b/Samples/DateTimeFormatting/cs/Scenario5_UnicodeExtensions.xaml.cs
@@ -0,0 +1,96 @@
+//*********************************************************
+//
+// Copyright (c) Microsoft. All rights reserved.
+// This code is licensed under the MIT License (MIT).
+// THIS CODE IS PROVIDED *AS IS* WITHOUT WARRANTY OF
+// ANY KIND, EITHER EXPRESS OR IMPLIED, INCLUDING ANY
+// IMPLIED WARRANTIES OF FITNESS FOR A PARTICULAR
+// PURPOSE, MERCHANTABILITY, OR NON-INFRINGEMENT.
+//
+//*********************************************************
+
+using System;
+using System.Text;
+using Windows.Foundation;
+using Windows.Foundation.Collections;
+using Windows.Globalization;
+using Windows.Globalization.DateTimeFormatting;
+using Windows.UI.Xaml;
+using Windows.UI.Xaml.Controls;
+using Windows.UI.Xaml.Navigation;
+
+namespace SDKTemplate
+{
+ public sealed partial class Scenario5_UnicodeExtensions : Page
+ {
+ public Scenario5_UnicodeExtensions()
+ {
+ this.InitializeComponent();
+ }
+
+ ///
+ /// This is the click handler for the 'Display' button.
+ ///
+ private void Display()
+ {
+ // This scenario uses the Windows.Globalization.DateTimeFormatting.DateTimeFormatter class
+ // to format a date/time by using a formatter that uses Unicode extenstion in the specified
+ // language name
+
+ // We keep results in this variable
+ StringBuilder results = new StringBuilder();
+ results.AppendLine("Current default application context language: " + ApplicationLanguages.Languages[0]);
+ results.AppendLine();
+
+ // Create formatters using various types of constructors specifying Language list with unicode extension in language names
+ DateTimeFormatter[] unicodeExtensionFormatters = new[]
+ {
+ // Default application context
+ new DateTimeFormatter("longdate longtime"),
+ // Telugu language, Gregorian Calendar and Latin Numeral System
+ new DateTimeFormatter("longdate longtime", new[] { "te-in-u-ca-gregory-nu-latn", "en-US" }),
+ // Hebrew language and Arabic Numeral System - calendar NOT specified in constructor
+ new DateTimeFormatter(YearFormat.Default,
+ MonthFormat.Default,
+ DayFormat.Default,
+ DayOfWeekFormat.Default,
+ HourFormat.Default,
+ MinuteFormat.Default,
+ SecondFormat.Default,
+ new[] { "he-IL-u-nu-arab", "en-US" }),
+ // Hebrew language and calendar - calendar specified in constructor
+ // also, which overrides the one specified in Unicode extension
+ new DateTimeFormatter(YearFormat.Default,
+ MonthFormat.Default,
+ DayFormat.Default,
+ DayOfWeekFormat.Default,
+ HourFormat.Default,
+ MinuteFormat.Default,
+ SecondFormat.Default,
+ new[] { "he-IL-u-ca-hebrew-co-phonebk", "en-US" },
+ "US",
+ CalendarIdentifiers.Gregorian,
+ ClockIdentifiers.TwentyFourHour),
+ };
+
+ // Create date/time to format and display.
+ DateTime dateTime = DateTime.Now;
+
+ // Format and display date/time along with other relevant properites
+ foreach (DateTimeFormatter formatter in unicodeExtensionFormatters)
+ {
+ // Perform the actual formatting.
+ results.AppendLine("Result: " + formatter.Format(dateTime));
+ results.AppendLine(" Language List: " + string.Join(", ", formatter.Languages));
+ results.AppendLine(" Template: " + formatter.Template);
+ results.AppendLine(" Resolved Language: " + formatter.ResolvedLanguage);
+ results.AppendLine(" Calendar System: " + formatter.Calendar);
+ results.AppendLine(" Numeral System: " + formatter.NumeralSystem);
+ results.AppendLine();
+ }
+
+ // Display the results
+ OutputTextBlock.Text = results.ToString();
+ }
+ }
+}
diff --git a/Samples/DateTimeFormatting/cs/Scenario6_TimeZone.xaml.cs b/Samples/DateTimeFormatting/cs/Scenario6_TimeZone.xaml.cs
new file mode 100644
index 0000000000..612eb08781
--- /dev/null
+++ b/Samples/DateTimeFormatting/cs/Scenario6_TimeZone.xaml.cs
@@ -0,0 +1,85 @@
+//*********************************************************
+//
+// Copyright (c) Microsoft. All rights reserved.
+// This code is licensed under the MIT License (MIT).
+// THIS CODE IS PROVIDED *AS IS* WITHOUT WARRANTY OF
+// ANY KIND, EITHER EXPRESS OR IMPLIED, INCLUDING ANY
+// IMPLIED WARRANTIES OF FITNESS FOR A PARTICULAR
+// PURPOSE, MERCHANTABILITY, OR NON-INFRINGEMENT.
+//
+//*********************************************************
+
+using System;
+using System.Text;
+using Windows.Foundation;
+using Windows.Foundation.Collections;
+using Windows.Globalization;
+using Windows.Globalization.DateTimeFormatting;
+using Windows.UI.Xaml;
+using Windows.UI.Xaml.Controls;
+using Windows.UI.Xaml.Navigation;
+
+namespace SDKTemplate
+{
+ public sealed partial class Scenario6_TimeZone : Page
+ {
+ public Scenario6_TimeZone()
+ {
+ this.InitializeComponent();
+ }
+
+ ///
+ /// This is the click handler for the 'Display' button.
+ ///
+ private void Display()
+ {
+ // This scenario illustrates time zone support in DateTimeFormatter class
+
+ // Displayed time zones (other than local time zone)
+ String[] timeZones = new String[] { "UTC", "America/New_York", "Asia/Kolkata" };
+
+ // Store results here.
+ StringBuilder results = new StringBuilder();
+
+ // Create formatter object using longdate and longtime template
+ DateTimeFormatter formatter = new DateTimeFormatter("longdate longtime");
+
+ // Create date/time to format and display.
+ DateTime dateTime = DateTime.Now;
+
+ // Show current time.
+ results.AppendLine("Current date and time");
+ results.AppendLine("In Local time zone: " + formatter.Format(dateTime));
+ foreach (String timeZone in timeZones)
+ {
+ results.AppendLine("In " + timeZone + " time zone: " + formatter.Format(dateTime, timeZone));
+ }
+ results.AppendLine();
+
+ // Show a time on 14th day of second month of next year.
+ // Note the effect of daylight saving on the results.
+ results.AppendLine("Same time on 14th day of second month of next year");
+ dateTime = new DateTime(dateTime.Year + 1, 2, 14, dateTime.Hour, dateTime.Minute, dateTime.Second);
+ results.AppendLine("In Local time zone: " + formatter.Format(dateTime));
+ foreach (String timeZone in timeZones)
+ {
+ results.AppendLine("In " + timeZone + " time zone: " + formatter.Format(dateTime, timeZone));
+ }
+ results.AppendLine();
+
+ // Show a time on 14th day of tenth month of next year.
+ // Note the effect of daylight saving on the results.
+ results.AppendLine("Same time on 14th day of tenth month of next year");
+ dateTime = dateTime.AddMonths(8);
+ results.AppendLine("In Local time zone: " + formatter.Format(dateTime));
+ foreach (String timeZone in timeZones)
+ {
+ results.AppendLine("In " + timeZone + " time zone: " + formatter.Format(dateTime, timeZone));
+ }
+ results.AppendLine();
+
+ // Display the results
+ OutputTextBlock.Text = results.ToString();
+ }
+ }
+}
diff --git a/Samples/DateTimeFormatting/cs/project.json b/Samples/DateTimeFormatting/cs/project.json
new file mode 100644
index 0000000000..c594939270
--- /dev/null
+++ b/Samples/DateTimeFormatting/cs/project.json
@@ -0,0 +1,16 @@
+{
+ "dependencies": {
+ "Microsoft.NETCore.UniversalWindowsPlatform": "5.0.0"
+ },
+ "frameworks": {
+ "uap10.0": {}
+ },
+ "runtimes": {
+ "win10-arm": {},
+ "win10-arm-aot": {},
+ "win10-x86": {},
+ "win10-x86-aot": {},
+ "win10-x64": {},
+ "win10-x64-aot": {}
+ }
+}
\ No newline at end of file
diff --git a/Samples/DateTimeFormatting/js/DateTimeFormatting.jsproj b/Samples/DateTimeFormatting/js/DateTimeFormatting.jsproj
new file mode 100644
index 0000000000..034064779d
--- /dev/null
+++ b/Samples/DateTimeFormatting/js/DateTimeFormatting.jsproj
@@ -0,0 +1,149 @@
+
+
+
+
+ Debug
+ AnyCPU
+
+
+ Debug
+ ARM
+
+
+ Debug
+ x64
+
+
+ Debug
+ x86
+
+
+ Release
+ AnyCPU
+
+
+ Release
+ ARM
+
+
+ Release
+ x64
+
+
+ Release
+ x86
+
+
+
+ c2adb9af-edb3-4e57-8056-9d0531d4a6b2
+
+
+
+ 14.0
+
+
+
+
+ UAP
+ 10.0.10240.0
+ 10.0.10240.0
+ $(VersionNumberMajor).$(VersionNumberMinor)
+ en-US
+
+
+
+ Designer
+
+
+ default.html
+
+
+
+
+
+
+
+
+ images\microsoft-sdk.png
+
+
+ images\smallTile-sdk.png
+
+
+ images\splash-sdk.png
+
+
+ images\storeLogo-sdk.png
+
+
+ images\tile-sdk.png
+
+
+ images\windows-sdk.png
+
+
+ js\default.js
+
+
+ css\default.css
+
+
+
+
+
+
+
+
+
+ Microsoft.WinJS.4.0\css\ui-dark.css
+
+
+ Microsoft.WinJS.4.0\css\ui-light.css
+
+
+ Microsoft.WinJS.4.0\js\en-US\ui.strings.js
+
+
+ Microsoft.WinJS.4.0\js\WinJS.intellisense-setup.js
+
+
+ Microsoft.WinJS.4.0\js\WinJS.intellisense.js
+
+
+ Microsoft.WinJS.4.0\fonts\Symbols.ttf
+
+
+ Microsoft.WinJS.4.0\js\base.js
+
+
+ Microsoft.WinJS.4.0\js\ui.js
+
+
+ sample-utils\footer.html
+
+
+ sample-utils\header.html
+
+
+ sample-utils\sample-utils.js
+
+
+ sample-utils\scenario-select.css
+
+
+ sample-utils\scenario-select.html
+
+
+
+
+
\ No newline at end of file
diff --git a/Samples/DateTimeFormatting/js/DateTimeFormatting.sln b/Samples/DateTimeFormatting/js/DateTimeFormatting.sln
new file mode 100644
index 0000000000..eed294774c
--- /dev/null
+++ b/Samples/DateTimeFormatting/js/DateTimeFormatting.sln
@@ -0,0 +1,48 @@
+
+Microsoft Visual Studio Solution File, Format Version 12.00
+# Visual Studio 14
+VisualStudioVersion = 14.0.22823.1
+MinimumVisualStudioVersion = 10.0.40219.1
+Project("{262852C6-CD72-467D-83FE-5EEB1973A190}") = "DateTimeFormatting", "DateTimeFormatting.jsproj", "{C2ADB9AF-EDB3-4E57-8056-9D0531D4A6B2}"
+EndProject
+Global
+ GlobalSection(SolutionConfigurationPlatforms) = preSolution
+ Debug|Any CPU = Debug|Any CPU
+ Debug|ARM = Debug|ARM
+ Debug|x64 = Debug|x64
+ Debug|x86 = Debug|x86
+ Release|Any CPU = Release|Any CPU
+ Release|ARM = Release|ARM
+ Release|x64 = Release|x64
+ Release|x86 = Release|x86
+ EndGlobalSection
+ GlobalSection(ProjectConfigurationPlatforms) = postSolution
+ {C2ADB9AF-EDB3-4E57-8056-9D0531D4A6B2}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
+ {C2ADB9AF-EDB3-4E57-8056-9D0531D4A6B2}.Debug|Any CPU.Build.0 = Debug|Any CPU
+ {C2ADB9AF-EDB3-4E57-8056-9D0531D4A6B2}.Debug|Any CPU.Deploy.0 = Debug|Any CPU
+ {C2ADB9AF-EDB3-4E57-8056-9D0531D4A6B2}.Debug|ARM.ActiveCfg = Debug|ARM
+ {C2ADB9AF-EDB3-4E57-8056-9D0531D4A6B2}.Debug|ARM.Build.0 = Debug|ARM
+ {C2ADB9AF-EDB3-4E57-8056-9D0531D4A6B2}.Debug|ARM.Deploy.0 = Debug|ARM
+ {C2ADB9AF-EDB3-4E57-8056-9D0531D4A6B2}.Debug|x64.ActiveCfg = Debug|x64
+ {C2ADB9AF-EDB3-4E57-8056-9D0531D4A6B2}.Debug|x64.Build.0 = Debug|x64
+ {C2ADB9AF-EDB3-4E57-8056-9D0531D4A6B2}.Debug|x64.Deploy.0 = Debug|x64
+ {C2ADB9AF-EDB3-4E57-8056-9D0531D4A6B2}.Debug|x86.ActiveCfg = Debug|x86
+ {C2ADB9AF-EDB3-4E57-8056-9D0531D4A6B2}.Debug|x86.Build.0 = Debug|x86
+ {C2ADB9AF-EDB3-4E57-8056-9D0531D4A6B2}.Debug|x86.Deploy.0 = Debug|x86
+ {C2ADB9AF-EDB3-4E57-8056-9D0531D4A6B2}.Release|Any CPU.ActiveCfg = Release|Any CPU
+ {C2ADB9AF-EDB3-4E57-8056-9D0531D4A6B2}.Release|Any CPU.Build.0 = Release|Any CPU
+ {C2ADB9AF-EDB3-4E57-8056-9D0531D4A6B2}.Release|Any CPU.Deploy.0 = Release|Any CPU
+ {C2ADB9AF-EDB3-4E57-8056-9D0531D4A6B2}.Release|ARM.ActiveCfg = Release|ARM
+ {C2ADB9AF-EDB3-4E57-8056-9D0531D4A6B2}.Release|ARM.Build.0 = Release|ARM
+ {C2ADB9AF-EDB3-4E57-8056-9D0531D4A6B2}.Release|ARM.Deploy.0 = Release|ARM
+ {C2ADB9AF-EDB3-4E57-8056-9D0531D4A6B2}.Release|x64.ActiveCfg = Release|x64
+ {C2ADB9AF-EDB3-4E57-8056-9D0531D4A6B2}.Release|x64.Build.0 = Release|x64
+ {C2ADB9AF-EDB3-4E57-8056-9D0531D4A6B2}.Release|x64.Deploy.0 = Release|x64
+ {C2ADB9AF-EDB3-4E57-8056-9D0531D4A6B2}.Release|x86.ActiveCfg = Release|x86
+ {C2ADB9AF-EDB3-4E57-8056-9D0531D4A6B2}.Release|x86.Build.0 = Release|x86
+ {C2ADB9AF-EDB3-4E57-8056-9D0531D4A6B2}.Release|x86.Deploy.0 = Release|x86
+ EndGlobalSection
+ GlobalSection(SolutionProperties) = preSolution
+ HideSolutionNode = FALSE
+ EndGlobalSection
+EndGlobal
diff --git a/Samples/DateTimeFormatting/js/Microsoft.WinJS.4.0/css/placeholder.txt b/Samples/DateTimeFormatting/js/Microsoft.WinJS.4.0/css/placeholder.txt
new file mode 100644
index 0000000000..e69de29bb2
diff --git a/Samples/DateTimeFormatting/js/Microsoft.WinJS.4.0/fonts/placeholder b/Samples/DateTimeFormatting/js/Microsoft.WinJS.4.0/fonts/placeholder
new file mode 100644
index 0000000000..e69de29bb2
diff --git a/Samples/DateTimeFormatting/js/Microsoft.WinJS.4.0/js/en-US/placeholder.txt b/Samples/DateTimeFormatting/js/Microsoft.WinJS.4.0/js/en-US/placeholder.txt
new file mode 100644
index 0000000000..e69de29bb2
diff --git a/Samples/DateTimeFormatting/js/Package.appxmanifest b/Samples/DateTimeFormatting/js/Package.appxmanifest
new file mode 100644
index 0000000000..cb322ef343
--- /dev/null
+++ b/Samples/DateTimeFormatting/js/Package.appxmanifest
@@ -0,0 +1,48 @@
+
+
+
+
+
+
+
+
+ Date Time Formatting JS Sample
+ Microsoft Corporation
+ images\storelogo-sdk.png
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/Samples/DateTimeFormatting/js/css/placeholder.txt b/Samples/DateTimeFormatting/js/css/placeholder.txt
new file mode 100644
index 0000000000..e69de29bb2
diff --git a/Samples/DateTimeFormatting/js/html/scenario1-longAndShortFormats.html b/Samples/DateTimeFormatting/js/html/scenario1-longAndShortFormats.html
new file mode 100644
index 0000000000..9b9dec3f4b
--- /dev/null
+++ b/Samples/DateTimeFormatting/js/html/scenario1-longAndShortFormats.html
@@ -0,0 +1,36 @@
+
+
+
+
+
+
+
+
+
+
+
Description:
+
+
+ Formats the current date and time using
+ the Long and Short formats. These formats represent conventional
+ presentation forms for date and time and are useful when presenting
+ standard date and times. The available formats are shown in Settings
+ under Time & Language.
+
+
+ By default the dates and times are formatted according to the conventions
+ of the current application language.
+ (In the case of this sample, only a single default language is supported.)
+ For a localized application, the current language is determined by
+ the user's language preferences.
+
+ Formats the current date and time using
+ custom formats that are specified using a template string.
+ This can be used when the requirements for the
+ date presentation do not match the “short” or “long” form.
+
+
+ For example, if the app requires only a month and a day
+ or a month and a year,
+ or needs to combine date and times with time zone information,
+ this method allows the app to present only those date elements
+ in a format that respects the user's preferences.
+
+ Formats the current date and time using
+ custom formats that are specified using a parameterized template.
+ This
+ method for formatting dates or times can be used when the requirements
+ for the date presentation do not match the "short" or "long" form. For
+ example, if the app requires only a month and a day or a
+ month and a year, this method allows the app to present only
+ those date elements in a format that respects the user's
+ preferences.
+
+
+ By default the dates and times are formatted
+ according to the conventions of the current application language.
+ (In the case of this sample, only a single default language is supported.)
+ For a localized application,
+ the current language is determined by the user's language preferences.
+
+ Formats dates and times by overriding the
+ user's default global context. This method is used when an app
+ presents dates or times that reflect
+ settings different from the user's current defaults. You can
+ specifying overrides for language(s), region, clock, and calendar.
+
+ Format dates and times by using Unicode
+ extensions in specified languages, overriding the user’s default global
+ context if applicable. This method is used when an app
+ presents dates or times that reflect different
+ settings from the user’s current defaults by specifying the overrides
+ directly as extensions in language tags.
+