├── .gitattributes ├── .gitignore ├── AdaptiveTileExtensions.nuspec ├── AdaptiveTileExtensions.sln ├── AdaptiveTileExtensions ├── AdaptiveTile.cs ├── AdaptiveTileExtensions.csproj ├── Alignment.cs ├── Branding.cs ├── Group.cs ├── ImageCropping.cs ├── ImagePlacement.cs ├── Item.cs ├── Properties │ ├── AdaptiveTileExtensions.rd.xml │ └── AssemblyInfo.cs ├── SubGroup.cs ├── TemplateType.cs ├── Text.cs ├── TextStacking.cs ├── TextStyle.cs ├── Tile.cs ├── TileBinding.cs ├── TileImage.cs ├── project.json └── project.lock.json ├── AdaptiveTileExtensionsSample ├── AdaptiveTileExtensionsSample.csproj ├── AdaptiveTileExtensionsSample_TemporaryKey.pfx ├── App.xaml ├── App.xaml.cs ├── ApplicationInsights.config ├── Assets │ ├── LockScreenLogo.scale-200.png │ ├── Logo.scale-100.png │ ├── SmallLogo.scale-100.png │ ├── SplashScreen.scale-100.png │ ├── SplashScreen.scale-200.png │ ├── Square150x150Logo.scale-200.png │ ├── Square44x44Logo.scale-200.png │ ├── Square44x44Logo.targetsize-24_altform-unplated.png │ ├── StoreLogo.png │ ├── StoreLogo.scale-100.png │ ├── Wide310x150Logo.scale-200.png │ └── WideLogo.scale-100.png ├── MainPage.xaml ├── MainPage.xaml.cs ├── Package.appxmanifest ├── Properties │ ├── AssemblyInfo.cs │ └── Default.rd.xml ├── project.json └── project.lock.json ├── License ├── TileSample.PNG └── readme.md /.gitattributes: -------------------------------------------------------------------------------- 1 | # Auto detect text files and perform LF normalization 2 | * text=auto 3 | 4 | # Custom for Visual Studio 5 | *.cs diff=csharp 6 | 7 | # Standard to msysgit 8 | *.doc diff=astextplain 9 | *.DOC diff=astextplain 10 | *.docx diff=astextplain 11 | *.DOCX diff=astextplain 12 | *.dot diff=astextplain 13 | *.DOT diff=astextplain 14 | *.pdf diff=astextplain 15 | *.PDF diff=astextplain 16 | *.rtf diff=astextplain 17 | *.RTF diff=astextplain 18 | -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | ################# 2 | ## Fody 3 | ################# 4 | !Tools/Fody/* 5 | 6 | AppPackages/ 7 | 8 | ################# 9 | ## Project specific 10 | ################# 11 | SkyDriveAccess.txt 12 | 13 | ################# 14 | ## Eclipse 15 | ################# 16 | 17 | *.pydevproject 18 | .project 19 | .metadata 20 | bin/ 21 | tmp/ 22 | *.tmp 23 | *.bak 24 | *.swp 25 | *~.nib 26 | local.properties 27 | .classpath 28 | .settings/ 29 | .loadpath 30 | 31 | # External tool builders 32 | .externalToolBuilders/ 33 | 34 | # Locally stored "Eclipse launch configurations" 35 | *.launch 36 | 37 | # CDT-specific 38 | .cproject 39 | 40 | # PDT-specific 41 | .buildpath 42 | 43 | 44 | ################# 45 | ## Visual Studio 46 | ################# 47 | 48 | ## Ignore Visual Studio temporary files, build results, and 49 | ## files generated by popular Visual Studio add-ons. 50 | 51 | # User-specific files 52 | *.suo 53 | *.user 54 | *.sln.docstates 55 | *.nupkg 56 | 57 | # Build results 58 | [Dd]ebug/ 59 | [Rr]elease/ 60 | *_i.c 61 | *_p.c 62 | *.ilk 63 | *.meta 64 | *.obj 65 | *.pch 66 | *.pdb 67 | *.pgc 68 | *.pgd 69 | *.rsp 70 | *.sbr 71 | *.tlb 72 | *.tli 73 | *.tlh 74 | *.tmp 75 | *.vspscc 76 | .builds 77 | *.dotCover 78 | 79 | 80 | ## TODO: If you have NuGet Package Restore enabled, uncomment this 81 | packages/ 82 | 83 | # Visual C++ cache files 84 | ipch/ 85 | *.aps 86 | *.ncb 87 | *.opensdf 88 | *.sdf 89 | 90 | # Visual Studio profiler 91 | *.psess 92 | *.vsp 93 | 94 | # ReSharper is a .NET coding add-in 95 | _ReSharper* 96 | *.sln.ide 97 | 98 | # Installshield output folder 99 | [Ee]xpress 100 | 101 | # DocProject is a documentation generator add-in 102 | DocProject/buildhelp/ 103 | DocProject/Help/*.HxT 104 | DocProject/Help/*.HxC 105 | DocProject/Help/*.hhc 106 | DocProject/Help/*.hhk 107 | DocProject/Help/*.hhp 108 | DocProject/Help/Html2 109 | DocProject/Help/html 110 | 111 | # Click-Once directory 112 | publish 113 | 114 | # Others 115 | [Bb]in 116 | [Oo]bj 117 | sql 118 | TestResults 119 | *.Cache 120 | ClientBin 121 | stylecop.* 122 | ~$* 123 | *.dbmdl 124 | Generated_Code #added for RIA/Silverlight projects 125 | 126 | # Backup & report files from converting an old project file to a newer 127 | # Visual Studio version. Backup files are not needed, because we have git ;-) 128 | _UpgradeReport_Files/ 129 | Backup*/ 130 | UpgradeLog*.XML 131 | 132 | 133 | 134 | ############ 135 | ## Windows 136 | ############ 137 | 138 | # Windows image file caches 139 | Thumbs.db 140 | 141 | # Folder config file 142 | Desktop.ini 143 | 144 | 145 | ############# 146 | ## Python 147 | ############# 148 | 149 | *.py[co] 150 | 151 | # Packages 152 | *.egg 153 | *.egg-info 154 | dist 155 | build 156 | eggs 157 | parts 158 | bin 159 | var 160 | sdist 161 | develop-eggs 162 | .installed.cfg 163 | 164 | # Installer logs 165 | pip-log.txt 166 | 167 | # Unit test / coverage reports 168 | .coverage 169 | .tox 170 | 171 | #Translations 172 | *.mo 173 | 174 | #Mr Developer 175 | .mr.developer.cfg 176 | 177 | # Mac crap 178 | .DS_Store 179 | 180 | lib 181 | -------------------------------------------------------------------------------- /AdaptiveTileExtensions.nuspec: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | AdaptiveTileExtensions 5 | 1.0.1 6 | 7 | <authors>ScottIsAFool</authors> 8 | <owners /> 9 | <licenseUrl>https://raw.githubusercontent.com/ScottIsAFool/AdaptiveTileExtensions/master/LICENSE</licenseUrl> 10 | <projectUrl>https://github.com/ScottIsAFool/AdaptiveTileExtensions</projectUrl> 11 | <requireLicenseAcceptance>false</requireLicenseAcceptance> 12 | <description>Helper library to more easily create the notification to update tiles for all sizes</description> 13 | <releaseNotes/> 14 | <copyright>© Scott Lovegrove 2015</copyright> 15 | <language>en-US</language> 16 | <tags>Adaptive tiles uwp</tags> 17 | </metadata> 18 | <files> 19 | 20 | <file src="AdaptiveTileExtensions\bin\Release\AdaptiveTileExtensions.dll" target="lib\uap10.0\AdaptiveTileExtensions.dll" /> 21 | <file src="AdaptiveTileExtensions\bin\Release\AdaptiveTileExtensions.pdb" target="lib\uap10.0\AdaptiveTileExtensions.pdb" /> 22 | <file src="AdaptiveTileExtensions\bin\Release\AdaptiveTileExtensions.pri" target="lib\uap10.0\AdaptiveTileExtensions.pri" /> 23 | <file src="AdaptiveTileExtensions\Properties\AdaptiveTileExtensions.rd.xml" target="lib\uap10.0\AdaptiveTileExtensions\Properties\AdaptiveTileExtensions.rd.xml" /> 24 | </files> 25 | </package> -------------------------------------------------------------------------------- /AdaptiveTileExtensions.sln: -------------------------------------------------------------------------------- 1 |  2 | Microsoft Visual Studio Solution File, Format Version 12.00 3 | # Visual Studio 14 4 | VisualStudioVersion = 14.0.23107.0 5 | MinimumVisualStudioVersion = 10.0.40219.1 6 | Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "AdaptiveTileExtensions", "AdaptiveTileExtensions\AdaptiveTileExtensions.csproj", "{E6FAC682-37F7-48D6-9789-1548AB104E11}" 7 | EndProject 8 | Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "AdaptiveTileExtensionsSample", "AdaptiveTileExtensionsSample\AdaptiveTileExtensionsSample.csproj", "{5647F0E9-8E7F-4DEB-84A9-6B733B20AFCF}" 9 | EndProject 10 | Global 11 | GlobalSection(SolutionConfigurationPlatforms) = preSolution 12 | Debug|Any CPU = Debug|Any CPU 13 | Debug|ARM = Debug|ARM 14 | Debug|x64 = Debug|x64 15 | Debug|x86 = Debug|x86 16 | Release|Any CPU = Release|Any CPU 17 | Release|ARM = Release|ARM 18 | Release|x64 = Release|x64 19 | Release|x86 = Release|x86 20 | EndGlobalSection 21 | GlobalSection(ProjectConfigurationPlatforms) = postSolution 22 | {E6FAC682-37F7-48D6-9789-1548AB104E11}.Debug|Any CPU.ActiveCfg = Debug|Any CPU 23 | {E6FAC682-37F7-48D6-9789-1548AB104E11}.Debug|Any CPU.Build.0 = Debug|Any CPU 24 | {E6FAC682-37F7-48D6-9789-1548AB104E11}.Debug|ARM.ActiveCfg = Debug|ARM 25 | {E6FAC682-37F7-48D6-9789-1548AB104E11}.Debug|ARM.Build.0 = Debug|ARM 26 | {E6FAC682-37F7-48D6-9789-1548AB104E11}.Debug|x64.ActiveCfg = Debug|x64 27 | {E6FAC682-37F7-48D6-9789-1548AB104E11}.Debug|x64.Build.0 = Debug|x64 28 | {E6FAC682-37F7-48D6-9789-1548AB104E11}.Debug|x86.ActiveCfg = Debug|x86 29 | {E6FAC682-37F7-48D6-9789-1548AB104E11}.Debug|x86.Build.0 = Debug|x86 30 | {E6FAC682-37F7-48D6-9789-1548AB104E11}.Release|Any CPU.ActiveCfg = Release|Any CPU 31 | {E6FAC682-37F7-48D6-9789-1548AB104E11}.Release|Any CPU.Build.0 = Release|Any CPU 32 | {E6FAC682-37F7-48D6-9789-1548AB104E11}.Release|ARM.ActiveCfg = Release|ARM 33 | {E6FAC682-37F7-48D6-9789-1548AB104E11}.Release|ARM.Build.0 = Release|ARM 34 | {E6FAC682-37F7-48D6-9789-1548AB104E11}.Release|x64.ActiveCfg = Release|x64 35 | {E6FAC682-37F7-48D6-9789-1548AB104E11}.Release|x64.Build.0 = Release|x64 36 | {E6FAC682-37F7-48D6-9789-1548AB104E11}.Release|x86.ActiveCfg = Release|x86 37 | {E6FAC682-37F7-48D6-9789-1548AB104E11}.Release|x86.Build.0 = Release|x86 38 | {5647F0E9-8E7F-4DEB-84A9-6B733B20AFCF}.Debug|Any CPU.ActiveCfg = Debug|x86 39 | {5647F0E9-8E7F-4DEB-84A9-6B733B20AFCF}.Debug|ARM.ActiveCfg = Debug|ARM 40 | {5647F0E9-8E7F-4DEB-84A9-6B733B20AFCF}.Debug|ARM.Build.0 = Debug|ARM 41 | {5647F0E9-8E7F-4DEB-84A9-6B733B20AFCF}.Debug|ARM.Deploy.0 = Debug|ARM 42 | {5647F0E9-8E7F-4DEB-84A9-6B733B20AFCF}.Debug|x64.ActiveCfg = Debug|x64 43 | {5647F0E9-8E7F-4DEB-84A9-6B733B20AFCF}.Debug|x64.Build.0 = Debug|x64 44 | {5647F0E9-8E7F-4DEB-84A9-6B733B20AFCF}.Debug|x64.Deploy.0 = Debug|x64 45 | {5647F0E9-8E7F-4DEB-84A9-6B733B20AFCF}.Debug|x86.ActiveCfg = Debug|x86 46 | {5647F0E9-8E7F-4DEB-84A9-6B733B20AFCF}.Debug|x86.Build.0 = Debug|x86 47 | {5647F0E9-8E7F-4DEB-84A9-6B733B20AFCF}.Debug|x86.Deploy.0 = Debug|x86 48 | {5647F0E9-8E7F-4DEB-84A9-6B733B20AFCF}.Release|Any CPU.ActiveCfg = Release|x86 49 | {5647F0E9-8E7F-4DEB-84A9-6B733B20AFCF}.Release|ARM.ActiveCfg = Release|ARM 50 | {5647F0E9-8E7F-4DEB-84A9-6B733B20AFCF}.Release|ARM.Build.0 = Release|ARM 51 | {5647F0E9-8E7F-4DEB-84A9-6B733B20AFCF}.Release|ARM.Deploy.0 = Release|ARM 52 | {5647F0E9-8E7F-4DEB-84A9-6B733B20AFCF}.Release|x64.ActiveCfg = Release|x64 53 | {5647F0E9-8E7F-4DEB-84A9-6B733B20AFCF}.Release|x64.Build.0 = Release|x64 54 | {5647F0E9-8E7F-4DEB-84A9-6B733B20AFCF}.Release|x64.Deploy.0 = Release|x64 55 | {5647F0E9-8E7F-4DEB-84A9-6B733B20AFCF}.Release|x86.ActiveCfg = Release|x86 56 | {5647F0E9-8E7F-4DEB-84A9-6B733B20AFCF}.Release|x86.Build.0 = Release|x86 57 | {5647F0E9-8E7F-4DEB-84A9-6B733B20AFCF}.Release|x86.Deploy.0 = Release|x86 58 | EndGlobalSection 59 | GlobalSection(SolutionProperties) = preSolution 60 | HideSolutionNode = FALSE 61 | EndGlobalSection 62 | EndGlobal 63 | -------------------------------------------------------------------------------- /AdaptiveTileExtensions/AdaptiveTile.cs: -------------------------------------------------------------------------------- 1 | namespace AdaptiveTileExtensions 2 | { 3 | public static class AdaptiveTile 4 | { 5 | public static Tile CreateTile(string version = "3") 6 | { 7 | return new Tile(version); 8 | } 9 | } 10 | } 11 | -------------------------------------------------------------------------------- /AdaptiveTileExtensions/AdaptiveTileExtensions.csproj: -------------------------------------------------------------------------------- 1 | <?xml version="1.0" encoding="utf-8"?> 2 | <Project ToolsVersion="14.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> 3 | <Import Project="$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props" Condition="Exists('$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props')" /> 4 | <PropertyGroup> 5 | <Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration> 6 | <Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform> 7 | <ProjectGuid>{E6FAC682-37F7-48D6-9789-1548AB104E11}</ProjectGuid> 8 | <OutputType>Library</OutputType> 9 | <AppDesignerFolder>Properties</AppDesignerFolder> 10 | <RootNamespace>AdaptiveTileExtensions</RootNamespace> 11 | <AssemblyName>AdaptiveTileExtensions</AssemblyName> 12 | <DefaultLanguage>en-US</DefaultLanguage> 13 | <TargetPlatformIdentifier>UAP</TargetPlatformIdentifier> 14 | <TargetPlatformVersion>10.0.10240.0</TargetPlatformVersion> 15 | <TargetPlatformMinVersion>10.0.10240.0</TargetPlatformMinVersion> 16 | <MinimumVisualStudioVersion>14</MinimumVisualStudioVersion> 17 | <FileAlignment>512</FileAlignment> 18 | <ProjectTypeGuids>{A5A43C5B-DE2A-4C0C-9213-0A381AF9435A};{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}</ProjectTypeGuids> 19 | <NuSpecFile>AdaptiveTileExtensions.nuspec</NuSpecFile> 20 | </PropertyGroup> 21 | <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' "> 22 | <PlatformTarget>AnyCPU</PlatformTarget> 23 | <DebugSymbols>true</DebugSymbols> 24 | <DebugType>full</DebugType> 25 | <Optimize>false</Optimize> 26 | <OutputPath>bin\Debug\</OutputPath> 27 | <DefineConstants>DEBUG;TRACE;NETFX_CORE;WINDOWS_UWP</DefineConstants> 28 | <ErrorReport>prompt</ErrorReport> 29 | <WarningLevel>4</WarningLevel> 30 | </PropertyGroup> 31 | <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' "> 32 | <PlatformTarget>AnyCPU</PlatformTarget> 33 | <DebugType>pdbonly</DebugType> 34 | <Optimize>true</Optimize> 35 | <OutputPath>bin\Release\</OutputPath> 36 | <DefineConstants>TRACE;NETFX_CORE;WINDOWS_UWP</DefineConstants> 37 | <ErrorReport>prompt</ErrorReport> 38 | <WarningLevel>4</WarningLevel> 39 | </PropertyGroup> 40 | <PropertyGroup Condition="'$(Configuration)|$(Platform)' == 'Debug|ARM'"> 41 | <PlatformTarget>ARM</PlatformTarget> 42 | <DebugSymbols>true</DebugSymbols> 43 | <OutputPath>bin\ARM\Debug\</OutputPath> 44 | <DefineConstants>DEBUG;TRACE;NETFX_CORE;WINDOWS_UWP</DefineConstants> 45 | <NoWarn>;2008</NoWarn> 46 | <DebugType>full</DebugType> 47 | <PlatformTarget>ARM</PlatformTarget> 48 | <UseVSHostingProcess>false</UseVSHostingProcess> 49 | <ErrorReport>prompt</ErrorReport> 50 | <Prefer32Bit>true</Prefer32Bit> 51 | </PropertyGroup> 52 | <PropertyGroup Condition="'$(Configuration)|$(Platform)' == 'Release|ARM'"> 53 | <PlatformTarget>ARM</PlatformTarget> 54 | <OutputPath>bin\ARM\Release\</OutputPath> 55 | <DefineConstants>TRACE;NETFX_CORE;WINDOWS_UWP</DefineConstants> 56 | <Optimize>true</Optimize> 57 | <NoWarn>;2008</NoWarn> 58 | <DebugType>pdbonly</DebugType> 59 | <PlatformTarget>ARM</PlatformTarget> 60 | <UseVSHostingProcess>false</UseVSHostingProcess> 61 | <ErrorReport>prompt</ErrorReport> 62 | <Prefer32Bit>true</Prefer32Bit> 63 | </PropertyGroup> 64 | <PropertyGroup Condition="'$(Configuration)|$(Platform)' == 'Debug|x64'"> 65 | <PlatformTarget>x64</PlatformTarget> 66 | <DebugSymbols>true</DebugSymbols> 67 | <OutputPath>bin\x64\Debug\</OutputPath> 68 | <DefineConstants>DEBUG;TRACE;NETFX_CORE;WINDOWS_UWP</DefineConstants> 69 | <NoWarn>;2008</NoWarn> 70 | <DebugType>full</DebugType> 71 | <PlatformTarget>x64</PlatformTarget> 72 | <UseVSHostingProcess>false</UseVSHostingProcess> 73 | <ErrorReport>prompt</ErrorReport> 74 | <Prefer32Bit>true</Prefer32Bit> 75 | </PropertyGroup> 76 | <PropertyGroup Condition="'$(Configuration)|$(Platform)' == 'Release|x64'"> 77 | <PlatformTarget>x64</PlatformTarget> 78 | <OutputPath>bin\x64\Release\</OutputPath> 79 | <DefineConstants>TRACE;NETFX_CORE;WINDOWS_UWP</DefineConstants> 80 | <Optimize>true</Optimize> 81 | <NoWarn>;2008</NoWarn> 82 | <DebugType>pdbonly</DebugType> 83 | <PlatformTarget>x64</PlatformTarget> 84 | <UseVSHostingProcess>false</UseVSHostingProcess> 85 | <ErrorReport>prompt</ErrorReport> 86 | <Prefer32Bit>true</Prefer32Bit> 87 | </PropertyGroup> 88 | <PropertyGroup Condition="'$(Configuration)|$(Platform)' == 'Debug|x86'"> 89 | <PlatformTarget>x86</PlatformTarget> 90 | <DebugSymbols>true</DebugSymbols> 91 | <OutputPath>bin\x86\Debug\</OutputPath> 92 | <DefineConstants>DEBUG;TRACE;NETFX_CORE;WINDOWS_UWP</DefineConstants> 93 | <NoWarn>;2008</NoWarn> 94 | <DebugType>full</DebugType> 95 | <PlatformTarget>x86</PlatformTarget> 96 | <UseVSHostingProcess>false</UseVSHostingProcess> 97 | <ErrorReport>prompt</ErrorReport> 98 | <Prefer32Bit>true</Prefer32Bit> 99 | </PropertyGroup> 100 | <PropertyGroup Condition="'$(Configuration)|$(Platform)' == 'Release|x86'"> 101 | <PlatformTarget>x86</PlatformTarget> 102 | <OutputPath>bin\x86\Release\</OutputPath> 103 | <DefineConstants>TRACE;NETFX_CORE;WINDOWS_UWP</DefineConstants> 104 | <Optimize>true</Optimize> 105 | <NoWarn>;2008</NoWarn> 106 | <DebugType>pdbonly</DebugType> 107 | <PlatformTarget>x86</PlatformTarget> 108 | <UseVSHostingProcess>false</UseVSHostingProcess> 109 | <ErrorReport>prompt</ErrorReport> 110 | <Prefer32Bit>true</Prefer32Bit> 111 | </PropertyGroup> 112 | <ItemGroup> 113 | <!-- A reference to the entire .Net Framework and Windows SDK are automatically included --> 114 | <None Include="project.json" /> 115 | </ItemGroup> 116 | <ItemGroup> 117 | <Compile Include="AdaptiveTile.cs" /> 118 | <Compile Include="Alignment.cs" /> 119 | <Compile Include="Branding.cs" /> 120 | <Compile Include="Group.cs" /> 121 | <Compile Include="ImageCropping.cs" /> 122 | <Compile Include="ImagePlacement.cs" /> 123 | <Compile Include="Item.cs" /> 124 | <Compile Include="Properties\AssemblyInfo.cs" /> 125 | <Compile Include="SubGroup.cs" /> 126 | <Compile Include="TemplateType.cs" /> 127 | <Compile Include="Text.cs" /> 128 | <Compile Include="TextStacking.cs" /> 129 | <Compile Include="TextStyle.cs" /> 130 | <Compile Include="Tile.cs" /> 131 | <Compile Include="TileBinding.cs" /> 132 | <Compile Include="TileImage.cs" /> 133 | <Content Include="Properties\AdaptiveTileExtensions.rd.xml"> 134 | <CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory> 135 | </Content> 136 | </ItemGroup> 137 | <PropertyGroup Condition=" '$(VisualStudioVersion)' == '' or '$(VisualStudioVersion)' < '14.0' "> 138 | <VisualStudioVersion>14.0</VisualStudioVersion> 139 | </PropertyGroup> 140 | <Import Project="$(MSBuildExtensionsPath)\Microsoft\WindowsXaml\v$(VisualStudioVersion)\Microsoft.Windows.UI.Xaml.CSharp.targets" /> 141 | <!-- To modify your build process, add your task inside one of the targets below and uncomment it. 142 | Other similar extension points exist, see Microsoft.Common.targets. 143 | <Target Name="BeforeBuild"> 144 | </Target> 145 | <Target Name="AfterBuild"> 146 | </Target> 147 | --> 148 | </Project> -------------------------------------------------------------------------------- /AdaptiveTileExtensions/Alignment.cs: -------------------------------------------------------------------------------- 1 | namespace AdaptiveTileExtensions 2 | { 3 | public enum Alignment 4 | { 5 | Left, 6 | Center, 7 | Right, 8 | Stretch 9 | } 10 | } -------------------------------------------------------------------------------- /AdaptiveTileExtensions/Branding.cs: -------------------------------------------------------------------------------- 1 | namespace AdaptiveTileExtensions 2 | { 3 | public enum Branding 4 | { 5 | Name, 6 | None, 7 | Logo, 8 | NameAndLogo 9 | } 10 | } -------------------------------------------------------------------------------- /AdaptiveTileExtensions/Group.cs: -------------------------------------------------------------------------------- 1 | using System.Collections.Generic; 2 | using System.Text; 3 | 4 | namespace AdaptiveTileExtensions 5 | { 6 | internal class Group : Item 7 | { 8 | internal Group() 9 | { 10 | SubGroups = new List<SubGroup>(); 11 | } 12 | 13 | internal List<SubGroup> SubGroups { get; set; } 14 | internal override string GetXml() 15 | { 16 | var sb = new StringBuilder("<group>"); 17 | 18 | foreach (var subgroup in SubGroups) 19 | { 20 | sb.Append(subgroup.GetXml()); 21 | } 22 | 23 | sb.Append("</group>"); 24 | 25 | return sb.ToString(); 26 | } 27 | } 28 | } -------------------------------------------------------------------------------- /AdaptiveTileExtensions/ImageCropping.cs: -------------------------------------------------------------------------------- 1 | namespace AdaptiveTileExtensions 2 | { 3 | public enum ImageCropping 4 | { 5 | None, 6 | Circle 7 | } 8 | } -------------------------------------------------------------------------------- /AdaptiveTileExtensions/ImagePlacement.cs: -------------------------------------------------------------------------------- 1 | namespace AdaptiveTileExtensions 2 | { 3 | public enum ImagePlacement 4 | { 5 | Inline, 6 | Background, 7 | Peek 8 | } 9 | } -------------------------------------------------------------------------------- /AdaptiveTileExtensions/Item.cs: -------------------------------------------------------------------------------- 1 | namespace AdaptiveTileExtensions 2 | { 3 | public abstract class Item 4 | { 5 | internal abstract string GetXml(); 6 | } 7 | } -------------------------------------------------------------------------------- /AdaptiveTileExtensions/Properties/AdaptiveTileExtensions.rd.xml: -------------------------------------------------------------------------------- 1 | <?xml version="1.0" encoding="utf-8"?> 2 | <!-- 3 | This file contains Runtime Directives, specifications about types your application accesses 4 | through reflection and other dynamic code patterns. Runtime Directives are used to control the 5 | .NET Native optimizer and ensure that it does not remove code accessed by your library. If your 6 | library does not do any reflection, then you generally do not need to edit this file. However, 7 | if your library reflects over types, especially types passed to it or derived from its types, 8 | then you should write Runtime Directives. 9 | 10 | The most common use of reflection in libraries is to discover information about types passed 11 | to the library. Runtime Directives have three ways to express requirements on types passed to 12 | your library. 13 | 14 | 1. Parameter, GenericParameter, TypeParameter, TypeEnumerableParameter 15 | Use these directives to reflect over types passed as a parameter. 16 | 17 | 2. SubTypes 18 | Use a SubTypes directive to reflect over types derived from another type. 19 | 20 | 3. AttributeImplies 21 | Use an AttributeImplies directive to indicate that your library needs to reflect over 22 | types or methods decorated with an attribute. 23 | 24 | For more information on writing Runtime Directives for libraries, please visit 25 | http://go.microsoft.com/fwlink/?LinkId=613100 26 | --> 27 | <Directives xmlns="http://schemas.microsoft.com/netfx/2013/01/metadata"> 28 | <Library Name="AdaptiveTileExtensions"> 29 | 30 | <!-- add directives for your library here --> 31 | 32 | </Library> 33 | </Directives> 34 | -------------------------------------------------------------------------------- /AdaptiveTileExtensions/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("AdaptiveTileExtensions")] 9 | [assembly: AssemblyDescription("")] 10 | [assembly: AssemblyConfiguration("")] 11 | [assembly: AssemblyCompany("")] 12 | [assembly: AssemblyProduct("AdaptiveTileExtensions")] 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.1.0")] 28 | [assembly: AssemblyFileVersion("1.0.1.0")] 29 | [assembly: ComVisible(false)] -------------------------------------------------------------------------------- /AdaptiveTileExtensions/SubGroup.cs: -------------------------------------------------------------------------------- 1 | using System.Collections.Generic; 2 | using System.Text; 3 | 4 | namespace AdaptiveTileExtensions 5 | { 6 | public class SubGroup : Item 7 | { 8 | private readonly List<Item> _items = new List<Item>(); 9 | 10 | /// <summary> 11 | /// Gets or sets the width. 12 | /// NOTE: An 8px margin gets added between columns 13 | /// </summary> 14 | public int? Width { get; set; } 15 | 16 | public TextStacking? TextStacking { get; set; } 17 | 18 | public void AddText(Text text) 19 | { 20 | _items.Add(text); 21 | } 22 | 23 | public void AddImage(TileImage tileImage) 24 | { 25 | _items.Add(tileImage); 26 | } 27 | 28 | public void ClearItems() 29 | { 30 | _items.Clear(); 31 | } 32 | 33 | internal override string GetXml() 34 | { 35 | var sb = new StringBuilder("<subgroup"); 36 | 37 | if (Width.HasValue) 38 | { 39 | var width = $" hint-weight=\"{Width.Value}\""; 40 | sb.Append(width); 41 | } 42 | 43 | if (TextStacking.HasValue) 44 | { 45 | var textStacking = $" hint-textStacking=\"{TextStacking.Value}\""; 46 | sb.Append(textStacking); 47 | } 48 | 49 | sb.Append(">"); 50 | 51 | foreach (var item in _items) 52 | { 53 | sb.Append(item.GetXml()); 54 | } 55 | 56 | sb.Append("</subgroup>"); 57 | return sb.ToString(); 58 | } 59 | } 60 | } -------------------------------------------------------------------------------- /AdaptiveTileExtensions/TemplateType.cs: -------------------------------------------------------------------------------- 1 | namespace AdaptiveTileExtensions 2 | { 3 | public enum TemplateType 4 | { 5 | TileSmall, 6 | TileMedium, 7 | TileWide, 8 | 9 | /// <summary> 10 | /// The large tile size 11 | /// NOTE: This is for desktop only. 12 | /// </summary> 13 | TileLarge 14 | } 15 | } -------------------------------------------------------------------------------- /AdaptiveTileExtensions/Text.cs: -------------------------------------------------------------------------------- 1 | using System.Text; 2 | 3 | namespace AdaptiveTileExtensions 4 | { 5 | public class Text : Item 6 | { 7 | public string Content { get; set; } 8 | public TextStyle? Style { get; set; } 9 | public Alignment? Alignment { get; set; } 10 | public bool? WrapText { get; set; } 11 | public int? MaxLines { get; set; } 12 | 13 | /// <summary> 14 | /// Gets or sets whether the subtle style is applied. 15 | /// This results in a 60% opacity of text 16 | /// </summary> 17 | public bool? IsSubtleStyle { get; set; } 18 | 19 | /// <summary> 20 | /// Gets or sets the is numeral. 21 | /// This results in a reduction of line height so that content above and below come extremely close to the text 22 | /// This is only if the TextStyle is Title, SubHeader or Header 23 | /// </summary> 24 | public bool? IsNumeralStyle { get; set; } 25 | 26 | public Text() 27 | { 28 | } 29 | 30 | public Text(string content) 31 | { 32 | Content = content; 33 | } 34 | 35 | internal override string GetXml() 36 | { 37 | var sb = new StringBuilder("<text"); 38 | 39 | if (Style.HasValue) 40 | { 41 | var value = Style.Value.ToString().ToLowerInvariant(); 42 | if (IsSubtleStyle.HasValue && IsSubtleStyle.Value) 43 | { 44 | value += "Subtle"; 45 | } 46 | else 47 | { 48 | if (IsNumeralStyle.HasValue && IsNumeralStyle.Value) 49 | { 50 | value += "Numeral"; 51 | } 52 | } 53 | 54 | var style = $" hint-style=\"{value}\""; 55 | sb.Append(style); 56 | } 57 | 58 | if (Alignment.HasValue) 59 | { 60 | var alignment = $" hint-align=\"{Alignment.Value}\""; 61 | sb.Append(alignment); 62 | } 63 | 64 | if (WrapText.HasValue) 65 | { 66 | var wrapText = $" hint-wrap=\"{WrapText.Value}\""; 67 | sb.Append(wrapText); 68 | } 69 | 70 | if (MaxLines.HasValue) 71 | { 72 | var maxLines = $" hint-maxLines=\"{MaxLines.Value}\""; 73 | sb.Append(maxLines); 74 | } 75 | 76 | sb.Append($">{Content}</text>"); 77 | return sb.ToString(); 78 | } 79 | } 80 | } -------------------------------------------------------------------------------- /AdaptiveTileExtensions/TextStacking.cs: -------------------------------------------------------------------------------- 1 | namespace AdaptiveTileExtensions 2 | { 3 | public enum TextStacking 4 | { 5 | Top, 6 | Center, 7 | Bottom 8 | } 9 | } -------------------------------------------------------------------------------- /AdaptiveTileExtensions/TextStyle.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | 3 | namespace AdaptiveTileExtensions 4 | { 5 | public enum TextStyle 6 | { 7 | /// <summary> 8 | /// The caption style 9 | /// Font Height: 12epx 10 | /// Font Weight: Regular 11 | /// </summary> 12 | Caption, 13 | 14 | /// <summary> 15 | /// The base style 16 | /// Font Height: 15epx 17 | /// Font Weight: SemiBold 18 | /// </summary> 19 | Base, 20 | 21 | /// <summary> 22 | /// The body style 23 | /// Font Height: 15epx 24 | /// Font Weight: Regular 25 | /// </summary> 26 | Body, 27 | 28 | /// <summary> 29 | /// The caption subtle style 30 | /// Obsolete: Please use Caption, then set IsCaptionStyle = true 31 | /// </summary> 32 | [Obsolete("Please use Caption, then set IsCaptionStyle = true")] 33 | CaptionSubtle, 34 | 35 | /// <summary> 36 | /// The subtitle style 37 | /// Font Height: 20epx 38 | /// Font Weight: Regular 39 | /// </summary> 40 | Subtitle, 41 | 42 | /// <summary> 43 | /// The title style 44 | /// Font Height: 24epx 45 | /// Font Weight: SemiLight 46 | /// </summary> 47 | Title, 48 | 49 | /// <summary> 50 | /// The subheader style 51 | /// Font Height: 34epx 52 | /// Font Weight: Light 53 | /// </summary> 54 | Subheader, 55 | 56 | /// <summary> 57 | /// The header style 58 | /// Font Height: 46epx 59 | /// Font Weight: Light 60 | /// </summary> 61 | Header 62 | } 63 | } -------------------------------------------------------------------------------- /AdaptiveTileExtensions/Tile.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | using System.Text; 4 | using Windows.Data.Xml.Dom; 5 | using Windows.UI.Notifications; 6 | 7 | namespace AdaptiveTileExtensions 8 | { 9 | public class Tile 10 | { 11 | private const string Xml = "<tile version=\"{0}\"><visual>{1}</visual></tile>"; 12 | 13 | internal Tile(string version) 14 | { 15 | Version = version; 16 | Tiles = new List<TileBinding>(); 17 | } 18 | 19 | public string Version { get; set; } 20 | 21 | public List<TileBinding> Tiles { get; set; } 22 | 23 | private string GetXmlInternal() 24 | { 25 | var sb = new StringBuilder(); 26 | foreach (var tile in Tiles) 27 | { 28 | sb.Append(tile.GetXml()); 29 | } 30 | 31 | var xml = string.Format(Xml, Version, sb); 32 | return xml; 33 | } 34 | 35 | public TileNotification GetNotification() 36 | { 37 | var doc = new XmlDocument(); 38 | var xml = GetXmlInternal(); 39 | doc.LoadXml(xml); 40 | 41 | return new TileNotification(doc); 42 | } 43 | } 44 | } -------------------------------------------------------------------------------- /AdaptiveTileExtensions/TileBinding.cs: -------------------------------------------------------------------------------- 1 | using System.Collections.Generic; 2 | using System.Linq; 3 | using System.Text; 4 | 5 | namespace AdaptiveTileExtensions 6 | { 7 | public class TileBinding 8 | { 9 | private readonly List<Item> _items = new List<Item>(); 10 | private Group _group = new Group(); 11 | 12 | internal TileBinding() 13 | { 14 | 15 | } 16 | 17 | public static TileBinding Create(TemplateType templateType) 18 | { 19 | return new TileBinding { TemplateType = templateType }; 20 | } 21 | 22 | 23 | public TileImage BackgroundImage { get; set; } 24 | 25 | public TemplateType TemplateType { get; set; } 26 | 27 | public Branding? Branding { get; set; } 28 | 29 | public string DisplayName { get; set; } 30 | 31 | public TextStacking? TextStacking { get; set; } 32 | 33 | public int? OverlayOpacity { get; set; } 34 | 35 | public void Add(Item item) 36 | { 37 | var subGroup = item as SubGroup; 38 | if (subGroup != null) 39 | { 40 | AddSubgroup(subGroup); 41 | } 42 | else 43 | { 44 | _items.Add(item); 45 | } 46 | } 47 | 48 | /// <summary> 49 | /// Adds the subgroup. 50 | /// </summary> 51 | /// <param name="subGroup">The sub group.</param> 52 | /// <param name="addToNewGroup">if set to <c>true</c> [add to new group]. Once a new group has been added, no more subgroups can be added to any previous groups</param> 53 | public void AddSubgroup(SubGroup subGroup, bool addToNewGroup = false) 54 | { 55 | if (subGroup != null) 56 | { 57 | if (addToNewGroup) 58 | { 59 | _group = new Group(); 60 | } 61 | 62 | _group.SubGroups.Add(subGroup); 63 | 64 | var groupAdded = _items.LastOrDefault(x => x is Group); 65 | if (groupAdded == null || addToNewGroup) 66 | { 67 | _items.Add(_group); 68 | } 69 | } 70 | } 71 | 72 | public void ClearItems() 73 | { 74 | _items.Clear(); 75 | } 76 | 77 | internal string GetXml() 78 | { 79 | var sb = new StringBuilder($"<binding template=\"{TemplateType}\""); 80 | 81 | if (!string.IsNullOrEmpty(DisplayName)) 82 | { 83 | var displayName = $" displayName=\"{DisplayName}\""; 84 | sb.Append(displayName); 85 | } 86 | 87 | if (Branding.HasValue) 88 | { 89 | var branding = $" branding=\"{Branding.Value}\""; 90 | sb.Append(branding); 91 | } 92 | 93 | if (TextStacking.HasValue) 94 | { 95 | var textStacking = $" hint-textStacking=\"{TextStacking.Value}\""; 96 | sb.Append(textStacking); 97 | } 98 | 99 | if (OverlayOpacity.HasValue) 100 | { 101 | var overlay = $" hint-overlay=\"{OverlayOpacity.Value}\""; 102 | sb.Append(overlay); 103 | } 104 | 105 | sb.Append(">"); 106 | 107 | if (!string.IsNullOrEmpty(BackgroundImage?.Source)) 108 | { 109 | sb.Append(BackgroundImage.GetXml()); 110 | } 111 | 112 | foreach (var item in _items) 113 | { 114 | sb.Append(item.GetXml()); 115 | } 116 | 117 | sb.Append("</binding>"); 118 | return sb.ToString(); 119 | } 120 | } 121 | } -------------------------------------------------------------------------------- /AdaptiveTileExtensions/TileImage.cs: -------------------------------------------------------------------------------- 1 | using System.Text; 2 | 3 | namespace AdaptiveTileExtensions 4 | { 5 | public class TileImage : Item 6 | { 7 | public TileImage(ImagePlacement placement) 8 | { 9 | Placement = placement; 10 | } 11 | 12 | public ImagePlacement Placement { get; set; } 13 | public string Source { get; set; } 14 | public bool? RemoveMargin { get; set; } 15 | public Alignment? ImageAlignment { get; set; } 16 | public ImageCropping? ImageCropping { get; set; } 17 | 18 | internal override string GetXml() 19 | { 20 | var sb = new StringBuilder($"<image placement=\"{Placement}\""); 21 | 22 | var source = $" src=\"{Source}\""; 23 | sb.Append(source); 24 | 25 | if (RemoveMargin.HasValue) 26 | { 27 | var margin = $" hint-removeMargin=\"{RemoveMargin.Value}\""; 28 | sb.Append(margin); 29 | } 30 | 31 | if (ImageAlignment.HasValue) 32 | { 33 | var alignment = $" hint-align=\"{ImageAlignment.Value}\""; 34 | sb.Append(alignment); 35 | } 36 | 37 | if (ImageCropping.HasValue) 38 | { 39 | var cropping = $" hint-crop=\"{ImageCropping.Value}\""; 40 | sb.Append(cropping); 41 | } 42 | 43 | sb.Append("/>"); 44 | return sb.ToString(); 45 | } 46 | } 47 | } -------------------------------------------------------------------------------- /AdaptiveTileExtensions/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 | } -------------------------------------------------------------------------------- /AdaptiveTileExtensionsSample/AdaptiveTileExtensionsSample.csproj: -------------------------------------------------------------------------------- 1 | <?xml version="1.0" encoding="utf-8"?> 2 | <Project ToolsVersion="14.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> 3 | <Import Project="$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props" Condition="Exists('$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props')" /> 4 | <PropertyGroup> 5 | <Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration> 6 | <Platform Condition=" '$(Platform)' == '' ">x86</Platform> 7 | <ProjectGuid>{5647F0E9-8E7F-4DEB-84A9-6B733B20AFCF}</ProjectGuid> 8 | <OutputType>AppContainerExe</OutputType> 9 | <AppDesignerFolder>Properties</AppDesignerFolder> 10 | <RootNamespace>AdaptiveTileExtensionsSample</RootNamespace> 11 | <AssemblyName>AdaptiveTileExtensionsSample</AssemblyName> 12 | <DefaultLanguage>en-US</DefaultLanguage> 13 | <TargetPlatformIdentifier>UAP</TargetPlatformIdentifier> 14 | <TargetPlatformVersion>10.0.10240.0</TargetPlatformVersion> 15 | <TargetPlatformMinVersion>10.0.10240.0</TargetPlatformMinVersion> 16 | <MinimumVisualStudioVersion>14</MinimumVisualStudioVersion> 17 | <EnableDotNetNativeCompatibleProfile>true</EnableDotNetNativeCompatibleProfile> 18 | <FileAlignment>512</FileAlignment> 19 | <ProjectTypeGuids>{A5A43C5B-DE2A-4C0C-9213-0A381AF9435A};{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}</ProjectTypeGuids> 20 | <PackageCertificateKeyFile>AdaptiveTileExtensionsSample_TemporaryKey.pfx</PackageCertificateKeyFile> 21 | </PropertyGroup> 22 | <PropertyGroup Condition="'$(Configuration)|$(Platform)' == 'Debug|ARM'"> 23 | <DebugSymbols>true</DebugSymbols> 24 | <OutputPath>bin\ARM\Debug\</OutputPath> 25 | <DefineConstants>DEBUG;TRACE;NETFX_CORE;WINDOWS_UWP</DefineConstants> 26 | <NoWarn>;2008</NoWarn> 27 | <DebugType>full</DebugType> 28 | <PlatformTarget>ARM</PlatformTarget> 29 | <UseVSHostingProcess>false</UseVSHostingProcess> 30 | <ErrorReport>prompt</ErrorReport> 31 | <Prefer32Bit>true</Prefer32Bit> 32 | </PropertyGroup> 33 | <PropertyGroup Condition="'$(Configuration)|$(Platform)' == 'Release|ARM'"> 34 | <OutputPath>bin\ARM\Release\</OutputPath> 35 | <DefineConstants>TRACE;NETFX_CORE;WINDOWS_UWP</DefineConstants> 36 | <Optimize>true</Optimize> 37 | <NoWarn>;2008</NoWarn> 38 | <DebugType>pdbonly</DebugType> 39 | <PlatformTarget>ARM</PlatformTarget> 40 | <UseVSHostingProcess>false</UseVSHostingProcess> 41 | <ErrorReport>prompt</ErrorReport> 42 | <Prefer32Bit>true</Prefer32Bit> 43 | <UseDotNetNativeToolchain>true</UseDotNetNativeToolchain> 44 | </PropertyGroup> 45 | <PropertyGroup Condition="'$(Configuration)|$(Platform)' == 'Debug|x64'"> 46 | <DebugSymbols>true</DebugSymbols> 47 | <OutputPath>bin\x64\Debug\</OutputPath> 48 | <DefineConstants>DEBUG;TRACE;NETFX_CORE;WINDOWS_UWP</DefineConstants> 49 | <NoWarn>;2008</NoWarn> 50 | <DebugType>full</DebugType> 51 | <PlatformTarget>x64</PlatformTarget> 52 | <UseVSHostingProcess>false</UseVSHostingProcess> 53 | <ErrorReport>prompt</ErrorReport> 54 | <Prefer32Bit>true</Prefer32Bit> 55 | </PropertyGroup> 56 | <PropertyGroup Condition="'$(Configuration)|$(Platform)' == 'Release|x64'"> 57 | <OutputPath>bin\x64\Release\</OutputPath> 58 | <DefineConstants>TRACE;NETFX_CORE;WINDOWS_UWP</DefineConstants> 59 | <Optimize>true</Optimize> 60 | <NoWarn>;2008</NoWarn> 61 | <DebugType>pdbonly</DebugType> 62 | <PlatformTarget>x64</PlatformTarget> 63 | <UseVSHostingProcess>false</UseVSHostingProcess> 64 | <ErrorReport>prompt</ErrorReport> 65 | <Prefer32Bit>true</Prefer32Bit> 66 | <UseDotNetNativeToolchain>true</UseDotNetNativeToolchain> 67 | </PropertyGroup> 68 | <PropertyGroup Condition="'$(Configuration)|$(Platform)' == 'Debug|x86'"> 69 | <DebugSymbols>true</DebugSymbols> 70 | <OutputPath>bin\x86\Debug\</OutputPath> 71 | <DefineConstants>DEBUG;TRACE;NETFX_CORE;WINDOWS_UWP</DefineConstants> 72 | <NoWarn>;2008</NoWarn> 73 | <DebugType>full</DebugType> 74 | <PlatformTarget>x86</PlatformTarget> 75 | <UseVSHostingProcess>false</UseVSHostingProcess> 76 | <ErrorReport>prompt</ErrorReport> 77 | <Prefer32Bit>true</Prefer32Bit> 78 | </PropertyGroup> 79 | <PropertyGroup Condition="'$(Configuration)|$(Platform)' == 'Release|x86'"> 80 | <OutputPath>bin\x86\Release\</OutputPath> 81 | <DefineConstants>TRACE;NETFX_CORE;WINDOWS_UWP</DefineConstants> 82 | <Optimize>true</Optimize> 83 | <NoWarn>;2008</NoWarn> 84 | <DebugType>pdbonly</DebugType> 85 | <PlatformTarget>x86</PlatformTarget> 86 | <UseVSHostingProcess>false</UseVSHostingProcess> 87 | <ErrorReport>prompt</ErrorReport> 88 | <Prefer32Bit>true</Prefer32Bit> 89 | <UseDotNetNativeToolchain>true</UseDotNetNativeToolchain> 90 | </PropertyGroup> 91 | <ItemGroup> 92 | <!-- A reference to the entire .Net Framework and Windows SDK are automatically included --> 93 | <None Include="project.json" /> 94 | </ItemGroup> 95 | <ItemGroup> 96 | <Compile Include="App.xaml.cs"> 97 | <DependentUpon>App.xaml</DependentUpon> 98 | </Compile> 99 | <Compile Include="MainPage.xaml.cs"> 100 | <DependentUpon>MainPage.xaml</DependentUpon> 101 | </Compile> 102 | <Compile Include="Properties\AssemblyInfo.cs" /> 103 | </ItemGroup> 104 | <ItemGroup> 105 | <AppxManifest Include="Package.appxmanifest"> 106 | <SubType>Designer</SubType> 107 | </AppxManifest> 108 | <None Include="AdaptiveTileExtensionsSample_TemporaryKey.pfx" /> 109 | </ItemGroup> 110 | <ItemGroup> 111 | <Content Include="Properties\Default.rd.xml" /> 112 | <Content Include="Assets\LockScreenLogo.scale-200.png" /> 113 | <Content Include="Assets\SplashScreen.scale-200.png" /> 114 | <Content Include="Assets\Square150x150Logo.scale-200.png" /> 115 | <Content Include="Assets\Square44x44Logo.scale-200.png" /> 116 | <Content Include="Assets\Square44x44Logo.targetsize-24_altform-unplated.png" /> 117 | <Content Include="Assets\StoreLogo.png" /> 118 | <Content Include="Assets\Wide310x150Logo.scale-200.png" /> 119 | </ItemGroup> 120 | <ItemGroup> 121 | <ApplicationDefinition Include="App.xaml"> 122 | <Generator>MSBuild:Compile</Generator> 123 | <SubType>Designer</SubType> 124 | </ApplicationDefinition> 125 | <Page Include="MainPage.xaml"> 126 | <Generator>MSBuild:Compile</Generator> 127 | <SubType>Designer</SubType> 128 | </Page> 129 | </ItemGroup> 130 | <ItemGroup> 131 | <ProjectReference Include="..\AdaptiveTileExtensions\AdaptiveTileExtensions.csproj"> 132 | <Project>{e6fac682-37f7-48d6-9789-1548ab104e11}</Project> 133 | <Name>AdaptiveTileExtensions</Name> 134 | </ProjectReference> 135 | </ItemGroup> 136 | <PropertyGroup Condition=" '$(VisualStudioVersion)' == '' or '$(VisualStudioVersion)' < '14.0' "> 137 | <VisualStudioVersion>14.0</VisualStudioVersion> 138 | </PropertyGroup> 139 | <Import Project="$(MSBuildExtensionsPath)\Microsoft\WindowsXaml\v$(VisualStudioVersion)\Microsoft.Windows.UI.Xaml.CSharp.targets" /> 140 | <!-- To modify your build process, add your task inside one of the targets below and uncomment it. 141 | Other similar extension points exist, see Microsoft.Common.targets. 142 | <Target Name="BeforeBuild"> 143 | </Target> 144 | <Target Name="AfterBuild"> 145 | </Target> 146 | --> 147 | </Project> -------------------------------------------------------------------------------- /AdaptiveTileExtensionsSample/AdaptiveTileExtensionsSample_TemporaryKey.pfx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ScottIsAFool/AdaptiveTileExtensions/b1469edfcd0605dcd67590748b9bce68cb345eb7/AdaptiveTileExtensionsSample/AdaptiveTileExtensionsSample_TemporaryKey.pfx -------------------------------------------------------------------------------- /AdaptiveTileExtensionsSample/App.xaml: -------------------------------------------------------------------------------- 1 | <Application 2 | x:Class="AdaptiveTileExtensionsSample.App" 3 | xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" 4 | xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" 5 | xmlns:local="using:AdaptiveTileExtensionsSample" 6 | RequestedTheme="Light"> 7 | 8 | </Application> 9 | -------------------------------------------------------------------------------- /AdaptiveTileExtensionsSample/App.xaml.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Diagnostics; 3 | using Windows.ApplicationModel; 4 | using Windows.ApplicationModel.Activation; 5 | using Windows.UI.Xaml; 6 | using Windows.UI.Xaml.Controls; 7 | using Windows.UI.Xaml.Navigation; 8 | 9 | // The Blank Application template is documented at http://go.microsoft.com/fwlink/?LinkId=402347&clcid=0x409 10 | 11 | namespace AdaptiveTileExtensionsSample 12 | { 13 | /// <summary> 14 | /// Provides application-specific behavior to supplement the default Application class. 15 | /// </summary> 16 | sealed partial class App : Application 17 | { 18 | /// <summary> 19 | /// Initializes the singleton application object. This is the first line of authored code 20 | /// executed, and as such is the logical equivalent of main() or WinMain(). 21 | /// </summary> 22 | public App() 23 | { 24 | this.InitializeComponent(); 25 | this.Suspending += OnSuspending; 26 | } 27 | 28 | /// <summary> 29 | /// Invoked when the application is launched normally by the end user. Other entry points 30 | /// will be used such as when the application is launched to open a specific file. 31 | /// </summary> 32 | /// <param name="e">Details about the launch request and process.</param> 33 | protected override void OnLaunched(LaunchActivatedEventArgs e) 34 | { 35 | 36 | #if DEBUG 37 | if (Debugger.IsAttached) 38 | { 39 | this.DebugSettings.EnableFrameRateCounter = true; 40 | } 41 | #endif 42 | 43 | Frame rootFrame = Window.Current.Content as Frame; 44 | 45 | // Do not repeat app initialization when the Window already has content, 46 | // just ensure that the window is active 47 | if (rootFrame == null) 48 | { 49 | // Create a Frame to act as the navigation context and navigate to the first page 50 | rootFrame = new Frame(); 51 | 52 | rootFrame.NavigationFailed += OnNavigationFailed; 53 | 54 | if (e.PreviousExecutionState == ApplicationExecutionState.Terminated) 55 | { 56 | //TODO: Load state from previously suspended application 57 | } 58 | 59 | // Place the frame in the current Window 60 | Window.Current.Content = rootFrame; 61 | } 62 | 63 | if (rootFrame.Content == null) 64 | { 65 | // When the navigation stack isn't restored navigate to the first page, 66 | // configuring the new page by passing required information as a navigation 67 | // parameter 68 | rootFrame.Navigate(typeof(MainPage), e.Arguments); 69 | } 70 | // Ensure the current window is active 71 | Window.Current.Activate(); 72 | } 73 | 74 | /// <summary> 75 | /// Invoked when Navigation to a certain page fails 76 | /// </summary> 77 | /// <param name="sender">The Frame which failed navigation</param> 78 | /// <param name="e">Details about the navigation failure</param> 79 | void OnNavigationFailed(object sender, NavigationFailedEventArgs e) 80 | { 81 | throw new Exception("Failed to load Page " + e.SourcePageType.FullName); 82 | } 83 | 84 | /// <summary> 85 | /// Invoked when application execution is being suspended. Application state is saved 86 | /// without knowing whether the application will be terminated or resumed with the contents 87 | /// of memory still intact. 88 | /// </summary> 89 | /// <param name="sender">The source of the suspend request.</param> 90 | /// <param name="e">Details about the suspend request.</param> 91 | private void OnSuspending(object sender, SuspendingEventArgs e) 92 | { 93 | var deferral = e.SuspendingOperation.GetDeferral(); 94 | //TODO: Save application state and stop any background activity 95 | deferral.Complete(); 96 | } 97 | } 98 | } 99 | -------------------------------------------------------------------------------- /AdaptiveTileExtensionsSample/ApplicationInsights.config: -------------------------------------------------------------------------------- 1 | <?xml version="1.0" encoding="utf-8"?> 2 | <ApplicationInsights xmlns="http://schemas.microsoft.com/ApplicationInsights/2013/Settings"> 3 | <!-- 4 | Learn more about Application Insights configuration with ApplicationInsights.config here: 5 | http://go.microsoft.com/fwlink/?LinkID=513840 6 | 7 | Note: If not present, please add <InstrumentationKey>Your Key</InstrumentationKey> to the top of this file. 8 | --> 9 | <TelemetryModules> 10 | <Add Type="Microsoft.ApplicationInsights.Extensibility.Implementation.Tracing.DiagnosticsTelemetryModule, Microsoft.ApplicationInsights"/> 11 | <Add Type="Microsoft.ApplicationInsights.Extensibility.Windows.SessionTelemetryModule, Microsoft.ApplicationInsights.Extensibility.Windows"/> 12 | <Add Type="Microsoft.ApplicationInsights.Extensibility.Windows.PageViewTelemetryModule, Microsoft.ApplicationInsights.Extensibility.Windows"/> 13 | <Add Type="Microsoft.ApplicationInsights.Extensibility.Windows.UnhandledExceptionTelemetryModule, Microsoft.ApplicationInsights.Extensibility.Windows"/> 14 | </TelemetryModules> 15 | <TelemetryChannel Type="Microsoft.ApplicationInsights.Channel.PersistenceChannel, Microsoft.ApplicationInsights.PersistenceChannel"/> 16 | <ContextInitializers> 17 | <Add Type="Microsoft.ApplicationInsights.Extensibility.ComponentContextInitializer, Microsoft.ApplicationInsights"/> 18 | <Add Type="Microsoft.ApplicationInsights.Extensibility.DeviceContextInitializer, Microsoft.ApplicationInsights"/> 19 | </ContextInitializers> 20 | <TelemetryInitializers> 21 | <Add Type="Microsoft.ApplicationInsights.Extensibility.Windows.UserContextInitializer, Microsoft.ApplicationInsights.Extensibility.Windows"/> 22 | </TelemetryInitializers> 23 | </ApplicationInsights> -------------------------------------------------------------------------------- /AdaptiveTileExtensionsSample/Assets/LockScreenLogo.scale-200.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ScottIsAFool/AdaptiveTileExtensions/b1469edfcd0605dcd67590748b9bce68cb345eb7/AdaptiveTileExtensionsSample/Assets/LockScreenLogo.scale-200.png -------------------------------------------------------------------------------- /AdaptiveTileExtensionsSample/Assets/Logo.scale-100.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ScottIsAFool/AdaptiveTileExtensions/b1469edfcd0605dcd67590748b9bce68cb345eb7/AdaptiveTileExtensionsSample/Assets/Logo.scale-100.png -------------------------------------------------------------------------------- /AdaptiveTileExtensionsSample/Assets/SmallLogo.scale-100.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ScottIsAFool/AdaptiveTileExtensions/b1469edfcd0605dcd67590748b9bce68cb345eb7/AdaptiveTileExtensionsSample/Assets/SmallLogo.scale-100.png -------------------------------------------------------------------------------- /AdaptiveTileExtensionsSample/Assets/SplashScreen.scale-100.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ScottIsAFool/AdaptiveTileExtensions/b1469edfcd0605dcd67590748b9bce68cb345eb7/AdaptiveTileExtensionsSample/Assets/SplashScreen.scale-100.png -------------------------------------------------------------------------------- /AdaptiveTileExtensionsSample/Assets/SplashScreen.scale-200.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ScottIsAFool/AdaptiveTileExtensions/b1469edfcd0605dcd67590748b9bce68cb345eb7/AdaptiveTileExtensionsSample/Assets/SplashScreen.scale-200.png -------------------------------------------------------------------------------- /AdaptiveTileExtensionsSample/Assets/Square150x150Logo.scale-200.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ScottIsAFool/AdaptiveTileExtensions/b1469edfcd0605dcd67590748b9bce68cb345eb7/AdaptiveTileExtensionsSample/Assets/Square150x150Logo.scale-200.png -------------------------------------------------------------------------------- /AdaptiveTileExtensionsSample/Assets/Square44x44Logo.scale-200.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ScottIsAFool/AdaptiveTileExtensions/b1469edfcd0605dcd67590748b9bce68cb345eb7/AdaptiveTileExtensionsSample/Assets/Square44x44Logo.scale-200.png -------------------------------------------------------------------------------- /AdaptiveTileExtensionsSample/Assets/Square44x44Logo.targetsize-24_altform-unplated.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ScottIsAFool/AdaptiveTileExtensions/b1469edfcd0605dcd67590748b9bce68cb345eb7/AdaptiveTileExtensionsSample/Assets/Square44x44Logo.targetsize-24_altform-unplated.png -------------------------------------------------------------------------------- /AdaptiveTileExtensionsSample/Assets/StoreLogo.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ScottIsAFool/AdaptiveTileExtensions/b1469edfcd0605dcd67590748b9bce68cb345eb7/AdaptiveTileExtensionsSample/Assets/StoreLogo.png -------------------------------------------------------------------------------- /AdaptiveTileExtensionsSample/Assets/StoreLogo.scale-100.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ScottIsAFool/AdaptiveTileExtensions/b1469edfcd0605dcd67590748b9bce68cb345eb7/AdaptiveTileExtensionsSample/Assets/StoreLogo.scale-100.png -------------------------------------------------------------------------------- /AdaptiveTileExtensionsSample/Assets/Wide310x150Logo.scale-200.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ScottIsAFool/AdaptiveTileExtensions/b1469edfcd0605dcd67590748b9bce68cb345eb7/AdaptiveTileExtensionsSample/Assets/Wide310x150Logo.scale-200.png -------------------------------------------------------------------------------- /AdaptiveTileExtensionsSample/Assets/WideLogo.scale-100.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ScottIsAFool/AdaptiveTileExtensions/b1469edfcd0605dcd67590748b9bce68cb345eb7/AdaptiveTileExtensionsSample/Assets/WideLogo.scale-100.png -------------------------------------------------------------------------------- /AdaptiveTileExtensionsSample/MainPage.xaml: -------------------------------------------------------------------------------- 1 | <Page 2 | x:Class="AdaptiveTileExtensionsSample.MainPage" 3 | xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" 4 | xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" 5 | xmlns:local="using:AdaptiveTileExtensionsSample" 6 | xmlns:d="http://schemas.microsoft.com/expression/blend/2008" 7 | xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" 8 | mc:Ignorable="d"> 9 | 10 | <Grid Background="{ThemeResource ApplicationPageBackgroundThemeBrush}"> 11 | 12 | </Grid> 13 | </Page> 14 | -------------------------------------------------------------------------------- /AdaptiveTileExtensionsSample/MainPage.xaml.cs: -------------------------------------------------------------------------------- 1 | using Windows.UI.Notifications; 2 | using Windows.UI.Xaml; 3 | using Windows.UI.Xaml.Controls; 4 | using AdaptiveTileExtensions; 5 | 6 | // The Blank Page item template is documented at http://go.microsoft.com/fwlink/?LinkId=402352&clcid=0x409 7 | 8 | namespace AdaptiveTileExtensionsSample 9 | { 10 | /// <summary> 11 | /// An empty page that can be used on its own or navigated to within a Frame. 12 | /// </summary> 13 | public sealed partial class MainPage : Page 14 | { 15 | public MainPage() 16 | { 17 | this.InitializeComponent(); 18 | 19 | Loaded += OnLoaded; 20 | } 21 | 22 | private void OnLoaded(object sender, RoutedEventArgs routedEventArgs) 23 | { 24 | var tile = AdaptiveTile.CreateTile(); 25 | 26 | #region for wide tile with background 27 | 28 | var wideBinding = TileBinding.Create(TemplateType.TileWide); 29 | wideBinding.Branding = Branding.NameAndLogo; 30 | var wideLogo = new TileImage(ImagePlacement.Background) 31 | { 32 | Source = "http://fc02.deviantart.net/fs71/i/2013/359/a/4/deadpool_logo_1_fill_by_mr_droy-d5q6y5u.png" 33 | }; 34 | //background/peek images need to be at the root of the binding; 35 | wideBinding.BackgroundImage = wideLogo; 36 | 37 | var wideHeader = new Text("You have mail") {Style = TextStyle.Body}; 38 | var wideContent = new Text("Someone likes you!") {Style = TextStyle.Caption}; 39 | 40 | var wideSubgroup = new SubGroup(); 41 | wideSubgroup.AddText(wideHeader); 42 | wideSubgroup.AddText(wideContent); 43 | 44 | wideBinding.AddSubgroup(wideSubgroup, true); 45 | 46 | #endregion 47 | 48 | #region square tile 49 | 50 | var binding = TileBinding.Create(TemplateType.TileMedium); 51 | binding.Branding = Branding.None; 52 | 53 | var header = new Text("You have mail") { Style = TextStyle.Body, WrapText = true }; 54 | var content = new Text("Someone likes you!") { Style = TextStyle.Caption, IsSubtleStyle = true , WrapText = true,Alignment = Alignment.Center}; 55 | var logo = new TileImage(ImagePlacement.Inline) 56 | { 57 | Source = "http://fc02.deviantart.net/fs71/i/2013/359/a/4/deadpool_logo_1_fill_by_mr_droy-d5q6y5u.png" 58 | }; 59 | 60 | var imageSubgroup = new SubGroup() 61 | { 62 | Width = 20 63 | }; 64 | imageSubgroup.AddImage(logo); 65 | 66 | 67 | var subgroup = new SubGroup(); 68 | subgroup.AddText(header); 69 | subgroup.AddText(content); 70 | 71 | binding.AddSubgroup(imageSubgroup); 72 | binding.AddSubgroup(subgroup); 73 | 74 | #endregion 75 | 76 | // Add the types of tile bindings to the tile. 77 | tile.Tiles.Add(wideBinding); 78 | tile.Tiles.Add(binding); 79 | 80 | var notification = tile.GetNotification(); 81 | 82 | TileUpdateManager.CreateTileUpdaterForApplication().Update(notification); 83 | 84 | } 85 | } 86 | } 87 | -------------------------------------------------------------------------------- /AdaptiveTileExtensionsSample/Package.appxmanifest: -------------------------------------------------------------------------------- 1 | <?xml version="1.0" encoding="utf-8"?> 2 | 3 | <Package 4 | xmlns="http://schemas.microsoft.com/appx/manifest/foundation/windows10" 5 | xmlns:mp="http://schemas.microsoft.com/appx/2014/phone/manifest" 6 | xmlns:uap="http://schemas.microsoft.com/appx/manifest/uap/windows10" 7 | IgnorableNamespaces="uap mp"> 8 | 9 | <Identity 10 | Name="f1fe897d-4d41-478b-8051-388d071c11ea" 11 | Publisher="CN=scott" 12 | Version="1.0.0.0" /> 13 | 14 | <mp:PhoneIdentity PhoneProductId="f1fe897d-4d41-478b-8051-388d071c11ea" PhonePublisherId="00000000-0000-0000-0000-000000000000"/> 15 | 16 | <Properties> 17 | <DisplayName>AdaptiveTileExtensionsSample</DisplayName> 18 | <PublisherDisplayName>scott</PublisherDisplayName> 19 | <Logo>Assets\StoreLogo.png</Logo> 20 | </Properties> 21 | 22 | <Dependencies> 23 | <TargetDeviceFamily Name="Windows.Universal" MinVersion="10.0.10069.0" MaxVersionTested="10.0.10069.0" /> 24 | </Dependencies> 25 | 26 | <Resources> 27 | <Resource Language="x-generate"/> 28 | </Resources> 29 | 30 | <Applications> 31 | <Application Id="App" 32 | Executable="$targetnametoken$.exe" 33 | EntryPoint="AdaptiveTileExtensionsSample.App"> 34 | <uap:VisualElements 35 | DisplayName="AdaptiveTileExtensionsSample" 36 | Square150x150Logo="Assets\Logo.png" 37 | Square44x44Logo="Assets\SmallLogo.png" 38 | Description="AdaptiveTileExtensionsSample" 39 | BackgroundColor="#464646"> 40 | <uap:SplashScreen Image="Assets\SplashScreen.png" /> 41 | <uap:DefaultTile Wide310x150Logo="Assets\Wide.png"/> 42 | </uap:VisualElements> 43 | </Application> 44 | </Applications> 45 | 46 | <Capabilities> 47 | <Capability Name="internetClient" /> 48 | </Capabilities> 49 | </Package> -------------------------------------------------------------------------------- /AdaptiveTileExtensionsSample/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("AdaptiveTileExtensionsSample")] 9 | [assembly: AssemblyDescription("")] 10 | [assembly: AssemblyConfiguration("")] 11 | [assembly: AssemblyCompany("")] 12 | [assembly: AssemblyProduct("AdaptiveTileExtensionsSample")] 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)] -------------------------------------------------------------------------------- /AdaptiveTileExtensionsSample/Properties/Default.rd.xml: -------------------------------------------------------------------------------- 1 | <!-- 2 | This file contains Runtime Directives used by .NET Native. The defaults here are suitable for most 3 | developers. However, you can modify these parameters to modify the behavior of the .NET Native 4 | optimizer. 5 | 6 | Runtime Directives are documented at http://go.microsoft.com/fwlink/?LinkID=391919 7 | 8 | To fully enable reflection for App1.MyClass and all of its public/private members 9 | <Type Name="App1.MyClass" Dynamic="Required All"/> 10 | 11 | To enable dynamic creation of the specific instantiation of AppClass<T> over System.Int32 12 | <TypeInstantiation Name="App1.AppClass" Arguments="System.Int32" Activate="Required Public" /> 13 | 14 | Using the Namespace directive to apply reflection policy to all the types in a particular namespace 15 | <Namespace Name="DataClasses.ViewModels" Seralize="All" /> 16 | --> 17 | 18 | <Directives xmlns="http://schemas.microsoft.com/netfx/2013/01/metadata"> 19 | <Application> 20 | <!-- 21 | An Assembly element with Name="*Application*" applies to all assemblies in 22 | the application package. The asterisks are not wildcards. 23 | --> 24 | <Assembly Name="*Application*" Dynamic="Required All" /> 25 | 26 | 27 | <!-- Add your application specific runtime directives here. --> 28 | 29 | 30 | </Application> 31 | </Directives> -------------------------------------------------------------------------------- /AdaptiveTileExtensionsSample/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 | } -------------------------------------------------------------------------------- /License: -------------------------------------------------------------------------------- 1 | The MIT License (MIT) 2 | 3 | Copyright (c) Scott Lovegrove 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 | -------------------------------------------------------------------------------- /TileSample.PNG: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ScottIsAFool/AdaptiveTileExtensions/b1469edfcd0605dcd67590748b9bce68cb345eb7/TileSample.PNG -------------------------------------------------------------------------------- /readme.md: -------------------------------------------------------------------------------- 1 | #NOTE: This is now defunct, please use the official package, details [http://blogs.msdn.com/b/tiles_and_toasts/archive/2015/08/20/introducing-notificationsextensions-for-windows-10.aspx](http://blogs.msdn.com/b/tiles_and_toasts/archive/2015/08/20/introducing-notificationsextensions-for-windows-10.aspx) 2 | 3 | # Adaptive Tile Extensions 4 | 5 | Adaptive Tile Extensions is a project to more easily allow a developer to create the xml required for adaptive extensions in Windows 10. 6 | 7 | ## What are Adaptive Tiles? 8 | Information on what they are can be found in the Build 2015 talk about Tiles, Notifications and the Action Centre [https://channel9.msdn.com/Events/Build/2015/2-762](https://channel9.msdn.com/Events/Build/2015/2-762 "Tiles talk") 9 | 10 | ## Your code 11 | var tile = AdaptiveTile.CreateTile(); 12 | var binding = TileBinding.Create(TemplateType.TileWide); 13 | binding.Branding = Branding.None; 14 | 15 | var header = new Text("You have mail") {Style = TextStyle.Body}; 16 | var content = new Text("Someone likes you!") {Style = TextStyle.Caption}; 17 | var logo = new TileImage(ImagePlacement.Inline) 18 | { 19 | Source = "http://fc02.deviantart.net/fs71/i/2013/359/a/4/deadpool_logo_1_fill_by_mr_droy-d5q6y5u.png" 20 | }; 21 | 22 | var logoSubGroup = new SubGroup {Width = 40}; 23 | logoSubGroup.AddImage(logo); 24 | 25 | var subgroup = new SubGroup(); 26 | subgroup.AddText(header); 27 | subgroup.AddText(content); 28 | 29 | binding.Add(logoSubGroup); 30 | binding.Add(subgroup); 31 | 32 | tile.Tiles.Add(binding); 33 | var notification = tile.GetNotification(); 34 | 35 | ## The Generated XML 36 | <tile version="3"><visual><binding template="TileWide" branding="None"><group><subgroup hint-weight="40"><image placement="Inline" src="http://fc02.deviantart.net/fs71/i/2013/359/a/4/deadpool_logo_1_fill_by_mr_droy-d5q6y5u.png"/></subgroup><subgroup><text hint-style="Body">You have mail</text><text hint-style="Caption">Someone likes you!</text></subgroup></group></binding></visual></tile> 37 | 38 | ## The Resulting Tile 39 | ![Wide Tile](https://raw.githubusercontent.com/ScottIsAFool/AdaptiveTileExtensions/master/TileSample.PNG) 40 | 41 | This helper is a quick and easy way for you to create all the information for a tile, for whatever size you want to support, without having to deal with generating the XML yourself. 42 | 43 | --------------------------------------------------------------------------------