├── .gitignore
├── CONTRIBUTING.md
├── LICENSE
├── README.md
├── Wiki
└── Tiles
│ └── GroupsAndSubgroups
│ ├── GroupsDesktop.png
│ └── GroupsTablet.png
├── Windows 10
├── GenerateNugetPackage.bat
├── LICENSE
├── NotificationsExtensions.SampleApp
│ ├── App.xaml
│ ├── App.xaml.cs
│ ├── Assets
│ │ ├── Apps
│ │ │ └── Weather
│ │ │ │ ├── Cloudy-Square.png
│ │ │ │ ├── Cloudy.png
│ │ │ │ ├── Drizzle-Square.png
│ │ │ │ ├── Drizzle.png
│ │ │ │ ├── Haze-Square.png
│ │ │ │ ├── Haze.png
│ │ │ │ ├── Mostly Cloudy-Background.jpg
│ │ │ │ ├── Mostly Cloudy-Square.png
│ │ │ │ ├── Mostly Cloudy.png
│ │ │ │ ├── Slight Drizzle-Square.png
│ │ │ │ ├── Slight Drizzle.png
│ │ │ │ ├── Snow-Square.png
│ │ │ │ ├── Snow.png
│ │ │ │ ├── Sunny-Square.png
│ │ │ │ ├── Sunny.png
│ │ │ │ ├── Thunderstorms-Square.png
│ │ │ │ └── Thunderstorms.png
│ │ ├── Images
│ │ │ └── map.jpg
│ │ ├── Logo.scale-100.png
│ │ ├── Samples
│ │ │ ├── Tiles
│ │ │ │ ├── CirclePeek.png
│ │ │ │ ├── HeavyOverlay.png
│ │ │ │ ├── PeekAndBackground.png
│ │ │ │ └── PeekOverlay.png
│ │ │ └── Toasts
│ │ │ │ ├── CustomSnoozeAndDismissText.jpg
│ │ │ │ ├── CustomSnoozeTimes.jpg
│ │ │ │ ├── LoopingAudio.jpg
│ │ │ │ ├── QuickReply.jpg
│ │ │ │ ├── RS1StyleToast.jpg
│ │ │ │ ├── SystemSnoozeAndDismiss.jpg
│ │ │ │ ├── UnderConstruction.jpg
│ │ │ │ └── WeatherToast.jpg
│ │ ├── SmallLogo.scale-100.png
│ │ ├── SplashScreen.scale-100.png
│ │ ├── StoreLogo.scale-100.png
│ │ ├── WideLogo.scale-100.png
│ │ └── next.png
│ ├── LICENSE
│ ├── MainPage.xaml
│ ├── MainPage.xaml.cs
│ ├── NotificationsExtensions.SampleApp.csproj
│ ├── Package.appxmanifest
│ ├── Properties
│ │ ├── AssemblyInfo.cs
│ │ └── Default.rd.xml
│ ├── TilesPage.xaml
│ ├── TilesPage.xaml.cs
│ ├── ToastsPage.xaml
│ ├── ToastsPage.xaml.cs
│ ├── XboxModernTile.cs
│ └── project.json
├── NotificationsExtensions.SampleJavascriptApp
│ ├── LICENSE
│ ├── NotificationsExtensions.SampleJavascriptApp.jsproj
│ ├── WinJS
│ │ ├── css
│ │ │ ├── ui-dark.css
│ │ │ └── ui-light.css
│ │ ├── fonts
│ │ │ └── Symbols.ttf
│ │ └── js
│ │ │ ├── WinJS.intellisense-setup.js
│ │ │ ├── WinJS.intellisense.js
│ │ │ ├── WinJS.js
│ │ │ └── en-US
│ │ │ └── ui.strings.js
│ ├── css
│ │ └── default.css
│ ├── default.html
│ ├── images
│ │ ├── logo.scale-100.png
│ │ ├── smalllogo.scale-100.png
│ │ ├── splashscreen.scale-100.png
│ │ └── storelogo.scale-100.png
│ ├── js
│ │ └── default.js
│ ├── package.appxmanifest
│ └── project.json
├── NotificationsExtensions.Test
│ ├── AssertHelper.cs
│ ├── LICENSE
│ ├── NotificationsExtensions.Test.projitems
│ ├── NotificationsExtensions.Test.shproj
│ ├── TestMail.cs
│ ├── TestMailLegacy.cs
│ ├── TestWeather.cs
│ ├── TestWeatherLegacy.cs
│ ├── Test_Adaptive_Xml.cs
│ ├── Test_Badge_Xml.cs
│ ├── Test_Tile_Xml.cs
│ ├── Test_ToastV2_Xml.cs
│ ├── Test_Toast_Xml.cs
│ ├── TextXboxModern.cs
│ └── TextXboxModernLegacy.cs
├── NotificationsExtensions.WIn10.Test.NETCore
│ ├── LICENSE
│ ├── NotificationsExtensions.Win10.Test.NETCore.csproj
│ ├── Properties
│ │ └── AssemblyInfo.cs
│ └── project.json
├── NotificationsExtensions.Win10.JavaScript.nuspec
├── NotificationsExtensions.Win10.JavaScript.targets
├── NotificationsExtensions.Win10.NETCore
│ ├── LICENSE
│ ├── NotificationsExtensions.Win10.NETCore.csproj
│ ├── Properties
│ │ └── AssemblyInfo.cs
│ └── project.json
├── NotificationsExtensions.Win10.Portable
│ ├── LICENSE
│ ├── NotificationsExtensions.Win10.Portable.csproj
│ ├── Properties
│ │ └── AssemblyInfo.cs
│ └── README.md
├── NotificationsExtensions.Win10.Test.Portable
│ ├── LICENSE
│ ├── NotificationsExtensions.Win10.Test.Portable.csproj
│ └── Properties
│ │ └── AssemblyInfo.cs
├── NotificationsExtensions.Win10.UWP
│ ├── NotificationsExtensions.Win10.UWP.csproj
│ ├── Properties
│ │ ├── AssemblyInfo.cs
│ │ └── NotificationsExtensions.Win10.UWP.rd.xml
│ └── project.json
├── NotificationsExtensions.Win10.WinRT
│ ├── LICENSE
│ ├── NotificationsExtensions.Win10.WinRT.csproj
│ ├── Properties
│ │ └── AssemblyInfo.cs
│ ├── README.md
│ └── project.json
├── NotificationsExtensions.Win10.native.targets
├── NotificationsExtensions.Win10.nuspec
├── NotificationsExtensions.Win10.sln
├── NotificationsExtensions
│ ├── Adaptive
│ │ ├── AdaptiveGroup.cs
│ │ ├── AdaptiveHelper.cs
│ │ ├── AdaptiveImage.cs
│ │ ├── AdaptiveImageEnums.cs
│ │ ├── AdaptiveSubgroup.cs
│ │ ├── AdaptiveSubgroupEnums.cs
│ │ ├── AdaptiveText.cs
│ │ ├── AdaptiveTextEnums.cs
│ │ ├── BaseImageHelper.cs
│ │ ├── BaseTextHelper.cs
│ │ ├── ChildrenInterfaces.cs
│ │ ├── Elements
│ │ │ ├── Element_AdaptiveGroup.cs
│ │ │ ├── Element_AdaptiveImage.cs
│ │ │ ├── Element_AdaptiveImageEnums.cs
│ │ │ ├── Element_AdaptiveSubgroup.cs
│ │ │ └── Element_AdaptiveText.cs
│ │ ├── IAdaptiveCollection.cs
│ │ ├── IBaseImage.cs
│ │ └── IBaseText.cs
│ ├── Badges
│ │ └── BadgeContent.cs
│ ├── Common
│ │ ├── Common.cs
│ │ └── ContentInterfaces.cs
│ ├── LICENSE
│ ├── NotificationsExtensions.projitems
│ ├── NotificationsExtensions.shproj
│ ├── Tiles
│ │ ├── Adaptive
│ │ │ ├── Common.cs
│ │ │ ├── TileBindingContentAdaptive.cs
│ │ │ ├── TileGroup.cs
│ │ │ ├── TileImage.cs
│ │ │ ├── TileSubgroup.cs
│ │ │ ├── TileText.cs
│ │ │ ├── TileTextAlign.cs
│ │ │ └── TileTextStyle.cs
│ │ ├── Common.cs
│ │ ├── Elements
│ │ │ ├── Common.cs
│ │ │ ├── Element_Tile.cs
│ │ │ ├── Element_TileBinding.cs
│ │ │ ├── Element_TileGroup.cs
│ │ │ ├── Element_TileImage.cs
│ │ │ ├── Element_TileSubgroup.cs
│ │ │ ├── Element_TileText.cs
│ │ │ └── Element_TileVisual.cs
│ │ ├── SpecialTemplates
│ │ │ ├── TileBindingContentContact.cs
│ │ │ ├── TileBindingContentIconic.cs
│ │ │ ├── TileBindingContentPeople.cs
│ │ │ └── TileBindingContentPhotos.cs
│ │ ├── TileBasicText.cs
│ │ ├── TileBinding.cs
│ │ ├── TileBranding.cs
│ │ ├── TileContent.cs
│ │ ├── TileImageSource.cs
│ │ ├── TileTemplateNameV1.cs
│ │ ├── TileTemplateNameV3.cs
│ │ └── TileVisual.cs
│ └── Toasts
│ │ ├── Common.cs
│ │ ├── Elements
│ │ ├── Element_Toast.cs
│ │ ├── Element_ToastAction.cs
│ │ ├── Element_ToastActions.cs
│ │ ├── Element_ToastAudio.cs
│ │ ├── Element_ToastBinding.cs
│ │ ├── Element_ToastImage.cs
│ │ ├── Element_ToastInput.cs
│ │ ├── Element_ToastSelection.cs
│ │ ├── Element_ToastText.cs
│ │ └── Element_ToastVisual.cs
│ │ ├── ToastActions.cs
│ │ ├── ToastAppLogo.cs
│ │ ├── ToastAppLogoEnums.cs
│ │ ├── ToastAudio.cs
│ │ ├── ToastBindingGeneric.cs
│ │ ├── ToastButton.cs
│ │ ├── ToastContent.cs
│ │ ├── ToastContextMenuItem.cs
│ │ ├── ToastGenericAppLogo.cs
│ │ ├── ToastGenericAppLogoEnums.cs
│ │ ├── ToastGenericAttributionText.cs
│ │ ├── ToastGenericHeroImage.cs
│ │ ├── ToastImage.cs
│ │ ├── ToastImageSource.cs
│ │ ├── ToastSelectionBox.cs
│ │ ├── ToastSelectionBoxItem.cs
│ │ ├── ToastText.cs
│ │ ├── ToastTextBox.cs
│ │ └── ToastVisual.cs
└── README.md
└── Windows 8.1 RT
├── LICENSE
├── NotificationsExtensions.WinRT.sln
├── NotificationsExtensions.WinRT
├── BadgeContent
│ └── BadgeContent.cs
├── Common.cs
├── ContentInterfaces.cs
├── LICENSE
├── NotificationsExtensions.WinRT.csproj
├── Properties
│ └── AssemblyInfo.cs
├── TileContent
│ └── TileContent.cs
└── ToastContent
│ └── ToastContent.cs
└── README.md
/CONTRIBUTING.md:
--------------------------------------------------------------------------------
1 | # How to contribute
2 |
3 | NotificationsExtensions is written by Microsoft, but we're glad to have you help contribute to the library! There are three ways to contribute...
4 |
5 | - Report bugs (open a new issue)
6 | - Request features (open a new issue)
7 | - Fix bugs/add features (open a pull request)
8 |
9 |
10 | ## Reporting Bugs
11 |
12 | If you find a bug in the library, go to the Issues section of the GitHub, and create a new issue. Label it as "bug".
13 |
14 |
15 | ## Requesting Features
16 |
17 | Have a suggestion of how the library could be improved? A new method? New types? Whatever it is, go to the Issues section of the GitHub, create a new issue, and label it "request".
18 |
19 |
20 | ## Fixing Bugs / Adding Features (pull requests)
21 |
22 | If you'd like to fix something in the code, or add new features to the code, here's the requirements...
23 |
24 | 1. Your modification needs to fit within the goals listed on the Wiki's home page
25 | 2. You need to add or modify tests to make sure your change is thoroughly tested (the test projects use shared code so that there can be a NETCore test project and a Portable test project, make sure your test works in both)
26 | 3. Run all the tests (including your new ones) and ensure they all pass
27 | 4. Follow the coding style of the original source code
28 | 5. If your changes affect the public API, make sure all summaries on classes/methods/properties are properly updated so that users of the API can understand what the API does via IntelliSense
29 | 6. DO NOT BREAK THE PUBLIC API SURFACE, we do not want to break the API for existing devs using the library. Over time we might have to depreciate things, but in general we should try to ensure that devs can simply update the library without worrying that their code won't compile after the update.
30 |
31 | I will still have the final say deciding which requests get added. If you're worried I might reject a request, talk to me before hand. If you're proposing adding a new property, for example, I might disagree that the property should be added. Thus, it would save your time if you simply asked me first, before coding it up. A good way to ask me would be to open a new feature request issue, state what your feature would do, state that you're willing to code it up, and ask me if I'll accept the pull request. Then you can code it and send the pull request.
32 |
--------------------------------------------------------------------------------
/LICENSE:
--------------------------------------------------------------------------------
1 | The MIT License (MIT)
2 |
3 | Copyright (c) 2015 Microsoft
4 |
5 | Permission is hereby granted, free of charge, to any person obtaining a copy
6 | of this software and associated documentation files (the "Software"), to deal
7 | in the Software without restriction, including without limitation the rights
8 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9 | copies of the Software, and to permit persons to whom the Software is
10 | furnished to do so, subject to the following conditions:
11 |
12 | The above copyright notice and this permission notice shall be included in all
13 | copies or substantial portions of the Software.
14 |
15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21 | SOFTWARE.
22 |
23 |
--------------------------------------------------------------------------------
/README.md:
--------------------------------------------------------------------------------
1 | # THIS PROJECT HAS MOVED
2 |
3 | ### NotificationsExtensions is now part of the [UWP Community Toolkit](https://github.com/Microsoft/UWPCommunityToolkit). Please find the latest version [here](https://github.com/Microsoft/UWPCommunityToolkit).
4 |
5 | # NotificationsExtensions
6 |
7 | The official Microsoft NotificationsExtensions library. Generate tile, toast, and badge notifications for Windows via code, with the help of IntelliSense, instead of directly using XML.
8 |
9 | **Supports adaptive tiles and adaptive/interactive toast notifications for Windows 10!**
10 |
11 | ## Getting Started
12 |
13 | 1. Clone this repository to your local hard drive
14 | 2. Open your own project (Windows 10 app, server code, etc)
15 | 3. **If you're writing a Windows 10 app, reference "Windows 10" -> "NotificationsExtensions.Win10.WinRT"**
16 | 4. If you're writing a server app (non-WinRT), reference "Windows 10" -> "NotificationsExtensions.Win10.Portable"
17 | 5. After the project is referenced, the namespace is "NotificationsExtensions" and each category of notifications are under their own namespace like "NotificationsExtensions.Tiles" or "Toasts" or "Badges".
18 |
19 |
20 | ## How to use it
21 |
22 | Please [read our Wiki](https://github.com/anbare/NotificationsExtensions/wiki) to learn how to use NotificationsExtensions.
23 |
24 |
25 |
26 | ## Fine Print
27 |
28 | This project has adopted the [Microsoft Open Source Code of Conduct](http://microsoft.github.io/codeofconduct). For more information see the [Code of Conduct FAQ](http://microsoft.github.io/codeofconduct/faq.md) or contact [opencode@microsoft.com](mailto:opencode@microsoft.com) with any additional questions or comments.
29 |
--------------------------------------------------------------------------------
/Wiki/Tiles/GroupsAndSubgroups/GroupsDesktop.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/WindowsNotifications/NotificationsExtensions/08a00bbd2811124865faf06776e88df6038b0278/Wiki/Tiles/GroupsAndSubgroups/GroupsDesktop.png
--------------------------------------------------------------------------------
/Wiki/Tiles/GroupsAndSubgroups/GroupsTablet.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/WindowsNotifications/NotificationsExtensions/08a00bbd2811124865faf06776e88df6038b0278/Wiki/Tiles/GroupsAndSubgroups/GroupsTablet.png
--------------------------------------------------------------------------------
/Windows 10/GenerateNugetPackage.bat:
--------------------------------------------------------------------------------
1 | @echo off
2 |
3 | set files=NotificationsExtensions.Win10.Portable\bin\Release\NotificationsExtensions.Win10.dll
4 | set files=%files% NotificationsExtensions.Win10.Portable\bin\Release\NotificationsExtensions.Win10.pdb
5 | set files=%files% NotificationsExtensions.Win10.Portable\bin\Release\NotificationsExtensions.Win10.xml
6 |
7 | set files=%files% NotificationsExtensions.Win10.WinRT\bin\Release\NotificationsExtensions.winmd
8 | set files=%files% NotificationsExtensions.Win10.WinRT\bin\Release\NotificationsExtensions.pri
9 | set files=%files% NotificationsExtensions.Win10.WinRT\bin\Release\NotificationsExtensions.pdb
10 | set files=%files% NotificationsExtensions.Win10.WinRT\bin\Release\NotificationsExtensions.xml
11 |
12 | set files=%files% NotificationsExtensions.Win10.NETCore\bin\Release\NotificationsExtensions.Win10.dll
13 | set files=%files% NotificationsExtensions.Win10.NETCore\bin\Release\NotificationsExtensions.Win10.pdb
14 | set files=%files% NotificationsExtensions.Win10.NETCore\bin\Release\NotificationsExtensions.Win10.xml
15 |
16 | set files=%files% NotificationsExtensions.Win10.UWP\bin\Release\NotificationsExtensions.Win10.dll
17 | set files=%files% NotificationsExtensions.Win10.UWP\bin\Release\NotificationsExtensions.Win10.pdb
18 | set files=%files% NotificationsExtensions.Win10.UWP\bin\Release\NotificationsExtensions.Win10.xml
19 |
20 | FOR %%f IN (%files%) DO IF NOT EXIST %%f call :file_not_found %%f
21 |
22 |
23 | echo Here are the current timestamps on the DLL's...
24 | echo.
25 |
26 | FOR %%f IN (%files%) DO ECHO %%~tf %%f
27 |
28 | echo.
29 |
30 | PAUSE
31 |
32 |
33 |
34 | echo Welcome, let's create a new NuGet package for NotificationsExtensions.Win10!
35 | echo.
36 |
37 | set /p version="Enter Version Number (ex. 10240.0.0): "
38 |
39 | if not exist "..\NugetPackages" mkdir "..\NugetPackages"
40 |
41 | "C:\Program Files (x86)\NuGet\nuget.exe" pack NotificationsExtensions.Win10.nuspec -Version %version% -OutputDirectory "..\NugetPackages"
42 |
43 | "C:\Program Files (x86)\NuGet\nuget.exe" pack NotificationsExtensions.Win10.JavaScript.nuspec -Version %version% -OutputDirectory "..\NugetPackages"
44 |
45 | PAUSE
46 |
47 | explorer ..\NugetPackages
48 |
49 |
50 |
51 |
52 | exit
53 | :file_not_found
54 |
55 | echo File not found: %1
56 | PAUSE
57 | exit
58 |
--------------------------------------------------------------------------------
/Windows 10/LICENSE:
--------------------------------------------------------------------------------
1 | The MIT License (MIT)
2 |
3 | Copyright (c) 2015 Microsoft
4 |
5 | Permission is hereby granted, free of charge, to any person obtaining a copy
6 | of this software and associated documentation files (the "Software"), to deal
7 | in the Software without restriction, including without limitation the rights
8 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9 | copies of the Software, and to permit persons to whom the Software is
10 | furnished to do so, subject to the following conditions:
11 |
12 | The above copyright notice and this permission notice shall be included in all
13 | copies or substantial portions of the Software.
14 |
15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21 | SOFTWARE.
22 |
23 |
--------------------------------------------------------------------------------
/Windows 10/NotificationsExtensions.SampleApp/App.xaml:
--------------------------------------------------------------------------------
1 |
7 |
8 |
9 |
--------------------------------------------------------------------------------
/Windows 10/NotificationsExtensions.SampleApp/Assets/Apps/Weather/Cloudy-Square.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/WindowsNotifications/NotificationsExtensions/08a00bbd2811124865faf06776e88df6038b0278/Windows 10/NotificationsExtensions.SampleApp/Assets/Apps/Weather/Cloudy-Square.png
--------------------------------------------------------------------------------
/Windows 10/NotificationsExtensions.SampleApp/Assets/Apps/Weather/Cloudy.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/WindowsNotifications/NotificationsExtensions/08a00bbd2811124865faf06776e88df6038b0278/Windows 10/NotificationsExtensions.SampleApp/Assets/Apps/Weather/Cloudy.png
--------------------------------------------------------------------------------
/Windows 10/NotificationsExtensions.SampleApp/Assets/Apps/Weather/Drizzle-Square.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/WindowsNotifications/NotificationsExtensions/08a00bbd2811124865faf06776e88df6038b0278/Windows 10/NotificationsExtensions.SampleApp/Assets/Apps/Weather/Drizzle-Square.png
--------------------------------------------------------------------------------
/Windows 10/NotificationsExtensions.SampleApp/Assets/Apps/Weather/Drizzle.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/WindowsNotifications/NotificationsExtensions/08a00bbd2811124865faf06776e88df6038b0278/Windows 10/NotificationsExtensions.SampleApp/Assets/Apps/Weather/Drizzle.png
--------------------------------------------------------------------------------
/Windows 10/NotificationsExtensions.SampleApp/Assets/Apps/Weather/Haze-Square.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/WindowsNotifications/NotificationsExtensions/08a00bbd2811124865faf06776e88df6038b0278/Windows 10/NotificationsExtensions.SampleApp/Assets/Apps/Weather/Haze-Square.png
--------------------------------------------------------------------------------
/Windows 10/NotificationsExtensions.SampleApp/Assets/Apps/Weather/Haze.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/WindowsNotifications/NotificationsExtensions/08a00bbd2811124865faf06776e88df6038b0278/Windows 10/NotificationsExtensions.SampleApp/Assets/Apps/Weather/Haze.png
--------------------------------------------------------------------------------
/Windows 10/NotificationsExtensions.SampleApp/Assets/Apps/Weather/Mostly Cloudy-Background.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/WindowsNotifications/NotificationsExtensions/08a00bbd2811124865faf06776e88df6038b0278/Windows 10/NotificationsExtensions.SampleApp/Assets/Apps/Weather/Mostly Cloudy-Background.jpg
--------------------------------------------------------------------------------
/Windows 10/NotificationsExtensions.SampleApp/Assets/Apps/Weather/Mostly Cloudy-Square.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/WindowsNotifications/NotificationsExtensions/08a00bbd2811124865faf06776e88df6038b0278/Windows 10/NotificationsExtensions.SampleApp/Assets/Apps/Weather/Mostly Cloudy-Square.png
--------------------------------------------------------------------------------
/Windows 10/NotificationsExtensions.SampleApp/Assets/Apps/Weather/Mostly Cloudy.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/WindowsNotifications/NotificationsExtensions/08a00bbd2811124865faf06776e88df6038b0278/Windows 10/NotificationsExtensions.SampleApp/Assets/Apps/Weather/Mostly Cloudy.png
--------------------------------------------------------------------------------
/Windows 10/NotificationsExtensions.SampleApp/Assets/Apps/Weather/Slight Drizzle-Square.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/WindowsNotifications/NotificationsExtensions/08a00bbd2811124865faf06776e88df6038b0278/Windows 10/NotificationsExtensions.SampleApp/Assets/Apps/Weather/Slight Drizzle-Square.png
--------------------------------------------------------------------------------
/Windows 10/NotificationsExtensions.SampleApp/Assets/Apps/Weather/Slight Drizzle.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/WindowsNotifications/NotificationsExtensions/08a00bbd2811124865faf06776e88df6038b0278/Windows 10/NotificationsExtensions.SampleApp/Assets/Apps/Weather/Slight Drizzle.png
--------------------------------------------------------------------------------
/Windows 10/NotificationsExtensions.SampleApp/Assets/Apps/Weather/Snow-Square.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/WindowsNotifications/NotificationsExtensions/08a00bbd2811124865faf06776e88df6038b0278/Windows 10/NotificationsExtensions.SampleApp/Assets/Apps/Weather/Snow-Square.png
--------------------------------------------------------------------------------
/Windows 10/NotificationsExtensions.SampleApp/Assets/Apps/Weather/Snow.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/WindowsNotifications/NotificationsExtensions/08a00bbd2811124865faf06776e88df6038b0278/Windows 10/NotificationsExtensions.SampleApp/Assets/Apps/Weather/Snow.png
--------------------------------------------------------------------------------
/Windows 10/NotificationsExtensions.SampleApp/Assets/Apps/Weather/Sunny-Square.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/WindowsNotifications/NotificationsExtensions/08a00bbd2811124865faf06776e88df6038b0278/Windows 10/NotificationsExtensions.SampleApp/Assets/Apps/Weather/Sunny-Square.png
--------------------------------------------------------------------------------
/Windows 10/NotificationsExtensions.SampleApp/Assets/Apps/Weather/Sunny.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/WindowsNotifications/NotificationsExtensions/08a00bbd2811124865faf06776e88df6038b0278/Windows 10/NotificationsExtensions.SampleApp/Assets/Apps/Weather/Sunny.png
--------------------------------------------------------------------------------
/Windows 10/NotificationsExtensions.SampleApp/Assets/Apps/Weather/Thunderstorms-Square.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/WindowsNotifications/NotificationsExtensions/08a00bbd2811124865faf06776e88df6038b0278/Windows 10/NotificationsExtensions.SampleApp/Assets/Apps/Weather/Thunderstorms-Square.png
--------------------------------------------------------------------------------
/Windows 10/NotificationsExtensions.SampleApp/Assets/Apps/Weather/Thunderstorms.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/WindowsNotifications/NotificationsExtensions/08a00bbd2811124865faf06776e88df6038b0278/Windows 10/NotificationsExtensions.SampleApp/Assets/Apps/Weather/Thunderstorms.png
--------------------------------------------------------------------------------
/Windows 10/NotificationsExtensions.SampleApp/Assets/Images/map.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/WindowsNotifications/NotificationsExtensions/08a00bbd2811124865faf06776e88df6038b0278/Windows 10/NotificationsExtensions.SampleApp/Assets/Images/map.jpg
--------------------------------------------------------------------------------
/Windows 10/NotificationsExtensions.SampleApp/Assets/Logo.scale-100.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/WindowsNotifications/NotificationsExtensions/08a00bbd2811124865faf06776e88df6038b0278/Windows 10/NotificationsExtensions.SampleApp/Assets/Logo.scale-100.png
--------------------------------------------------------------------------------
/Windows 10/NotificationsExtensions.SampleApp/Assets/Samples/Tiles/CirclePeek.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/WindowsNotifications/NotificationsExtensions/08a00bbd2811124865faf06776e88df6038b0278/Windows 10/NotificationsExtensions.SampleApp/Assets/Samples/Tiles/CirclePeek.png
--------------------------------------------------------------------------------
/Windows 10/NotificationsExtensions.SampleApp/Assets/Samples/Tiles/HeavyOverlay.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/WindowsNotifications/NotificationsExtensions/08a00bbd2811124865faf06776e88df6038b0278/Windows 10/NotificationsExtensions.SampleApp/Assets/Samples/Tiles/HeavyOverlay.png
--------------------------------------------------------------------------------
/Windows 10/NotificationsExtensions.SampleApp/Assets/Samples/Tiles/PeekAndBackground.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/WindowsNotifications/NotificationsExtensions/08a00bbd2811124865faf06776e88df6038b0278/Windows 10/NotificationsExtensions.SampleApp/Assets/Samples/Tiles/PeekAndBackground.png
--------------------------------------------------------------------------------
/Windows 10/NotificationsExtensions.SampleApp/Assets/Samples/Tiles/PeekOverlay.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/WindowsNotifications/NotificationsExtensions/08a00bbd2811124865faf06776e88df6038b0278/Windows 10/NotificationsExtensions.SampleApp/Assets/Samples/Tiles/PeekOverlay.png
--------------------------------------------------------------------------------
/Windows 10/NotificationsExtensions.SampleApp/Assets/Samples/Toasts/CustomSnoozeAndDismissText.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/WindowsNotifications/NotificationsExtensions/08a00bbd2811124865faf06776e88df6038b0278/Windows 10/NotificationsExtensions.SampleApp/Assets/Samples/Toasts/CustomSnoozeAndDismissText.jpg
--------------------------------------------------------------------------------
/Windows 10/NotificationsExtensions.SampleApp/Assets/Samples/Toasts/CustomSnoozeTimes.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/WindowsNotifications/NotificationsExtensions/08a00bbd2811124865faf06776e88df6038b0278/Windows 10/NotificationsExtensions.SampleApp/Assets/Samples/Toasts/CustomSnoozeTimes.jpg
--------------------------------------------------------------------------------
/Windows 10/NotificationsExtensions.SampleApp/Assets/Samples/Toasts/LoopingAudio.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/WindowsNotifications/NotificationsExtensions/08a00bbd2811124865faf06776e88df6038b0278/Windows 10/NotificationsExtensions.SampleApp/Assets/Samples/Toasts/LoopingAudio.jpg
--------------------------------------------------------------------------------
/Windows 10/NotificationsExtensions.SampleApp/Assets/Samples/Toasts/QuickReply.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/WindowsNotifications/NotificationsExtensions/08a00bbd2811124865faf06776e88df6038b0278/Windows 10/NotificationsExtensions.SampleApp/Assets/Samples/Toasts/QuickReply.jpg
--------------------------------------------------------------------------------
/Windows 10/NotificationsExtensions.SampleApp/Assets/Samples/Toasts/RS1StyleToast.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/WindowsNotifications/NotificationsExtensions/08a00bbd2811124865faf06776e88df6038b0278/Windows 10/NotificationsExtensions.SampleApp/Assets/Samples/Toasts/RS1StyleToast.jpg
--------------------------------------------------------------------------------
/Windows 10/NotificationsExtensions.SampleApp/Assets/Samples/Toasts/SystemSnoozeAndDismiss.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/WindowsNotifications/NotificationsExtensions/08a00bbd2811124865faf06776e88df6038b0278/Windows 10/NotificationsExtensions.SampleApp/Assets/Samples/Toasts/SystemSnoozeAndDismiss.jpg
--------------------------------------------------------------------------------
/Windows 10/NotificationsExtensions.SampleApp/Assets/Samples/Toasts/UnderConstruction.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/WindowsNotifications/NotificationsExtensions/08a00bbd2811124865faf06776e88df6038b0278/Windows 10/NotificationsExtensions.SampleApp/Assets/Samples/Toasts/UnderConstruction.jpg
--------------------------------------------------------------------------------
/Windows 10/NotificationsExtensions.SampleApp/Assets/Samples/Toasts/WeatherToast.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/WindowsNotifications/NotificationsExtensions/08a00bbd2811124865faf06776e88df6038b0278/Windows 10/NotificationsExtensions.SampleApp/Assets/Samples/Toasts/WeatherToast.jpg
--------------------------------------------------------------------------------
/Windows 10/NotificationsExtensions.SampleApp/Assets/SmallLogo.scale-100.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/WindowsNotifications/NotificationsExtensions/08a00bbd2811124865faf06776e88df6038b0278/Windows 10/NotificationsExtensions.SampleApp/Assets/SmallLogo.scale-100.png
--------------------------------------------------------------------------------
/Windows 10/NotificationsExtensions.SampleApp/Assets/SplashScreen.scale-100.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/WindowsNotifications/NotificationsExtensions/08a00bbd2811124865faf06776e88df6038b0278/Windows 10/NotificationsExtensions.SampleApp/Assets/SplashScreen.scale-100.png
--------------------------------------------------------------------------------
/Windows 10/NotificationsExtensions.SampleApp/Assets/StoreLogo.scale-100.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/WindowsNotifications/NotificationsExtensions/08a00bbd2811124865faf06776e88df6038b0278/Windows 10/NotificationsExtensions.SampleApp/Assets/StoreLogo.scale-100.png
--------------------------------------------------------------------------------
/Windows 10/NotificationsExtensions.SampleApp/Assets/WideLogo.scale-100.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/WindowsNotifications/NotificationsExtensions/08a00bbd2811124865faf06776e88df6038b0278/Windows 10/NotificationsExtensions.SampleApp/Assets/WideLogo.scale-100.png
--------------------------------------------------------------------------------
/Windows 10/NotificationsExtensions.SampleApp/Assets/next.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/WindowsNotifications/NotificationsExtensions/08a00bbd2811124865faf06776e88df6038b0278/Windows 10/NotificationsExtensions.SampleApp/Assets/next.png
--------------------------------------------------------------------------------
/Windows 10/NotificationsExtensions.SampleApp/LICENSE:
--------------------------------------------------------------------------------
1 | The MIT License (MIT)
2 |
3 | Copyright (c) 2015 Microsoft
4 |
5 | Permission is hereby granted, free of charge, to any person obtaining a copy
6 | of this software and associated documentation files (the "Software"), to deal
7 | in the Software without restriction, including without limitation the rights
8 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9 | copies of the Software, and to permit persons to whom the Software is
10 | furnished to do so, subject to the following conditions:
11 |
12 | The above copyright notice and this permission notice shall be included in all
13 | copies or substantial portions of the Software.
14 |
15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21 | SOFTWARE.
22 |
23 |
--------------------------------------------------------------------------------
/Windows 10/NotificationsExtensions.SampleApp/MainPage.xaml:
--------------------------------------------------------------------------------
1 |
9 |
10 |
11 |
12 |
16 |
17 |
22 |
23 |
24 |
25 |
--------------------------------------------------------------------------------
/Windows 10/NotificationsExtensions.SampleApp/Package.appxmanifest:
--------------------------------------------------------------------------------
1 |
2 |
3 |
8 |
9 |
13 |
14 |
15 |
16 |
17 | NotificationsExtensions.SampleApp
18 | anbare
19 | Assets\StoreLogo.png
20 |
21 |
22 |
23 |
24 |
25 |
26 |
27 |
28 |
29 |
30 |
31 |
34 |
40 |
41 |
42 |
43 |
44 |
45 |
46 |
47 |
48 |
--------------------------------------------------------------------------------
/Windows 10/NotificationsExtensions.SampleApp/Properties/AssemblyInfo.cs:
--------------------------------------------------------------------------------
1 | using System.Reflection;
2 | using System.Runtime.CompilerServices;
3 | using System.Runtime.InteropServices;
4 |
5 | // General Information about an assembly is controlled through the following
6 | // set of attributes. Change these attribute values to modify the information
7 | // associated with an assembly.
8 | [assembly: AssemblyTitle("NotificationsExtensions.SampleApp")]
9 | [assembly: AssemblyDescription("")]
10 | [assembly: AssemblyConfiguration("")]
11 | [assembly: AssemblyCompany("")]
12 | [assembly: AssemblyProduct("NotificationsExtensions.SampleApp")]
13 | [assembly: AssemblyCopyright("Copyright © 2015")]
14 | [assembly: AssemblyTrademark("")]
15 | [assembly: AssemblyCulture("")]
16 |
17 | // Version information for an assembly consists of the following four values:
18 | //
19 | // Major Version
20 | // Minor Version
21 | // Build Number
22 | // Revision
23 | //
24 | // You can specify all the values or you can default the Build and Revision Numbers
25 | // by using the '*' as shown below:
26 | // [assembly: AssemblyVersion("1.0.*")]
27 | [assembly: AssemblyVersion("1.0.0.0")]
28 | [assembly: AssemblyFileVersion("1.0.0.0")]
29 | [assembly: ComVisible(false)]
--------------------------------------------------------------------------------
/Windows 10/NotificationsExtensions.SampleApp/Properties/Default.rd.xml:
--------------------------------------------------------------------------------
1 |
17 |
18 |
19 |
20 |
24 |
25 |
26 |
27 |
28 |
29 |
30 |
31 |
--------------------------------------------------------------------------------
/Windows 10/NotificationsExtensions.SampleApp/TilesPage.xaml:
--------------------------------------------------------------------------------
1 |
9 |
10 |
11 |
12 |
23 |
24 |
25 |
26 |
27 |
28 |
29 |
30 |
37 |
38 |
45 |
46 |
53 |
54 |
60 |
61 |
62 |
63 |
64 |
65 |
--------------------------------------------------------------------------------
/Windows 10/NotificationsExtensions.SampleApp/project.json:
--------------------------------------------------------------------------------
1 | {
2 | "dependencies": {
3 | "Microsoft.NETCore.UniversalWindowsPlatform": "5.0.0"
4 | },
5 | "frameworks": {
6 | "uap10.0": { }
7 | },
8 | "runtimes": {
9 | "win10-arm": { },
10 | "win10-arm-aot": { },
11 | "win10-x86": { },
12 | "win10-x86-aot": { },
13 | "win10-x64": { },
14 | "win10-x64-aot": { }
15 | }
16 | }
--------------------------------------------------------------------------------
/Windows 10/NotificationsExtensions.SampleJavascriptApp/LICENSE:
--------------------------------------------------------------------------------
1 | The MIT License (MIT)
2 |
3 | Copyright (c) 2015 Microsoft
4 |
5 | Permission is hereby granted, free of charge, to any person obtaining a copy
6 | of this software and associated documentation files (the "Software"), to deal
7 | in the Software without restriction, including without limitation the rights
8 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9 | copies of the Software, and to permit persons to whom the Software is
10 | furnished to do so, subject to the following conditions:
11 |
12 | The above copyright notice and this permission notice shall be included in all
13 | copies or substantial portions of the Software.
14 |
15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21 | SOFTWARE.
22 |
23 |
--------------------------------------------------------------------------------
/Windows 10/NotificationsExtensions.SampleJavascriptApp/WinJS/fonts/Symbols.ttf:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/WindowsNotifications/NotificationsExtensions/08a00bbd2811124865faf06776e88df6038b0278/Windows 10/NotificationsExtensions.SampleJavascriptApp/WinJS/fonts/Symbols.ttf
--------------------------------------------------------------------------------
/Windows 10/NotificationsExtensions.SampleJavascriptApp/WinJS/js/WinJS.intellisense-setup.js:
--------------------------------------------------------------------------------
1 | (function () {
2 | var redirect = intellisense.redirectDefinition;
3 |
4 | var originalKeys = Object.keys;
5 | function baseKeys(o) {
6 | var values = Object.getOwnPropertyNames(o);
7 | for (var i = 0, len = values.length; i < len; ++i) {
8 | if (values[i].substr(0, 7) === "_$field") return values;
9 | }
10 | return originalKeys(o);
11 | }
12 | Object.keys = baseKeys;
13 |
14 | redirect(baseKeys, originalKeys);
15 |
16 | window._$originalAddEventListener = window.addEventListener;
17 | function addEventListener(type, handler, useCapture) {
18 | if (typeof (type) === "string" && (type === "pointerdown" || type === "keydown")) {
19 | handler = function () { };
20 | }
21 | return window._$originalAddEventListener(type, handler, useCapture);
22 | }
23 | window.addEventListener = addEventListener;
24 |
25 | redirect(addEventListener, window._$originalAddEventListener);
26 | })();
--------------------------------------------------------------------------------
/Windows 10/NotificationsExtensions.SampleJavascriptApp/css/default.css:
--------------------------------------------------------------------------------
1 | body {
2 | }
3 |
--------------------------------------------------------------------------------
/Windows 10/NotificationsExtensions.SampleJavascriptApp/default.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | NotificationsExtensions.SampleJavascriptApp
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
17 |
18 |
19 |
--------------------------------------------------------------------------------
/Windows 10/NotificationsExtensions.SampleJavascriptApp/images/logo.scale-100.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/WindowsNotifications/NotificationsExtensions/08a00bbd2811124865faf06776e88df6038b0278/Windows 10/NotificationsExtensions.SampleJavascriptApp/images/logo.scale-100.png
--------------------------------------------------------------------------------
/Windows 10/NotificationsExtensions.SampleJavascriptApp/images/smalllogo.scale-100.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/WindowsNotifications/NotificationsExtensions/08a00bbd2811124865faf06776e88df6038b0278/Windows 10/NotificationsExtensions.SampleJavascriptApp/images/smalllogo.scale-100.png
--------------------------------------------------------------------------------
/Windows 10/NotificationsExtensions.SampleJavascriptApp/images/splashscreen.scale-100.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/WindowsNotifications/NotificationsExtensions/08a00bbd2811124865faf06776e88df6038b0278/Windows 10/NotificationsExtensions.SampleJavascriptApp/images/splashscreen.scale-100.png
--------------------------------------------------------------------------------
/Windows 10/NotificationsExtensions.SampleJavascriptApp/images/storelogo.scale-100.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/WindowsNotifications/NotificationsExtensions/08a00bbd2811124865faf06776e88df6038b0278/Windows 10/NotificationsExtensions.SampleJavascriptApp/images/storelogo.scale-100.png
--------------------------------------------------------------------------------
/Windows 10/NotificationsExtensions.SampleJavascriptApp/js/default.js:
--------------------------------------------------------------------------------
1 | // For an introduction to the Blank template, see the following documentation:
2 | // http://go.microsoft.com/fwlink/?LinkId=232509
3 | (function () {
4 | "use strict";
5 |
6 | var app = WinJS.Application;
7 | var activation = Windows.ApplicationModel.Activation;
8 |
9 | app.onactivated = function (args) {
10 | if (args.detail.kind === activation.ActivationKind.launch) {
11 | if (args.detail.previousExecutionState !== activation.ApplicationExecutionState.terminated) {
12 | // TODO: This application has been newly launched. Initialize your application here.
13 | } else {
14 | // TODO: This application has been reactivated from suspension.
15 | // Restore application state here.
16 | }
17 | args.setPromise(WinJS.UI.processAll());
18 |
19 | var buttonUpdateTile = document.getElementById("buttonUpdateTile");
20 | buttonUpdateTile.addEventListener("click", updateTile, false);
21 |
22 | }
23 | };
24 |
25 | app.oncheckpoint = function (args) {
26 | // TODO: This application is about to be suspended. Save any state that needs to persist across suspensions here.
27 | // You might use the WinJS.Application.sessionState object, which is automatically saved and restored across suspension.
28 | // If you need to complete an asynchronous operation before your application is suspended, call args.setPromise().
29 | };
30 |
31 |
32 | function updateTile(eventInfo) {
33 |
34 |
35 | //var tileContent = NotificationsExtensions.TileContent.TileContentFactory.createTileSquareText02();
36 | //tileContent.textHeading.text = "Notification";
37 | //tileContent.textBodyWrap.text = Date().toString();
38 |
39 | //Windows.UI.Notifications.TileUpdateManager.createTileUpdaterForApplication().update(new Windows.UI.Notifications.TileNotification(tileContent.getXml()));
40 |
41 |
42 |
43 | var small = NotificationsExtensions.TileContentFactory.adaptive.createSmall();
44 |
45 | var text = new NotificationsExtensions.TileText();
46 | text.source = new NotificationsExtensions.TileTextSource("Hello world");
47 | text.wrap = true;
48 | text.minLines = 2;
49 | text.maxLines = 2;
50 |
51 | small.children.append(text);
52 |
53 |
54 |
55 | var tile = new NotificationsExtensions.TileContent();
56 |
57 | tile.visual.largeTile = "What the fuck";
58 |
59 | var messageDialog = new Windows.UI.Popups.MessageDialog("Success");
60 | messageDialog.showAsync();
61 | }
62 |
63 | app.start();
64 | })();
65 |
66 |
67 |
68 |
--------------------------------------------------------------------------------
/Windows 10/NotificationsExtensions.SampleJavascriptApp/package.appxmanifest:
--------------------------------------------------------------------------------
1 |
2 |
7 |
8 |
12 |
13 |
14 |
15 |
16 | NotificationsExtensions.SampleJavascriptApp
17 | anbare
18 | images\storelogo.png
19 |
20 |
21 |
22 |
23 |
24 |
25 |
26 |
27 |
28 |
29 |
30 |
33 |
34 |
40 |
41 |
42 |
43 |
44 |
45 |
46 |
47 |
48 |
49 |
50 |
51 |
52 |
--------------------------------------------------------------------------------
/Windows 10/NotificationsExtensions.SampleJavascriptApp/project.json:
--------------------------------------------------------------------------------
1 | {
2 | "dependencies": {
3 | "Microsoft.NETCore.UniversalWindowsPlatform": "5.0.0"
4 | },
5 | "frameworks": {
6 | "uap10.0": { }
7 | },
8 | "runtimes": {
9 | "win10-arm": { },
10 | "win10-arm-aot": { },
11 | "win10-x86": { },
12 | "win10-x86-aot": { },
13 | "win10-x64": { },
14 | "win10-x64-aot": { }
15 | }
16 | }
--------------------------------------------------------------------------------
/Windows 10/NotificationsExtensions.Test/LICENSE:
--------------------------------------------------------------------------------
1 | The MIT License (MIT)
2 |
3 | Copyright (c) 2015 Microsoft
4 |
5 | Permission is hereby granted, free of charge, to any person obtaining a copy
6 | of this software and associated documentation files (the "Software"), to deal
7 | in the Software without restriction, including without limitation the rights
8 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9 | copies of the Software, and to permit persons to whom the Software is
10 | furnished to do so, subject to the following conditions:
11 |
12 | The above copyright notice and this permission notice shall be included in all
13 | copies or substantial portions of the Software.
14 |
15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21 | SOFTWARE.
22 |
23 |
--------------------------------------------------------------------------------
/Windows 10/NotificationsExtensions.Test/NotificationsExtensions.Test.projitems:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | $(MSBuildAllProjects);$(MSBuildThisFileFullPath)
5 | true
6 | 6672bcc5-ffe8-4fdf-a982-9d4840f70678
7 |
8 |
9 | NotificationsExtensions.Test
10 |
11 |
12 |
13 |
14 |
15 |
16 |
17 |
18 |
19 |
20 |
21 |
22 |
23 |
24 |
25 |
--------------------------------------------------------------------------------
/Windows 10/NotificationsExtensions.Test/NotificationsExtensions.Test.shproj:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | 6672bcc5-ffe8-4fdf-a982-9d4840f70678
5 | 14.0
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
--------------------------------------------------------------------------------
/Windows 10/NotificationsExtensions.Test/Test_Badge_Xml.cs:
--------------------------------------------------------------------------------
1 | using Microsoft.VisualStudio.TestTools.UnitTesting;
2 | using NotificationsExtensions.Badges;
3 |
4 | namespace NotificationsExtensions.Win10.Test.Portable
5 | {
6 | [TestClass]
7 | public class Test_Badge_Xml
8 | {
9 | [TestMethod]
10 | public void Test_Badge_Xml_Numeric_0()
11 | {
12 | AssertBadgeValue("0", new BadgeNumericNotificationContent(0));
13 | }
14 |
15 | [TestMethod]
16 | public void Test_Badge_Xml_Numeric_1()
17 | {
18 | AssertBadgeValue("1", new BadgeNumericNotificationContent(1));
19 | }
20 |
21 | [TestMethod]
22 | public void Test_Badge_Xml_Numeric_2()
23 | {
24 | AssertBadgeValue("2", new BadgeNumericNotificationContent(2));
25 | }
26 |
27 | [TestMethod]
28 | public void Test_Badge_Xml_Numeric_546()
29 | {
30 | AssertBadgeValue("546", new BadgeNumericNotificationContent(546));
31 | }
32 |
33 | [TestMethod]
34 | public void Test_Badge_Xml_Numeric_Max()
35 | {
36 | AssertBadgeValue(uint.MaxValue.ToString(), new BadgeNumericNotificationContent(uint.MaxValue));
37 | }
38 |
39 | [TestMethod]
40 | public void Test_Badge_Xml_Glyph_None()
41 | {
42 | AssertBadgeValue("none", new BadgeGlyphNotificationContent(GlyphValue.None));
43 | }
44 |
45 | [TestMethod]
46 | public void Test_Badge_Xml_Glyph_Alert()
47 | {
48 | AssertBadgeValue("alert", new BadgeGlyphNotificationContent(GlyphValue.Alert));
49 | }
50 |
51 | [TestMethod]
52 | public void Test_Badge_Xml_Glyph_Error()
53 | {
54 | AssertBadgeValue("error", new BadgeGlyphNotificationContent(GlyphValue.Error));
55 | }
56 |
57 | private static void AssertBadgeValue(string expectedValue, INotificationContent notificationContent)
58 | {
59 | AssertPayload("", notificationContent);
60 | }
61 |
62 | private static void AssertPayload(string expectedXml, INotificationContent notificationContent)
63 | {
64 | AssertHelper.AssertXml(expectedXml, notificationContent.GetContent());
65 | }
66 | }
67 | }
68 |
--------------------------------------------------------------------------------
/Windows 10/NotificationsExtensions.WIn10.Test.NETCore/LICENSE:
--------------------------------------------------------------------------------
1 | The MIT License (MIT)
2 |
3 | Copyright (c) 2015 Microsoft
4 |
5 | Permission is hereby granted, free of charge, to any person obtaining a copy
6 | of this software and associated documentation files (the "Software"), to deal
7 | in the Software without restriction, including without limitation the rights
8 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9 | copies of the Software, and to permit persons to whom the Software is
10 | furnished to do so, subject to the following conditions:
11 |
12 | The above copyright notice and this permission notice shall be included in all
13 | copies or substantial portions of the Software.
14 |
15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21 | SOFTWARE.
22 |
23 |
--------------------------------------------------------------------------------
/Windows 10/NotificationsExtensions.WIn10.Test.NETCore/NotificationsExtensions.Win10.Test.NETCore.csproj:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | 14.0
6 | Debug
7 | AnyCPU
8 | {2135EDD4-3C9F-4F3B-8040-96D4449FB1D8}
9 | Library
10 | Properties
11 | NotificationsExtensions.Win10.Test.NETCore
12 | NotificationsExtensions.Win10.Test.NETCore
13 | en-US
14 | 512
15 | {786C830F-07A1-408B-BD7F-6EE04809D6DB};{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}
16 |
17 |
18 | v5.0
19 |
20 |
21 | true
22 | full
23 | false
24 | bin\Debug\
25 | DEBUG;TRACE
26 | prompt
27 | 4
28 |
29 |
30 | pdbonly
31 | true
32 | bin\Release\
33 | TRACE
34 | prompt
35 | 4
36 |
37 |
38 |
39 |
40 |
41 |
42 |
43 |
44 |
45 |
46 |
47 |
48 |
49 | C:\Program Files (x86)\Microsoft Visual Studio 14.0\Common7\IDE\PublicAssemblies\Microsoft.VisualStudio.QualityTools.UnitTestFramework.dll
50 |
51 |
52 |
53 |
54 | {d904d8c8-aec5-440b-b80e-d42ff3b91ede}
55 | NotificationsExtensions.Win10.NETCore
56 |
57 |
58 |
59 |
60 |
67 |
--------------------------------------------------------------------------------
/Windows 10/NotificationsExtensions.WIn10.Test.NETCore/Properties/AssemblyInfo.cs:
--------------------------------------------------------------------------------
1 | using System.Resources;
2 | using System.Reflection;
3 | using System.Runtime.CompilerServices;
4 | using System.Runtime.InteropServices;
5 |
6 | // General Information about an assembly is controlled through the following
7 | // set of attributes. Change these attribute values to modify the information
8 | // associated with an assembly.
9 | [assembly: AssemblyTitle("NotificationsExtensions.WIn10.Test.NETCore")]
10 | [assembly: AssemblyDescription("")]
11 | [assembly: AssemblyConfiguration("")]
12 | [assembly: AssemblyCompany("")]
13 | [assembly: AssemblyProduct("NotificationsExtensions.WIn10.Test.NETCore")]
14 | [assembly: AssemblyCopyright("Copyright © 2015")]
15 | [assembly: AssemblyTrademark("")]
16 | [assembly: AssemblyCulture("")]
17 | [assembly: NeutralResourcesLanguage("en")]
18 |
19 | // Version information for an assembly consists of the following four values:
20 | //
21 | // Major Version
22 | // Minor Version
23 | // Build Number
24 | // Revision
25 | //
26 | // You can specify all the values or you can default the Build and Revision Numbers
27 | // by using the '*' as shown below:
28 | // [assembly: AssemblyVersion("1.0.*")]
29 | [assembly: AssemblyVersion("1.0.0.0")]
30 | [assembly: AssemblyFileVersion("1.0.0.0")]
31 |
--------------------------------------------------------------------------------
/Windows 10/NotificationsExtensions.WIn10.Test.NETCore/project.json:
--------------------------------------------------------------------------------
1 | {
2 | "supports": {
3 | "net46.app": {},
4 | "uwp.10.0.app": {},
5 | "dnxcore50.app": {}
6 | },
7 | "dependencies": {
8 | "Microsoft.NETCore": "5.0.0",
9 | "Microsoft.NETCore.Portable.Compatibility": "1.0.0"
10 | },
11 | "frameworks": {
12 | "dotnet": {
13 | "imports": "portable-net452+win81"
14 | }
15 | }
16 | }
--------------------------------------------------------------------------------
/Windows 10/NotificationsExtensions.Win10.JavaScript.nuspec:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | NotificationsExtensions.Win10.JavaScript
5 | 0.0.0
6 | Microsoft
7 | microsoft, andrewbares
8 | https://github.com/anbare/NotificationsExtensions/wiki
9 | false
10 | Generate tile, toast, and badge notifications for Windows 10 via code, with the help of IntelliSense, instead of directly using XML.
11 | The official NotificationsExtensions library from Microsoft. Supports JavaScript UWP projects (see NotificationsExtensions.Win10 for the C#/C++ version).
12 |
13 | Generate tile, toast, and badge notifications for Windows 10 via code, with the help of IntelliSense, instead of directly using XML.
14 |
15 | Supports adaptive tiles and adaptive/interactive toasts for Windows 10!
16 | © Microsoft Corporation. All rights reserved.
17 | notifications, win10, windows 10, tile, tiles, toast, toasts, badge, xml, uwp, javascript
18 | https://raw.githubusercontent.com/WindowsNotifications/NotificationsExtensions/master/LICENSE
19 |
20 |
21 |
22 |
23 |
24 |
25 |
26 |
27 |
28 |
29 |
30 |
32 |
33 |
34 |
35 |
36 |
37 |
--------------------------------------------------------------------------------
/Windows 10/NotificationsExtensions.Win10.JavaScript.targets:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 | $(MSBuildThisFileDirectory)..\..\lib\Windows\NotificationsExtensions.winmd
7 | true
8 |
9 |
10 |
11 |
12 |
--------------------------------------------------------------------------------
/Windows 10/NotificationsExtensions.Win10.NETCore/LICENSE:
--------------------------------------------------------------------------------
1 | The MIT License (MIT)
2 |
3 | Copyright (c) 2015 Microsoft
4 |
5 | Permission is hereby granted, free of charge, to any person obtaining a copy
6 | of this software and associated documentation files (the "Software"), to deal
7 | in the Software without restriction, including without limitation the rights
8 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9 | copies of the Software, and to permit persons to whom the Software is
10 | furnished to do so, subject to the following conditions:
11 |
12 | The above copyright notice and this permission notice shall be included in all
13 | copies or substantial portions of the Software.
14 |
15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21 | SOFTWARE.
22 |
23 |
--------------------------------------------------------------------------------
/Windows 10/NotificationsExtensions.Win10.NETCore/NotificationsExtensions.Win10.NETCore.csproj:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | 14.0
6 | Debug
7 | AnyCPU
8 | {D904D8C8-AEC5-440B-B80E-D42FF3B91EDE}
9 | Library
10 | Properties
11 | NotificationsExtensions
12 | NotificationsExtensions.Win10
13 | en-US
14 | 512
15 | {786C830F-07A1-408B-BD7F-6EE04809D6DB};{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}
16 |
17 |
18 | v5.0
19 |
20 |
21 | true
22 | full
23 | false
24 | bin\Debug\
25 | TRACE;DEBUG;NETFX_CORE
26 | prompt
27 | 4
28 |
29 |
30 | pdbonly
31 | true
32 | bin\Release\
33 | TRACE;NETFX_CORE
34 | prompt
35 | 4
36 | bin\Release\NotificationsExtensions.Win10.xml
37 |
38 |
39 |
40 |
41 |
42 |
43 |
44 |
45 |
46 |
47 |
54 |
--------------------------------------------------------------------------------
/Windows 10/NotificationsExtensions.Win10.NETCore/Properties/AssemblyInfo.cs:
--------------------------------------------------------------------------------
1 | using System.Resources;
2 | using System.Reflection;
3 | using System.Runtime.CompilerServices;
4 | using System.Runtime.InteropServices;
5 |
6 | // General Information about an assembly is controlled through the following
7 | // set of attributes. Change these attribute values to modify the information
8 | // associated with an assembly.
9 | [assembly: AssemblyTitle("NotificationsExtensions.Win10")]
10 | [assembly: AssemblyDescription("")]
11 | [assembly: AssemblyConfiguration("")]
12 | [assembly: AssemblyCompany("")]
13 | [assembly: AssemblyProduct("NotificationsExtensions.Win10")]
14 | [assembly: AssemblyCopyright("Copyright © 2015")]
15 | [assembly: AssemblyTrademark("")]
16 | [assembly: AssemblyCulture("")]
17 | [assembly: NeutralResourcesLanguage("en")]
18 |
19 | // Version information for an assembly consists of the following four values:
20 | //
21 | // Major Version
22 | // Minor Version
23 | // Build Number
24 | // Revision
25 | //
26 | // You can specify all the values or you can default the Build and Revision Numbers
27 | // by using the '*' as shown below:
28 | // [assembly: AssemblyVersion("1.0.*")]
29 | [assembly: AssemblyVersion("1.0.0.0")]
30 | [assembly: AssemblyFileVersion("1.0.0.0")]
31 |
--------------------------------------------------------------------------------
/Windows 10/NotificationsExtensions.Win10.NETCore/project.json:
--------------------------------------------------------------------------------
1 | {
2 | "supports": {
3 | "net46.app": {},
4 | "uwp.10.0.app": {},
5 | "dnxcore50.app": {}
6 | },
7 | "dependencies": {
8 | "Microsoft.NETCore": "5.0.0",
9 | "Microsoft.NETCore.Portable.Compatibility": "1.0.0"
10 | },
11 | "frameworks": {
12 | "dotnet": {
13 | "imports": "portable-net452+win81"
14 | }
15 | }
16 | }
--------------------------------------------------------------------------------
/Windows 10/NotificationsExtensions.Win10.Portable/LICENSE:
--------------------------------------------------------------------------------
1 | The MIT License (MIT)
2 |
3 | Copyright (c) 2015 Microsoft
4 |
5 | Permission is hereby granted, free of charge, to any person obtaining a copy
6 | of this software and associated documentation files (the "Software"), to deal
7 | in the Software without restriction, including without limitation the rights
8 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9 | copies of the Software, and to permit persons to whom the Software is
10 | furnished to do so, subject to the following conditions:
11 |
12 | The above copyright notice and this permission notice shall be included in all
13 | copies or substantial portions of the Software.
14 |
15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21 | SOFTWARE.
22 |
23 |
--------------------------------------------------------------------------------
/Windows 10/NotificationsExtensions.Win10.Portable/NotificationsExtensions.Win10.Portable.csproj:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | 10.0
6 | Debug
7 | AnyCPU
8 | {DF77CE61-4633-49EC-90B1-DEBE0ED19EB6}
9 | Library
10 | Properties
11 | NotificationsExtensions
12 | NotificationsExtensions.Win10
13 | en-US
14 | 512
15 | {786C830F-07A1-408B-BD7F-6EE04809D6DB};{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}
16 | Profile344
17 | v4.0
18 |
19 |
20 | true
21 | full
22 | false
23 | bin\Debug\
24 | TRACE;DEBUG
25 | prompt
26 | 4
27 |
28 |
29 | pdbonly
30 | true
31 | bin\Release\
32 | TRACE
33 | prompt
34 | 4
35 | bin\Release\NotificationsExtensions.Win10.xml
36 |
37 |
38 |
39 |
40 |
41 |
42 |
43 |
44 |
49 |
50 |
57 |
--------------------------------------------------------------------------------
/Windows 10/NotificationsExtensions.Win10.Portable/Properties/AssemblyInfo.cs:
--------------------------------------------------------------------------------
1 | using System.Resources;
2 | using System.Reflection;
3 | using System.Runtime.CompilerServices;
4 | using System.Runtime.InteropServices;
5 |
6 | // General Information about an assembly is controlled through the following
7 | // set of attributes. Change these attribute values to modify the information
8 | // associated with an assembly.
9 | [assembly: AssemblyTitle("NotificationsExtensions.Win10")]
10 | [assembly: AssemblyDescription("")]
11 | [assembly: AssemblyConfiguration("")]
12 | [assembly: AssemblyCompany("")]
13 | [assembly: AssemblyProduct("NotificationsExtensions.Win10")]
14 | [assembly: AssemblyCopyright("Copyright © 2015")]
15 | [assembly: AssemblyTrademark("")]
16 | [assembly: AssemblyCulture("")]
17 | [assembly: NeutralResourcesLanguage("en")]
18 |
19 | // Version information for an assembly consists of the following four values:
20 | //
21 | // Major Version
22 | // Minor Version
23 | // Build Number
24 | // Revision
25 | //
26 | // You can specify all the values or you can default the Build and Revision Numbers
27 | // by using the '*' as shown below:
28 | // [assembly: AssemblyVersion("1.0.*")]
29 | [assembly: AssemblyVersion("1.0.0.0")]
30 | [assembly: AssemblyFileVersion("1.0.0.0")]
31 |
--------------------------------------------------------------------------------
/Windows 10/NotificationsExtensions.Win10.Portable/README.md:
--------------------------------------------------------------------------------
1 | ### NotificationsExtensions for Windows 10 - Portable Project
2 |
3 | This is the Portable class library version of NotificationsExtensions. It can be used on your server and in your Windows 10 app. It does not include any references to the WinRT API. If you're strictly using NotificationsExtensions in a Windows 10 app, I recommend downloading the WinRT version.
4 |
5 | These projects use shared files so that they share the same source code (using #IF for WinRT code).
6 |
--------------------------------------------------------------------------------
/Windows 10/NotificationsExtensions.Win10.Test.Portable/LICENSE:
--------------------------------------------------------------------------------
1 | The MIT License (MIT)
2 |
3 | Copyright (c) 2015 Microsoft
4 |
5 | Permission is hereby granted, free of charge, to any person obtaining a copy
6 | of this software and associated documentation files (the "Software"), to deal
7 | in the Software without restriction, including without limitation the rights
8 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9 | copies of the Software, and to permit persons to whom the Software is
10 | furnished to do so, subject to the following conditions:
11 |
12 | The above copyright notice and this permission notice shall be included in all
13 | copies or substantial portions of the Software.
14 |
15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21 | SOFTWARE.
22 |
23 |
--------------------------------------------------------------------------------
/Windows 10/NotificationsExtensions.Win10.Test.Portable/Properties/AssemblyInfo.cs:
--------------------------------------------------------------------------------
1 | using System.Reflection;
2 | using System.Runtime.CompilerServices;
3 | using System.Runtime.InteropServices;
4 |
5 | // General Information about an assembly is controlled through the following
6 | // set of attributes. Change these attribute values to modify the information
7 | // associated with an assembly.
8 | [assembly: AssemblyTitle("NotificationsExtensions.Win10.Test.Portable")]
9 | [assembly: AssemblyDescription("")]
10 | [assembly: AssemblyConfiguration("")]
11 | [assembly: AssemblyCompany("")]
12 | [assembly: AssemblyProduct("NotificationsExtensions.Win10.Test.Portable")]
13 | [assembly: AssemblyCopyright("Copyright © 2015")]
14 | [assembly: AssemblyTrademark("")]
15 | [assembly: AssemblyCulture("")]
16 |
17 | // Setting ComVisible to false makes the types in this assembly not visible
18 | // to COM components. If you need to access a type in this assembly from
19 | // COM, set the ComVisible attribute to true on that type.
20 | [assembly: ComVisible(false)]
21 |
22 | // The following GUID is for the ID of the typelib if this project is exposed to COM
23 | [assembly: Guid("c4518f16-3500-4021-8b19-f1b1fd3b0815")]
24 |
25 | // Version information for an assembly consists of the following four values:
26 | //
27 | // Major Version
28 | // Minor Version
29 | // Build Number
30 | // Revision
31 | //
32 | // You can specify all the values or you can default the Build and Revision Numbers
33 | // by using the '*' as shown below:
34 | // [assembly: AssemblyVersion("1.0.*")]
35 | [assembly: AssemblyVersion("1.0.0.0")]
36 | [assembly: AssemblyFileVersion("1.0.0.0")]
37 |
--------------------------------------------------------------------------------
/Windows 10/NotificationsExtensions.Win10.UWP/Properties/AssemblyInfo.cs:
--------------------------------------------------------------------------------
1 | using System.Reflection;
2 | using System.Runtime.CompilerServices;
3 | using System.Runtime.InteropServices;
4 |
5 | // General Information about an assembly is controlled through the following
6 | // set of attributes. Change these attribute values to modify the information
7 | // associated with an assembly.
8 | [assembly: AssemblyTitle("NotificationsExtensions.Win10")]
9 | [assembly: AssemblyDescription("")]
10 | [assembly: AssemblyConfiguration("")]
11 | [assembly: AssemblyCompany("")]
12 | [assembly: AssemblyProduct("NotificationsExtensions.Win10")]
13 | [assembly: AssemblyCopyright("Copyright © 2016")]
14 | [assembly: AssemblyTrademark("")]
15 | [assembly: AssemblyCulture("")]
16 |
17 | // Version information for an assembly consists of the following four values:
18 | //
19 | // Major Version
20 | // Minor Version
21 | // Build Number
22 | // Revision
23 | //
24 | // You can specify all the values or you can default the Build and Revision Numbers
25 | // by using the '*' as shown below:
26 | // [assembly: AssemblyVersion("1.0.*")]
27 | [assembly: AssemblyVersion("1.0.0.0")]
28 | [assembly: AssemblyFileVersion("1.0.0.0")]
29 | [assembly: ComVisible(false)]
--------------------------------------------------------------------------------
/Windows 10/NotificationsExtensions.Win10.UWP/Properties/NotificationsExtensions.Win10.UWP.rd.xml:
--------------------------------------------------------------------------------
1 |
2 |
27 |
28 |
29 |
30 |
31 |
32 |
33 |
34 |
--------------------------------------------------------------------------------
/Windows 10/NotificationsExtensions.Win10.UWP/project.json:
--------------------------------------------------------------------------------
1 | {
2 | "dependencies": {
3 | "Microsoft.NETCore.UniversalWindowsPlatform": "5.1.0"
4 | },
5 | "frameworks": {
6 | "uap10.0": {}
7 | },
8 | "runtimes": {
9 | "win10-arm": { },
10 | "win10-arm-aot": { },
11 | "win10-x86": { },
12 | "win10-x86-aot": { },
13 | "win10-x64": { },
14 | "win10-x64-aot": { }
15 | }
16 | }
--------------------------------------------------------------------------------
/Windows 10/NotificationsExtensions.Win10.WinRT/LICENSE:
--------------------------------------------------------------------------------
1 | The MIT License (MIT)
2 |
3 | Copyright (c) 2015 Microsoft
4 |
5 | Permission is hereby granted, free of charge, to any person obtaining a copy
6 | of this software and associated documentation files (the "Software"), to deal
7 | in the Software without restriction, including without limitation the rights
8 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9 | copies of the Software, and to permit persons to whom the Software is
10 | furnished to do so, subject to the following conditions:
11 |
12 | The above copyright notice and this permission notice shall be included in all
13 | copies or substantial portions of the Software.
14 |
15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21 | SOFTWARE.
22 |
23 |
--------------------------------------------------------------------------------
/Windows 10/NotificationsExtensions.Win10.WinRT/Properties/AssemblyInfo.cs:
--------------------------------------------------------------------------------
1 | using System.Reflection;
2 | using System.Runtime.CompilerServices;
3 | using System.Runtime.InteropServices;
4 |
5 | // General Information about an assembly is controlled through the following
6 | // set of attributes. Change these attribute values to modify the information
7 | // associated with an assembly.
8 | [assembly: AssemblyTitle("NotificationsExtensions.Win10")]
9 | [assembly: AssemblyDescription("")]
10 | [assembly: AssemblyConfiguration("")]
11 | [assembly: AssemblyCompany("")]
12 | [assembly: AssemblyProduct("NotificationsExtensions.Win10")]
13 | [assembly: AssemblyCopyright("Copyright © 2015")]
14 | [assembly: AssemblyTrademark("")]
15 | [assembly: AssemblyCulture("")]
16 |
17 | // Version information for an assembly consists of the following four values:
18 | //
19 | // Major Version
20 | // Minor Version
21 | // Build Number
22 | // Revision
23 | //
24 | // You can specify all the values or you can default the Build and Revision Numbers
25 | // by using the '*' as shown below:
26 | // [assembly: AssemblyVersion("1.0.*")]
27 | [assembly: AssemblyVersion("1.0.0.0")]
28 | [assembly: AssemblyFileVersion("1.0.0.0")]
29 | [assembly: ComVisible(false)]
--------------------------------------------------------------------------------
/Windows 10/NotificationsExtensions.Win10.WinRT/README.md:
--------------------------------------------------------------------------------
1 | ### NotificationsExtensions for Windows 10 - WinRT Project
2 |
3 | This is the WinRT class library version of NotificationsExtensions. It can only be used in your Windows 10 app, since it has references to the WinRT API. If you want to use NotificationsExtensions on your server, reference the Portable version.
4 |
5 | These projects use shared files so that they share the same source code (using #IF for WinRT code).
6 |
--------------------------------------------------------------------------------
/Windows 10/NotificationsExtensions.Win10.WinRT/project.json:
--------------------------------------------------------------------------------
1 | {
2 | "dependencies": {
3 | "Microsoft.NETCore.UniversalWindowsPlatform": "5.0.0"
4 | },
5 | "frameworks": {
6 | "uap10.0": { }
7 | },
8 | "runtimes": {
9 | "win10-arm": { },
10 | "win10-arm-aot": { },
11 | "win10-x86": { },
12 | "win10-x86-aot": { },
13 | "win10-x64": { },
14 | "win10-x64-aot": { }
15 | }
16 | }
--------------------------------------------------------------------------------
/Windows 10/NotificationsExtensions.Win10.native.targets:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 | $(MSBuildThisFileDirectory)..\..\lib\native\NotificationsExtensions.winmd
7 | true
8 |
9 |
10 |
11 |
12 |
--------------------------------------------------------------------------------
/Windows 10/NotificationsExtensions/Adaptive/AdaptiveGroup.cs:
--------------------------------------------------------------------------------
1 | // THIS CODE AND INFORMATION IS PROVIDED "AS IS" WITHOUT WARRANTY OF
2 | // ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO
3 | // THE IMPLIED WARRANTIES OF MERCHANTABILITY AND/OR FITNESS FOR A
4 | // PARTICULAR PURPOSE.
5 | //
6 | // Copyright (c) Microsoft Corporation. All rights reserved
7 |
8 | using NotificationsExtensions.Adaptive.Elements;
9 | using NotificationsExtensions.Tiles;
10 | using System;
11 | using System.Collections.Generic;
12 | using System.Text;
13 |
14 | namespace NotificationsExtensions
15 | {
16 | ///
17 | /// Groups semantically identify that the content in the group must either be displayed as a whole, or not displayed if it cannot fit. Groups also allow creating multiple columns.
18 | ///
19 | public sealed class AdaptiveGroup : IAdaptiveChild, ITileAdaptiveChild
20 | {
21 | ///
22 | /// Initializes a new group. Groups semantically identify that the content in the group must either be displayed as a whole, or not displayed if it cannot fit. Groups also allow creating multiple columns.
23 | ///
24 | public AdaptiveGroup() { }
25 |
26 | ///
27 | /// The only valid children of groups are . Each subgroup is displayed as a separate vertical column. Note that you must include at least one subgroup in your group, otherwise an will be thrown when you try to retrieve the XML for the notification.
28 | ///
29 | public IList Children { get; private set; } = new List();
30 |
31 | internal Element_AdaptiveGroup ConvertToElement()
32 | {
33 | if (Children.Count == 0)
34 | throw new InvalidOperationException("Groups must have at least one child subgroup. The Children property had zero items in it.");
35 |
36 | Element_AdaptiveGroup group = new Element_AdaptiveGroup();
37 |
38 | foreach (var subgroup in Children)
39 | group.Children.Add(subgroup.ConvertToElement());
40 |
41 | return group;
42 | }
43 | }
44 | }
45 |
--------------------------------------------------------------------------------
/Windows 10/NotificationsExtensions/Adaptive/AdaptiveHelper.cs:
--------------------------------------------------------------------------------
1 | // THIS CODE AND INFORMATION IS PROVIDED "AS IS" WITHOUT WARRANTY OF
2 | // ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO
3 | // THE IMPLIED WARRANTIES OF MERCHANTABILITY AND/OR FITNESS FOR A
4 | // PARTICULAR PURPOSE.
5 | //
6 | // Copyright (c) Microsoft Corporation. All rights reserved
7 |
8 | using System;
9 | using System.Collections.Generic;
10 | using System.Text;
11 | using System.Linq;
12 |
13 | namespace NotificationsExtensions.Adaptive
14 | {
15 | internal static class AdaptiveHelper
16 | {
17 | internal static object ConvertToElement(object obj)
18 | {
19 | if (obj is AdaptiveText)
20 | return (obj as AdaptiveText).ConvertToElement();
21 |
22 | else if (obj is AdaptiveImage)
23 | return (obj as AdaptiveImage).ConvertToElement();
24 |
25 | else if (obj is AdaptiveGroup)
26 | return (obj as AdaptiveGroup).ConvertToElement();
27 |
28 | else if (obj is AdaptiveSubgroup)
29 | return (obj as AdaptiveSubgroup).ConvertToElement();
30 |
31 | else
32 | throw new NotImplementedException("Unknown object: " + obj.GetType());
33 | }
34 | }
35 | }
36 |
--------------------------------------------------------------------------------
/Windows 10/NotificationsExtensions/Adaptive/AdaptiveImage.cs:
--------------------------------------------------------------------------------
1 | // THIS CODE AND INFORMATION IS PROVIDED "AS IS" WITHOUT WARRANTY OF
2 | // ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO
3 | // THE IMPLIED WARRANTIES OF MERCHANTABILITY AND/OR FITNESS FOR A
4 | // PARTICULAR PURPOSE.
5 | //
6 | // Copyright (c) Microsoft Corporation. All rights reserved
7 |
8 | using NotificationsExtensions.Adaptive.Elements;
9 | using NotificationsExtensions.Tiles;
10 | using System;
11 | using System.Collections.Generic;
12 | using System.Text;
13 |
14 | namespace NotificationsExtensions
15 | {
16 | ///
17 | /// An inline image.
18 | ///
19 | public sealed class AdaptiveImage : IBaseImage, IAdaptiveChild, IAdaptiveSubgroupChild, ITileAdaptiveChild
20 | {
21 | ///
22 | /// Initializes a new inline image.
23 | ///
24 | public AdaptiveImage() { }
25 |
26 | ///
27 | /// Control the desired cropping of the image.
28 | ///
29 | public AdaptiveImageCrop HintCrop { get; set; }
30 |
31 | ///
32 | /// By default, images have an 8px margin around them. You can remove this margin by setting this property to true.
33 | ///
34 | public bool? HintRemoveMargin { get; set; }
35 |
36 | ///
37 | /// The horizontal alignment of the image.
38 | ///
39 | public AdaptiveImageAlign HintAlign { get; set; }
40 |
41 | private string _source;
42 | ///
43 | /// Required. The URI of the image. Can be from your application package, application data, or the internet. Internet images must be less than 200 KB in size.
44 | ///
45 | public string Source
46 | {
47 | get { return _source; }
48 | set { BaseImageHelper.SetSource(ref _source, value); }
49 | }
50 |
51 | ///
52 | /// A description of the image, for users of assistive technologies.
53 | ///
54 | public string AlternateText { get; set; }
55 |
56 | ///
57 | /// Set to true to allow Windows to append a query string to the image URI supplied in the tile notification. Use this attribute if your server hosts images and can handle query strings, either by retrieving an image variant based on the query strings or by ignoring the query string and returning the image as specified without the query string. This query string specifies scale, contrast setting, and language.
58 | ///
59 | public bool? AddImageQuery { get; set;}
60 |
61 | internal Element_AdaptiveImage ConvertToElement()
62 | {
63 | Element_AdaptiveImage image = BaseImageHelper.CreateBaseElement(this);
64 |
65 | image.Crop = HintCrop;
66 | image.RemoveMargin = HintRemoveMargin;
67 | image.Align = HintAlign;
68 | image.Placement = AdaptiveImagePlacement.Inline;
69 |
70 | return image;
71 | }
72 |
73 | ///
74 | /// Returns the image's source string.
75 | ///
76 | ///
77 | public override string ToString()
78 | {
79 | if (Source == null)
80 | return "Source is null";
81 |
82 | return Source;
83 | }
84 | }
85 | }
--------------------------------------------------------------------------------
/Windows 10/NotificationsExtensions/Adaptive/AdaptiveImageEnums.cs:
--------------------------------------------------------------------------------
1 | // THIS CODE AND INFORMATION IS PROVIDED "AS IS" WITHOUT WARRANTY OF
2 | // ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO
3 | // THE IMPLIED WARRANTIES OF MERCHANTABILITY AND/OR FITNESS FOR A
4 | // PARTICULAR PURPOSE.
5 | //
6 | // Copyright (c) Microsoft Corporation. All rights reserved
7 |
8 | using System;
9 | using System.Collections.Generic;
10 | using System.Text;
11 |
12 | namespace NotificationsExtensions
13 | {
14 | ///
15 | /// Specifies the horizontal alignment for an image.
16 | ///
17 | public enum AdaptiveImageAlign
18 | {
19 | ///
20 | /// Default value, alignment behavior determined by renderer.
21 | ///
22 | Default,
23 |
24 | ///
25 | /// Image stretches to fill available width (and potentially available height too, depending on where the image is).
26 | ///
27 | [EnumString("stretch")]
28 | Stretch,
29 |
30 | ///
31 | /// Align the image to the left, displaying the image at its native resolution.
32 | ///
33 | [EnumString("left")]
34 | Left,
35 |
36 | ///
37 | /// Align the image in the center horizontally, displaying the image at its native resolution.
38 | ///
39 | [EnumString("center")]
40 | Center,
41 |
42 | ///
43 | /// Align the image to the right, displaying the image at its native resolution.
44 | ///
45 | [EnumString("right")]
46 | Right
47 | }
48 |
49 | ///
50 | /// Specify the desired cropping of the image.
51 | ///
52 | public enum AdaptiveImageCrop
53 | {
54 | ///
55 | /// Default value, cropping behavior determined by renderer.
56 | ///
57 | Default,
58 |
59 | ///
60 | /// Image is not cropped.
61 | ///
62 | [EnumString("none")]
63 | None,
64 |
65 | ///
66 | /// Image is cropped to a circle shape.
67 | ///
68 | [EnumString("circle")]
69 | Circle
70 | }
71 | }
72 |
--------------------------------------------------------------------------------
/Windows 10/NotificationsExtensions/Adaptive/AdaptiveSubgroup.cs:
--------------------------------------------------------------------------------
1 | // THIS CODE AND INFORMATION IS PROVIDED "AS IS" WITHOUT WARRANTY OF
2 | // ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO
3 | // THE IMPLIED WARRANTIES OF MERCHANTABILITY AND/OR FITNESS FOR A
4 | // PARTICULAR PURPOSE.
5 | //
6 | // Copyright (c) Microsoft Corporation. All rights reserved
7 |
8 | using NotificationsExtensions.Adaptive.Elements;
9 | using System;
10 | using System.Collections.Generic;
11 | using System.Text;
12 |
13 | namespace NotificationsExtensions
14 | {
15 | ///
16 | /// Subgroups are vertical columns that can contain text and images.
17 | ///
18 | public sealed class AdaptiveSubgroup
19 | {
20 | ///
21 | /// Initializes a new subgroup. Subgroups are vertical columns that can contain text and images.
22 | ///
23 | public AdaptiveSubgroup() { }
24 |
25 | ///
26 | /// and are valid children of subgroups.
27 | ///
28 | public IList Children { get; private set; } = new List();
29 |
30 | private int? _hintWeight;
31 |
32 | ///
33 | /// Control the width of this subgroup column by specifying the weight, relative to the other subgroups.
34 | ///
35 | public int? HintWeight
36 | {
37 | get { return _hintWeight; }
38 | set
39 | {
40 | Element_AdaptiveSubgroup.CheckWeight(value);
41 |
42 | _hintWeight = value;
43 | }
44 | }
45 |
46 | ///
47 | /// Control the vertical alignment of this subgroup's content.
48 | ///
49 | public AdaptiveSubgroupTextStacking HintTextStacking { get; set; } = Element_AdaptiveSubgroup.DEFAULT_TEXT_STACKING;
50 |
51 | internal Element_AdaptiveSubgroup ConvertToElement()
52 | {
53 | var subgroup = new Element_AdaptiveSubgroup()
54 | {
55 | Weight = HintWeight,
56 | TextStacking = HintTextStacking
57 | };
58 |
59 | foreach (var child in Children)
60 | {
61 | subgroup.Children.Add(ConvertToSubgroupChildElement(child));
62 | }
63 |
64 | return subgroup;
65 | }
66 |
67 | private static IElement_AdaptiveSubgroupChild ConvertToSubgroupChildElement(IAdaptiveSubgroupChild child)
68 | {
69 | if (child is AdaptiveText)
70 | return (child as AdaptiveText).ConvertToElement();
71 |
72 | else if (child is AdaptiveImage)
73 | return (child as AdaptiveImage).ConvertToElement();
74 |
75 | else
76 | throw new NotImplementedException("Unknown child: " + child.GetType());
77 | }
78 | }
79 | }
80 |
--------------------------------------------------------------------------------
/Windows 10/NotificationsExtensions/Adaptive/AdaptiveSubgroupEnums.cs:
--------------------------------------------------------------------------------
1 | // THIS CODE AND INFORMATION IS PROVIDED "AS IS" WITHOUT WARRANTY OF
2 | // ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO
3 | // THE IMPLIED WARRANTIES OF MERCHANTABILITY AND/OR FITNESS FOR A
4 | // PARTICULAR PURPOSE.
5 | //
6 | // Copyright (c) Microsoft Corporation. All rights reserved
7 |
8 | using System;
9 | using System.Collections.Generic;
10 | using System.Text;
11 |
12 | namespace NotificationsExtensions
13 | {
14 |
15 | ///
16 | /// TextStacking specifies the vertical alignment of content.
17 | ///
18 | public enum AdaptiveSubgroupTextStacking
19 | {
20 | ///
21 | /// Renderer automatically selects the default vertical alignment.
22 | ///
23 | Default,
24 |
25 | ///
26 | /// Vertical align to the top.
27 | ///
28 | [EnumString("top")]
29 | Top,
30 |
31 | ///
32 | /// Vertical align to the center.
33 | ///
34 | [EnumString("center")]
35 | Center,
36 |
37 | ///
38 | /// Vertical align to the bottom.
39 | ///
40 | [EnumString("bottom")]
41 | Bottom
42 | }
43 | }
44 |
--------------------------------------------------------------------------------
/Windows 10/NotificationsExtensions/Adaptive/BaseImageHelper.cs:
--------------------------------------------------------------------------------
1 | // THIS CODE AND INFORMATION IS PROVIDED "AS IS" WITHOUT WARRANTY OF
2 | // ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO
3 | // THE IMPLIED WARRANTIES OF MERCHANTABILITY AND/OR FITNESS FOR A
4 | // PARTICULAR PURPOSE.
5 | //
6 | // Copyright (c) Microsoft Corporation. All rights reserved
7 |
8 | using NotificationsExtensions.Adaptive.Elements;
9 | using System;
10 | using System.Collections.Generic;
11 | using System.Text;
12 |
13 | namespace NotificationsExtensions
14 | {
15 | internal static class BaseImageHelper
16 | {
17 | internal static void SetSource(ref string destination, string value)
18 | {
19 | if (value == null)
20 | throw new ArgumentNullException("Source property cannot be null.");
21 |
22 | destination = value;
23 | }
24 |
25 | internal static Element_AdaptiveImage CreateBaseElement(IBaseImage curr)
26 | {
27 | if (curr.Source == null)
28 | throw new NullReferenceException("Source property is required.");
29 |
30 | return new Element_AdaptiveImage()
31 | {
32 | Src = curr.Source,
33 | Alt = curr.AlternateText,
34 | AddImageQuery = curr.AddImageQuery
35 | };
36 | }
37 | }
38 | }
39 |
--------------------------------------------------------------------------------
/Windows 10/NotificationsExtensions/Adaptive/BaseTextHelper.cs:
--------------------------------------------------------------------------------
1 | // THIS CODE AND INFORMATION IS PROVIDED "AS IS" WITHOUT WARRANTY OF
2 | // ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO
3 | // THE IMPLIED WARRANTIES OF MERCHANTABILITY AND/OR FITNESS FOR A
4 | // PARTICULAR PURPOSE.
5 | //
6 | // Copyright (c) Microsoft Corporation. All rights reserved
7 |
8 | using NotificationsExtensions.Adaptive.Elements;
9 | using System;
10 | using System.Collections.Generic;
11 | using System.Text;
12 |
13 | namespace NotificationsExtensions
14 | {
15 | internal class BaseTextHelper
16 | {
17 | internal static Element_AdaptiveText CreateBaseElement(IBaseText curr)
18 | {
19 | return new Element_AdaptiveText()
20 | {
21 | Text = curr.Text,
22 | Lang = curr.Language
23 | };
24 | }
25 | }
26 | }
27 |
--------------------------------------------------------------------------------
/Windows 10/NotificationsExtensions/Adaptive/ChildrenInterfaces.cs:
--------------------------------------------------------------------------------
1 | // THIS CODE AND INFORMATION IS PROVIDED "AS IS" WITHOUT WARRANTY OF
2 | // ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO
3 | // THE IMPLIED WARRANTIES OF MERCHANTABILITY AND/OR FITNESS FOR A
4 | // PARTICULAR PURPOSE.
5 | //
6 | // Copyright (c) Microsoft Corporation. All rights reserved
7 |
8 | using NotificationsExtensions.Tiles;
9 | using System;
10 | using System.Collections.Generic;
11 | using System.Text;
12 |
13 | namespace NotificationsExtensions
14 | {
15 | ///
16 | /// Elements that can be direct children of adaptive content, including (, , and ).
17 | ///
18 | public interface IAdaptiveChild : ITileAdaptiveChild
19 | {
20 | // Blank interface simply for compile-enforcing the child types in the list.
21 |
22 |
23 | }
24 |
25 | ///
26 | /// Elements that can be direct children of an , including ( and ).
27 | ///
28 | public interface IAdaptiveSubgroupChild
29 | {
30 | // Blank interface simply for compile-enforcing the child types in the list.
31 | }
32 | }
33 |
--------------------------------------------------------------------------------
/Windows 10/NotificationsExtensions/Adaptive/Elements/Element_AdaptiveGroup.cs:
--------------------------------------------------------------------------------
1 | // THIS CODE AND INFORMATION IS PROVIDED "AS IS" WITHOUT WARRANTY OF
2 | // ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO
3 | // THE IMPLIED WARRANTIES OF MERCHANTABILITY AND/OR FITNESS FOR A
4 | // PARTICULAR PURPOSE.
5 | //
6 | // Copyright (c) Microsoft Corporation. All rights reserved
7 |
8 | using NotificationsExtensions.Tiles;
9 | using NotificationsExtensions.Toasts;
10 | using System;
11 | using System.Collections.Generic;
12 | using System.Text;
13 |
14 | namespace NotificationsExtensions.Adaptive.Elements
15 | {
16 |
17 | [NotificationXmlElement("group")]
18 | internal sealed class Element_AdaptiveGroup : IElement_TileBindingChild, IElement_ToastBindingChild, IElementWithDescendants
19 | {
20 | public IList Children { get; private set; } = new List();
21 |
22 | public IEnumerable