├── .gitattributes ├── .gitignore ├── CubeKit.UI ├── Controls │ ├── Settings │ │ ├── Converters.cs │ │ ├── SettingsBlockControl.xaml │ │ ├── SettingsBlockControl.xaml.cs │ │ ├── SettingsDisplayControl.xaml │ │ └── SettingsDisplayControl.xaml.cs │ └── Toolkit │ │ ├── DropShadowPanel.Properties.cs │ │ ├── DropShadowPanel.xaml │ │ └── DropShadowPanel.xaml.cs ├── CubeKit.UI.csproj ├── Properties │ ├── AssemblyInfo.cs │ └── CubeKit.UI.rd.xml └── Styles │ ├── CubeThemeDictionary.xaml │ ├── CubeUI.xaml │ ├── GlowGradientUI.xaml │ └── GlowUI.xaml ├── TemplateApp.sln └── TemplateApp ├── App.xaml ├── App.xaml.cs ├── Assets ├── LockScreenLogo.scale-200.png ├── SplashScreen.scale-200.png ├── Square150x150Logo.scale-200.png ├── Square44x44Logo.scale-200.png ├── Square44x44Logo.targetsize-24_altform-unplated.png ├── StoreLogo.png └── Wide310x150Logo.scale-200.png ├── MainPage.xaml ├── MainPage.xaml.cs ├── Package.appxmanifest ├── Properties ├── AssemblyInfo.cs └── Default.rd.xml └── TemplateApp.csproj /.gitattributes: -------------------------------------------------------------------------------- 1 | ############################################################################### 2 | # Set default behavior to automatically normalize line endings. 3 | ############################################################################### 4 | * text=auto 5 | 6 | ############################################################################### 7 | # Set default behavior for command prompt diff. 8 | # 9 | # This is need for earlier builds of msysgit that does not have it on by 10 | # default for csharp files. 11 | # Note: This is only used by command line 12 | ############################################################################### 13 | #*.cs diff=csharp 14 | 15 | ############################################################################### 16 | # Set the merge driver for project and solution files 17 | # 18 | # Merging from the command prompt will add diff markers to the files if there 19 | # are conflicts (Merging from VS is not affected by the settings below, in VS 20 | # the diff markers are never inserted). Diff markers may cause the following 21 | # file extensions to fail to load in VS. An alternative would be to treat 22 | # these files as binary and thus will always conflict and require user 23 | # intervention with every merge. To do so, just uncomment the entries below 24 | ############################################################################### 25 | #*.sln merge=binary 26 | #*.csproj merge=binary 27 | #*.vbproj merge=binary 28 | #*.vcxproj merge=binary 29 | #*.vcproj merge=binary 30 | #*.dbproj merge=binary 31 | #*.fsproj merge=binary 32 | #*.lsproj merge=binary 33 | #*.wixproj merge=binary 34 | #*.modelproj merge=binary 35 | #*.sqlproj merge=binary 36 | #*.wwaproj merge=binary 37 | 38 | ############################################################################### 39 | # behavior for image files 40 | # 41 | # image files are treated as binary by default. 42 | ############################################################################### 43 | #*.jpg binary 44 | #*.png binary 45 | #*.gif binary 46 | 47 | ############################################################################### 48 | # diff behavior for common document formats 49 | # 50 | # Convert binary document formats to text before diffing them. This feature 51 | # is only available from the command line. Turn it on by uncommenting the 52 | # entries below. 53 | ############################################################################### 54 | #*.doc diff=astextplain 55 | #*.DOC diff=astextplain 56 | #*.docx diff=astextplain 57 | #*.DOCX diff=astextplain 58 | #*.dot diff=astextplain 59 | #*.DOT diff=astextplain 60 | #*.pdf diff=astextplain 61 | #*.PDF diff=astextplain 62 | #*.rtf diff=astextplain 63 | #*.RTF diff=astextplain 64 | -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | ## Ignore Visual Studio temporary files, build results, and 2 | ## files generated by popular Visual Studio add-ons. 3 | ## 4 | ## Get latest from https://github.com/github/gitignore/blob/master/VisualStudio.gitignore 5 | 6 | # User-specific files 7 | *.rsuser 8 | *.suo 9 | *.user 10 | *.userosscache 11 | *.sln.docstates 12 | 13 | # User-specific files (MonoDevelop/Xamarin Studio) 14 | *.userprefs 15 | 16 | # Mono auto generated files 17 | mono_crash.* 18 | 19 | # Build results 20 | [Dd]ebug/ 21 | [Dd]ebugPublic/ 22 | [Rr]elease/ 23 | [Rr]eleases/ 24 | x64/ 25 | x86/ 26 | [Ww][Ii][Nn]32/ 27 | [Aa][Rr][Mm]/ 28 | [Aa][Rr][Mm]64/ 29 | bld/ 30 | [Bb]in/ 31 | [Oo]bj/ 32 | [Oo]ut/ 33 | [Ll]og/ 34 | [Ll]ogs/ 35 | 36 | # Visual Studio 2015/2017 cache/options directory 37 | .vs/ 38 | # Uncomment if you have tasks that create the project's static files in wwwroot 39 | #wwwroot/ 40 | 41 | # Visual Studio 2017 auto generated files 42 | Generated\ Files/ 43 | 44 | # MSTest test Results 45 | [Tt]est[Rr]esult*/ 46 | [Bb]uild[Ll]og.* 47 | 48 | # NUnit 49 | *.VisualState.xml 50 | TestResult.xml 51 | nunit-*.xml 52 | 53 | # Build Results of an ATL Project 54 | [Dd]ebugPS/ 55 | [Rr]eleasePS/ 56 | dlldata.c 57 | 58 | # Benchmark Results 59 | BenchmarkDotNet.Artifacts/ 60 | 61 | # .NET Core 62 | project.lock.json 63 | project.fragment.lock.json 64 | artifacts/ 65 | 66 | # ASP.NET Scaffolding 67 | ScaffoldingReadMe.txt 68 | 69 | # StyleCop 70 | StyleCopReport.xml 71 | 72 | # Files built by Visual Studio 73 | *_i.c 74 | *_p.c 75 | *_h.h 76 | *.ilk 77 | *.meta 78 | *.obj 79 | *.iobj 80 | *.pch 81 | *.pdb 82 | *.ipdb 83 | *.pgc 84 | *.pgd 85 | *.rsp 86 | *.sbr 87 | *.tlb 88 | *.tli 89 | *.tlh 90 | *.tmp 91 | *.tmp_proj 92 | *_wpftmp.csproj 93 | *.log 94 | *.vspscc 95 | *.vssscc 96 | .builds 97 | *.pidb 98 | *.svclog 99 | *.scc 100 | 101 | # Chutzpah Test files 102 | _Chutzpah* 103 | 104 | # Visual C++ cache files 105 | ipch/ 106 | *.aps 107 | *.ncb 108 | *.opendb 109 | *.opensdf 110 | *.sdf 111 | *.cachefile 112 | *.VC.db 113 | *.VC.VC.opendb 114 | 115 | # Visual Studio profiler 116 | *.psess 117 | *.vsp 118 | *.vspx 119 | *.sap 120 | 121 | # Visual Studio Trace Files 122 | *.e2e 123 | 124 | # TFS 2012 Local Workspace 125 | $tf/ 126 | 127 | # Guidance Automation Toolkit 128 | *.gpState 129 | 130 | # ReSharper is a .NET coding add-in 131 | _ReSharper*/ 132 | *.[Rr]e[Ss]harper 133 | *.DotSettings.user 134 | 135 | # TeamCity is a build add-in 136 | _TeamCity* 137 | 138 | # DotCover is a Code Coverage Tool 139 | *.dotCover 140 | 141 | # AxoCover is a Code Coverage Tool 142 | .axoCover/* 143 | !.axoCover/settings.json 144 | 145 | # Coverlet is a free, cross platform Code Coverage Tool 146 | coverage*.json 147 | coverage*.xml 148 | coverage*.info 149 | 150 | # Visual Studio code coverage results 151 | *.coverage 152 | *.coveragexml 153 | 154 | # NCrunch 155 | _NCrunch_* 156 | .*crunch*.local.xml 157 | nCrunchTemp_* 158 | 159 | # MightyMoose 160 | *.mm.* 161 | AutoTest.Net/ 162 | 163 | # Web workbench (sass) 164 | .sass-cache/ 165 | 166 | # Installshield output folder 167 | [Ee]xpress/ 168 | 169 | # DocProject is a documentation generator add-in 170 | DocProject/buildhelp/ 171 | DocProject/Help/*.HxT 172 | DocProject/Help/*.HxC 173 | DocProject/Help/*.hhc 174 | DocProject/Help/*.hhk 175 | DocProject/Help/*.hhp 176 | DocProject/Help/Html2 177 | DocProject/Help/html 178 | 179 | # Click-Once directory 180 | publish/ 181 | 182 | # Publish Web Output 183 | *.[Pp]ublish.xml 184 | *.azurePubxml 185 | # Note: Comment the next line if you want to checkin your web deploy settings, 186 | # but database connection strings (with potential passwords) will be unencrypted 187 | *.pubxml 188 | *.publishproj 189 | 190 | # Microsoft Azure Web App publish settings. Comment the next line if you want to 191 | # checkin your Azure Web App publish settings, but sensitive information contained 192 | # in these scripts will be unencrypted 193 | PublishScripts/ 194 | 195 | # NuGet Packages 196 | *.nupkg 197 | # NuGet Symbol Packages 198 | *.snupkg 199 | # The packages folder can be ignored because of Package Restore 200 | **/[Pp]ackages/* 201 | # except build/, which is used as an MSBuild target. 202 | !**/[Pp]ackages/build/ 203 | # Uncomment if necessary however generally it will be regenerated when needed 204 | #!**/[Pp]ackages/repositories.config 205 | # NuGet v3's project.json files produces more ignorable files 206 | *.nuget.props 207 | *.nuget.targets 208 | 209 | # Microsoft Azure Build Output 210 | csx/ 211 | *.build.csdef 212 | 213 | # Microsoft Azure Emulator 214 | ecf/ 215 | rcf/ 216 | 217 | # Windows Store app package directories and files 218 | AppPackages/ 219 | BundleArtifacts/ 220 | Package.StoreAssociation.xml 221 | _pkginfo.txt 222 | *.appx 223 | *.appxbundle 224 | *.appxupload 225 | 226 | # Visual Studio cache files 227 | # files ending in .cache can be ignored 228 | *.[Cc]ache 229 | # but keep track of directories ending in .cache 230 | !?*.[Cc]ache/ 231 | 232 | # Others 233 | ClientBin/ 234 | ~$* 235 | *~ 236 | *.dbmdl 237 | *.dbproj.schemaview 238 | *.jfm 239 | *.pfx 240 | *.publishsettings 241 | orleans.codegen.cs 242 | 243 | # Including strong name files can present a security risk 244 | # (https://github.com/github/gitignore/pull/2483#issue-259490424) 245 | #*.snk 246 | 247 | # Since there are multiple workflows, uncomment next line to ignore bower_components 248 | # (https://github.com/github/gitignore/pull/1529#issuecomment-104372622) 249 | #bower_components/ 250 | 251 | # RIA/Silverlight projects 252 | Generated_Code/ 253 | 254 | # Backup & report files from converting an old project file 255 | # to a newer Visual Studio version. Backup files are not needed, 256 | # because we have git ;-) 257 | _UpgradeReport_Files/ 258 | Backup*/ 259 | UpgradeLog*.XML 260 | UpgradeLog*.htm 261 | ServiceFabricBackup/ 262 | *.rptproj.bak 263 | 264 | # SQL Server files 265 | *.mdf 266 | *.ldf 267 | *.ndf 268 | 269 | # Business Intelligence projects 270 | *.rdl.data 271 | *.bim.layout 272 | *.bim_*.settings 273 | *.rptproj.rsuser 274 | *- [Bb]ackup.rdl 275 | *- [Bb]ackup ([0-9]).rdl 276 | *- [Bb]ackup ([0-9][0-9]).rdl 277 | 278 | # Microsoft Fakes 279 | FakesAssemblies/ 280 | 281 | # GhostDoc plugin setting file 282 | *.GhostDoc.xml 283 | 284 | # Node.js Tools for Visual Studio 285 | .ntvs_analysis.dat 286 | node_modules/ 287 | 288 | # Visual Studio 6 build log 289 | *.plg 290 | 291 | # Visual Studio 6 workspace options file 292 | *.opt 293 | 294 | # Visual Studio 6 auto-generated workspace file (contains which files were open etc.) 295 | *.vbw 296 | 297 | # Visual Studio LightSwitch build output 298 | **/*.HTMLClient/GeneratedArtifacts 299 | **/*.DesktopClient/GeneratedArtifacts 300 | **/*.DesktopClient/ModelManifest.xml 301 | **/*.Server/GeneratedArtifacts 302 | **/*.Server/ModelManifest.xml 303 | _Pvt_Extensions 304 | 305 | # Paket dependency manager 306 | .paket/paket.exe 307 | paket-files/ 308 | 309 | # FAKE - F# Make 310 | .fake/ 311 | 312 | # CodeRush personal settings 313 | .cr/personal 314 | 315 | # Python Tools for Visual Studio (PTVS) 316 | __pycache__/ 317 | *.pyc 318 | 319 | # Cake - Uncomment if you are using it 320 | # tools/** 321 | # !tools/packages.config 322 | 323 | # Tabs Studio 324 | *.tss 325 | 326 | # Telerik's JustMock configuration file 327 | *.jmconfig 328 | 329 | # BizTalk build output 330 | *.btp.cs 331 | *.btm.cs 332 | *.odx.cs 333 | *.xsd.cs 334 | 335 | # OpenCover UI analysis results 336 | OpenCover/ 337 | 338 | # Azure Stream Analytics local run output 339 | ASALocalRun/ 340 | 341 | # MSBuild Binary and Structured Log 342 | *.binlog 343 | 344 | # NVidia Nsight GPU debugger configuration file 345 | *.nvuser 346 | 347 | # MFractors (Xamarin productivity tool) working folder 348 | .mfractor/ 349 | 350 | # Local History for Visual Studio 351 | .localhistory/ 352 | 353 | # BeatPulse healthcheck temp database 354 | healthchecksdb 355 | 356 | # Backup folder for Package Reference Convert tool in Visual Studio 2017 357 | MigrationBackup/ 358 | 359 | # Ionide (cross platform F# VS Code tools) working folder 360 | .ionide/ 361 | 362 | # Fody - auto-generated XML schema 363 | FodyWeavers.xsd -------------------------------------------------------------------------------- /CubeKit.UI/Controls/Settings/Converters.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using Windows.UI.Xaml; 3 | using Windows.UI.Xaml.Data; 4 | 5 | #nullable enable 6 | 7 | namespace CubeKit.UI.Controls.Settings 8 | { 9 | /// 10 | /// The generic base implementation of a value converter. 11 | /// 12 | /// The source type. 13 | /// The target type. 14 | public abstract class ValueConverter 15 | : IValueConverter 16 | { 17 | /// 18 | /// Converts a source value to the target type. 19 | /// 20 | /// 21 | /// 22 | public TTarget? Convert(TSource? value) 23 | { 24 | return Convert(value, null, null); 25 | } 26 | 27 | /// 28 | /// Converts a target value back to the source type. 29 | /// 30 | /// 31 | /// 32 | public TSource? ConvertBack(TTarget? value) 33 | { 34 | return ConvertBack(value, null, null); 35 | } 36 | 37 | /// 38 | /// Modifies the source data before passing it to the target for display in the UI. 39 | /// 40 | /// 41 | /// 42 | /// 43 | /// 44 | /// 45 | public object? Convert(object? value, Type? targetType, object? parameter, string? language) 46 | { 47 | // CastExceptions will occur when invalid value, or target type provided. 48 | return Convert((TSource?)value, parameter, language); 49 | } 50 | 51 | /// 52 | /// Modifies the target data before passing it to the source object. This method is called only in TwoWay bindings. 53 | /// 54 | /// 55 | /// 56 | /// 57 | /// 58 | /// 59 | public object? ConvertBack(object? value, Type? targetType, object? parameter, string? language) 60 | { 61 | // CastExceptions will occur when invalid value, or target type provided. 62 | return ConvertBack((TTarget?)value, parameter, language); 63 | } 64 | 65 | /// 66 | /// Converts a source value to the target type. 67 | /// 68 | /// 69 | /// 70 | /// 71 | /// 72 | protected virtual TTarget? Convert(TSource? value, object? parameter, string? language) 73 | { 74 | throw new NotSupportedException(); 75 | } 76 | 77 | /// 78 | /// Converts a target value back to the source type. 79 | /// 80 | /// 81 | /// 82 | /// 83 | /// 84 | protected virtual TSource? ConvertBack(TTarget? value, object? parameter, string? language) 85 | { 86 | throw new NotSupportedException(); 87 | } 88 | } 89 | 90 | /// 91 | /// The base class for converting instances of type T to object and vice versa. 92 | /// 93 | public abstract class ToObjectConverter 94 | : ValueConverter 95 | { 96 | /// 97 | /// Converts a source value to the target type. 98 | /// 99 | /// 100 | /// 101 | /// 102 | /// 103 | protected override object? Convert(T? value, object? parameter, string? language) 104 | { 105 | return value; 106 | } 107 | 108 | /// 109 | /// Converts a target value back to the source type. 110 | /// 111 | /// 112 | /// 113 | /// 114 | /// 115 | protected override T? ConvertBack(object? value, object? parameter, string? language) 116 | { 117 | return (T?)value; 118 | } 119 | } 120 | 121 | /// 122 | /// Converts a boolean to and from a visibility value. 123 | /// 124 | public class InverseBooleanConverter 125 | : ValueConverter 126 | { 127 | /// 128 | /// Converts a source value to the target type. 129 | /// 130 | /// 131 | /// 132 | /// 133 | /// 134 | protected override bool Convert(bool value, object? parameter, string? language) 135 | { 136 | return !value; 137 | } 138 | 139 | /// 140 | /// Converts a target value back to the source type. 141 | /// 142 | /// 143 | /// 144 | /// 145 | /// 146 | protected override bool ConvertBack(bool value, object? parameter, string? language) 147 | { 148 | return !value; 149 | } 150 | } 151 | 152 | public class NullToTrueConverter 153 | : ValueConverter 154 | { 155 | /// 156 | /// Determines whether an inverse conversion should take place. 157 | /// 158 | /// If set, the value True results in , and false in . 159 | public bool Inverse { get; set; } 160 | 161 | /// 162 | /// Converts a source value to the target type. 163 | /// 164 | /// 165 | /// 166 | /// 167 | /// 168 | protected override bool Convert(object? value, object? parameter, string? language) 169 | { 170 | return Inverse ? value != null : value == null; 171 | } 172 | 173 | /// 174 | /// Converts a target value back to the source type. 175 | /// 176 | /// 177 | /// 178 | /// 179 | /// 180 | protected override object? ConvertBack(bool value, object? parameter, string? language) 181 | { 182 | return null; 183 | } 184 | } 185 | 186 | public class StringNullOrWhiteSpaceToTrueConverter 187 | : ValueConverter 188 | { 189 | /// 190 | /// Determines whether an inverse conversion should take place. 191 | /// 192 | /// If set, the value True results in , and false in . 193 | public bool Inverse { get; set; } 194 | 195 | /// 196 | /// Converts a source value to the target type. 197 | /// 198 | /// 199 | /// 200 | /// 201 | /// 202 | protected override bool Convert(string? value, object? parameter, string? language) 203 | { 204 | return Inverse ? !string.IsNullOrWhiteSpace(value) : string.IsNullOrWhiteSpace(value); 205 | } 206 | 207 | /// 208 | /// Converts a target value back to the source type. 209 | /// 210 | /// 211 | /// 212 | /// 213 | /// 214 | protected override string ConvertBack(bool value, object? parameter, string? language) 215 | { 216 | return string.Empty; 217 | } 218 | } 219 | } 220 | -------------------------------------------------------------------------------- /CubeKit.UI/Controls/Settings/SettingsBlockControl.xaml: -------------------------------------------------------------------------------- 1 |  12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 26 | 27 | 36 | 37 | 47 | 48 | 49 | 50 | 51 | 52 | 53 | 54 | 55 | 61 | 62 | 63 | 64 | 65 | 66 | 67 | 68 | 69 | 70 | 77 | 78 | 79 | 80 | 81 | 82 | 87 | 88 | 89 | 90 | 91 | -------------------------------------------------------------------------------- /CubeKit.UI/Controls/Settings/SettingsBlockControl.xaml.cs: -------------------------------------------------------------------------------- 1 | using Windows.UI.Xaml; 2 | using Windows.UI.Xaml.Controls; 3 | using Windows.UI.Xaml.Markup; 4 | 5 | namespace CubeKit.UI.Controls.Settings 6 | { 7 | [ContentProperty(Name = nameof(SettingsActionableElement))] 8 | public sealed partial class SettingsBlockControl : UserControl 9 | { 10 | public FrameworkElement SettingsActionableElement { get; set; } 11 | 12 | public static readonly DependencyProperty ExpandableContentProperty = DependencyProperty.Register( 13 | "ExpandableContent", 14 | typeof(FrameworkElement), 15 | typeof(SettingsBlockControl), 16 | new PropertyMetadata(null) 17 | ); 18 | 19 | public FrameworkElement ExpandableContent 20 | { 21 | get => (FrameworkElement)GetValue(ExpandableContentProperty); 22 | set => SetValue(ExpandableContentProperty, value); 23 | } 24 | 25 | public static readonly DependencyProperty AdditionalDescriptionContentProperty = DependencyProperty.Register( 26 | "AdditionalDescriptionContent", 27 | typeof(FrameworkElement), 28 | typeof(SettingsBlockControl), 29 | new PropertyMetadata(null) 30 | ); 31 | 32 | public FrameworkElement AdditionalDescriptionContent 33 | { 34 | get => (FrameworkElement)GetValue(AdditionalDescriptionContentProperty); 35 | set => SetValue(AdditionalDescriptionContentProperty, value); 36 | } 37 | 38 | public static readonly DependencyProperty TitleProperty = DependencyProperty.Register( 39 | "Title", 40 | typeof(string), 41 | typeof(SettingsBlockControl), 42 | new PropertyMetadata(null) 43 | ); 44 | 45 | public string Title 46 | { 47 | get => (string)GetValue(TitleProperty); 48 | set => SetValue(TitleProperty, value); 49 | } 50 | 51 | public static readonly DependencyProperty DescriptionProperty = DependencyProperty.Register( 52 | "Description", 53 | typeof(string), 54 | typeof(SettingsBlockControl), 55 | new PropertyMetadata(null) 56 | ); 57 | 58 | public string Description 59 | { 60 | get => (string)GetValue(DescriptionProperty); 61 | set => SetValue(DescriptionProperty, value); 62 | } 63 | 64 | public static readonly DependencyProperty IconProperty = DependencyProperty.Register( 65 | "Icon", 66 | typeof(IconElement), 67 | typeof(SettingsBlockControl), 68 | new PropertyMetadata(null) 69 | ); 70 | 71 | public IconElement Icon 72 | { 73 | get => (IconElement)GetValue(IconProperty); 74 | set => SetValue(IconProperty, value); 75 | } 76 | 77 | public static readonly DependencyProperty IsClickableProperty = DependencyProperty.Register( 78 | "IsClickable", 79 | typeof(bool), 80 | typeof(SettingsBlockControl), 81 | new PropertyMetadata(false) 82 | ); 83 | 84 | public bool IsClickable 85 | { 86 | get => (bool)GetValue(IsClickableProperty); 87 | set => SetValue(IsClickableProperty, value); 88 | } 89 | 90 | // 91 | // Summary: 92 | // Occurs when a button control is clicked. 93 | public event RoutedEventHandler Click; 94 | 95 | public SettingsBlockControl() 96 | { 97 | this.InitializeComponent(); 98 | } 99 | 100 | private void ActionableButton_Click(object sender, RoutedEventArgs e) 101 | { 102 | Click?.Invoke(this, e); 103 | } 104 | 105 | private void Expander_Expanding(Microsoft.UI.Xaml.Controls.Expander sender, Microsoft.UI.Xaml.Controls.ExpanderExpandingEventArgs args) 106 | { 107 | Click?.Invoke(this, new RoutedEventArgs()); 108 | } 109 | 110 | private void Expander_Collapsed(Microsoft.UI.Xaml.Controls.Expander sender, Microsoft.UI.Xaml.Controls.ExpanderCollapsedEventArgs args) 111 | { 112 | Click?.Invoke(this, new RoutedEventArgs()); 113 | } 114 | } 115 | } 116 | -------------------------------------------------------------------------------- /CubeKit.UI/Controls/Settings/SettingsDisplayControl.xaml: -------------------------------------------------------------------------------- 1 |  12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 25 | 26 | 27 | 28 | 29 | 30 | 31 | 32 | 33 | 34 | 35 | 36 | 37 | 38 | 39 | 40 | 41 | 42 | 43 | 44 | 45 | 46 | 47 | 48 | 49 | 50 | 51 | 52 | 53 | 54 | 55 | 56 | 57 | 58 | 62 | 63 | 67 | 68 | 69 | 70 | 71 | 72 | 73 | 77 | 78 | 83 | 84 | 88 | 89 | 90 | 97 | 98 | 99 | -------------------------------------------------------------------------------- /CubeKit.UI/Controls/Settings/SettingsDisplayControl.xaml.cs: -------------------------------------------------------------------------------- 1 | using Windows.UI.Xaml; 2 | using Windows.UI.Xaml.Controls; 3 | using Windows.UI.Xaml.Markup; 4 | 5 | namespace CubeKit.UI.Controls.Settings 6 | { 7 | [ContentProperty(Name = nameof(SettingsActionableElement))] 8 | public sealed partial class SettingsDisplayControl : UserControl 9 | { 10 | public FrameworkElement SettingsActionableElement { get; set; } 11 | 12 | public static readonly DependencyProperty AdditionalDescriptionContentProperty = DependencyProperty.Register( 13 | "AdditionalDescriptionContent", 14 | typeof(FrameworkElement), 15 | typeof(SettingsDisplayControl), 16 | new PropertyMetadata(null) 17 | ); 18 | 19 | public FrameworkElement AdditionalDescriptionContent 20 | { 21 | get => (FrameworkElement)GetValue(AdditionalDescriptionContentProperty); 22 | set => SetValue(AdditionalDescriptionContentProperty, value); 23 | } 24 | 25 | public static readonly DependencyProperty TitleProperty = DependencyProperty.Register( 26 | "Title", 27 | typeof(string), 28 | typeof(SettingsDisplayControl), 29 | new PropertyMetadata(null) 30 | ); 31 | 32 | public string Title 33 | { 34 | get => (string)GetValue(TitleProperty); 35 | set => SetValue(TitleProperty, value); 36 | } 37 | 38 | public static readonly DependencyProperty DescriptionProperty = DependencyProperty.Register( 39 | "Description", 40 | typeof(string), 41 | typeof(SettingsDisplayControl), 42 | new PropertyMetadata(null) 43 | ); 44 | 45 | public string Description 46 | { 47 | get => (string)GetValue(DescriptionProperty); 48 | set => SetValue(DescriptionProperty, value); 49 | } 50 | 51 | public static readonly DependencyProperty IconProperty = DependencyProperty.Register( 52 | "Icon", 53 | typeof(IconElement), 54 | typeof(SettingsDisplayControl), 55 | new PropertyMetadata(null) 56 | ); 57 | 58 | public IconElement Icon 59 | { 60 | get => (IconElement)GetValue(IconProperty); 61 | set => SetValue(IconProperty, value); 62 | } 63 | 64 | public SettingsDisplayControl() 65 | { 66 | this.InitializeComponent(); 67 | VisualStateManager.GoToState(this, "NormalState", false); 68 | } 69 | 70 | private void MainPanel_SizeChanged(object sender, SizeChangedEventArgs e) 71 | { 72 | if (e.NewSize.Width == e.PreviousSize.Width || ActionableElement == null) 73 | return; 74 | 75 | if (ActionableElement.ActualWidth > e.NewSize.Width / 3) 76 | { 77 | VisualStateManager.GoToState(this, "CompactState", false); 78 | } 79 | else 80 | { 81 | VisualStateManager.GoToState(this, "NormalState", false); 82 | } 83 | } 84 | } 85 | } 86 | -------------------------------------------------------------------------------- /CubeKit.UI/Controls/Toolkit/DropShadowPanel.Properties.cs: -------------------------------------------------------------------------------- 1 | using Microsoft.Toolkit.Uwp.UI; 2 | using System; 3 | using System.Collections.Generic; 4 | using System.Linq; 5 | using System.Text; 6 | using System.Threading.Tasks; 7 | using Windows.UI; 8 | using Windows.UI.Composition; 9 | using Windows.UI.Xaml; 10 | 11 | namespace CubeKit.UI.Controls.Toolkit 12 | { 13 | /// 14 | /// The control allows the creation of a DropShadow for any Xaml FrameworkElement in markup 15 | /// making it easier to add shadows to Xaml without having to directly drop down to Windows.UI.Composition APIs. 16 | /// 17 | public partial class DropShadowPanel 18 | { 19 | /// 20 | /// Identifies the dependency property. 21 | /// 22 | public static readonly DependencyProperty BlurRadiusProperty = 23 | DependencyProperty.Register(nameof(BlurRadius), typeof(double), typeof(DropShadowPanel), new PropertyMetadata(9.0, OnBlurRadiusChanged)); 24 | 25 | /// 26 | /// Identifies the dependency property. 27 | /// 28 | public static readonly DependencyProperty ColorProperty = 29 | DependencyProperty.Register(nameof(Color), typeof(Color), typeof(DropShadowPanel), new PropertyMetadata(Colors.Black, OnColorChanged)); 30 | 31 | /// 32 | /// Identifies the dependency property. 33 | /// 34 | public static readonly DependencyProperty OffsetXProperty = 35 | DependencyProperty.Register(nameof(OffsetX), typeof(double), typeof(DropShadowPanel), new PropertyMetadata(0.0, OnOffsetXChanged)); 36 | 37 | /// 38 | /// Identifies the dependency property. 39 | /// 40 | public static readonly DependencyProperty OffsetYProperty = 41 | DependencyProperty.Register(nameof(OffsetY), typeof(double), typeof(DropShadowPanel), new PropertyMetadata(0.0, OnOffsetYChanged)); 42 | 43 | /// 44 | /// Identifies the dependency property. 45 | /// 46 | public static readonly DependencyProperty OffsetZProperty = 47 | DependencyProperty.Register(nameof(OffsetZ), typeof(double), typeof(DropShadowPanel), new PropertyMetadata(0.0, OnOffsetZChanged)); 48 | 49 | /// 50 | /// Identifies the dependency property. 51 | /// 52 | public static readonly DependencyProperty ShadowOpacityProperty = 53 | DependencyProperty.Register(nameof(ShadowOpacity), typeof(double), typeof(DropShadowPanel), new PropertyMetadata(1.0, OnShadowOpacityChanged)); 54 | 55 | /// 56 | /// Identifies the dependency property. 57 | /// 58 | public static readonly DependencyProperty IsMaskedProperty = 59 | DependencyProperty.Register(nameof(IsMasked), typeof(bool), typeof(DropShadowPanel), new PropertyMetadata(true, OnIsMaskedChanged)); 60 | 61 | /// 62 | /// Gets DropShadow. Exposes the underlying composition object to allow custom Windows.UI.Composition animations. 63 | /// 64 | public DropShadow DropShadow => _dropShadow; 65 | 66 | /// 67 | /// Gets or sets the mask of the underlying . 68 | /// Allows for a custom to be set. 69 | /// 70 | public CompositionBrush Mask 71 | { 72 | get 73 | { 74 | return _dropShadow?.Mask; 75 | } 76 | 77 | set 78 | { 79 | if (_dropShadow != null) 80 | { 81 | _dropShadow.Mask = value; 82 | } 83 | } 84 | } 85 | 86 | /// 87 | /// Gets or sets the blur radius of the drop shadow. 88 | /// 89 | public double BlurRadius 90 | { 91 | get 92 | { 93 | return (double)GetValue(BlurRadiusProperty); 94 | } 95 | 96 | set 97 | { 98 | SetValue(BlurRadiusProperty, value); 99 | } 100 | } 101 | 102 | /// 103 | /// Gets or sets the color of the drop shadow. 104 | /// 105 | public Color Color 106 | { 107 | get 108 | { 109 | return (Color)GetValue(ColorProperty); 110 | } 111 | 112 | set 113 | { 114 | SetValue(ColorProperty, value); 115 | } 116 | } 117 | 118 | /// 119 | /// Gets or sets the x offset of the drop shadow. 120 | /// 121 | public double OffsetX 122 | { 123 | get 124 | { 125 | return (double)GetValue(OffsetXProperty); 126 | } 127 | 128 | set 129 | { 130 | SetValue(OffsetXProperty, value); 131 | } 132 | } 133 | 134 | /// 135 | /// Gets or sets the y offset of the drop shadow. 136 | /// 137 | public double OffsetY 138 | { 139 | get 140 | { 141 | return (double)GetValue(OffsetYProperty); 142 | } 143 | 144 | set 145 | { 146 | SetValue(OffsetYProperty, value); 147 | } 148 | } 149 | 150 | /// 151 | /// Gets or sets the z offset of the drop shadow. 152 | /// 153 | public double OffsetZ 154 | { 155 | get 156 | { 157 | return (double)GetValue(OffsetZProperty); 158 | } 159 | 160 | set 161 | { 162 | SetValue(OffsetZProperty, value); 163 | } 164 | } 165 | 166 | /// 167 | /// Gets or sets the opacity of the drop shadow. 168 | /// 169 | public double ShadowOpacity 170 | { 171 | get 172 | { 173 | return (double)GetValue(ShadowOpacityProperty); 174 | } 175 | 176 | set 177 | { 178 | SetValue(ShadowOpacityProperty, value); 179 | } 180 | } 181 | 182 | /// 183 | /// Gets or sets a value indicating whether the panel uses an alpha mask to create a more precise shadow vs. a quicker rectangle shape. 184 | /// 185 | /// 186 | /// Turn this off to lose fidelity and gain performance of the panel. 187 | /// 188 | public bool IsMasked 189 | { 190 | get { return (bool)GetValue(IsMaskedProperty); } 191 | set { SetValue(IsMaskedProperty, value); } 192 | } 193 | 194 | private static void OnBlurRadiusChanged(DependencyObject d, DependencyPropertyChangedEventArgs e) 195 | { 196 | if (!DesignTimeHelpers.IsRunningInLegacyDesignerMode && d is DropShadowPanel panel) 197 | { 198 | panel.OnBlurRadiusChanged((double)e.NewValue); 199 | } 200 | } 201 | 202 | private static void OnColorChanged(DependencyObject d, DependencyPropertyChangedEventArgs e) 203 | { 204 | if (!DesignTimeHelpers.IsRunningInLegacyDesignerMode && d is DropShadowPanel panel) 205 | { 206 | panel.OnColorChanged((Color)e.NewValue); 207 | } 208 | } 209 | 210 | private static void OnOffsetXChanged(DependencyObject d, DependencyPropertyChangedEventArgs e) 211 | { 212 | if (!DesignTimeHelpers.IsRunningInLegacyDesignerMode && d is DropShadowPanel panel) 213 | { 214 | panel.OnOffsetXChanged((double)e.NewValue); 215 | } 216 | } 217 | 218 | private static void OnOffsetYChanged(DependencyObject d, DependencyPropertyChangedEventArgs e) 219 | { 220 | if (!DesignTimeHelpers.IsRunningInLegacyDesignerMode && d is DropShadowPanel panel) 221 | { 222 | panel.OnOffsetYChanged((double)e.NewValue); 223 | } 224 | } 225 | 226 | private static void OnOffsetZChanged(DependencyObject d, DependencyPropertyChangedEventArgs e) 227 | { 228 | if (!DesignTimeHelpers.IsRunningInLegacyDesignerMode && d is DropShadowPanel panel) 229 | { 230 | panel.OnOffsetZChanged((double)e.NewValue); 231 | } 232 | } 233 | 234 | private static void OnShadowOpacityChanged(DependencyObject d, DependencyPropertyChangedEventArgs e) 235 | { 236 | if (!DesignTimeHelpers.IsRunningInLegacyDesignerMode && d is DropShadowPanel panel) 237 | { 238 | panel.OnShadowOpacityChanged((double)e.NewValue); 239 | } 240 | } 241 | 242 | private static void OnIsMaskedChanged(DependencyObject d, DependencyPropertyChangedEventArgs e) 243 | { 244 | if (!DesignTimeHelpers.IsRunningInLegacyDesignerMode && d is DropShadowPanel panel) 245 | { 246 | panel.UpdateShadowMask(); 247 | } 248 | } 249 | } 250 | } 251 | -------------------------------------------------------------------------------- /CubeKit.UI/Controls/Toolkit/DropShadowPanel.xaml: -------------------------------------------------------------------------------- 1 |  4 | 5 | 30 | -------------------------------------------------------------------------------- /CubeKit.UI/Controls/Toolkit/DropShadowPanel.xaml.cs: -------------------------------------------------------------------------------- 1 | using Microsoft.Toolkit.Uwp.UI; 2 | using System; 3 | using System.Collections.Generic; 4 | using System.IO; 5 | using System.Linq; 6 | using System.Numerics; 7 | using System.Runtime.InteropServices.WindowsRuntime; 8 | using Windows.Foundation; 9 | using Windows.Foundation.Collections; 10 | using Windows.UI; 11 | using Windows.UI.Composition; 12 | using Windows.UI.Xaml; 13 | using Windows.UI.Xaml.Controls; 14 | using Windows.UI.Xaml.Controls.Primitives; 15 | using Windows.UI.Xaml.Data; 16 | using Windows.UI.Xaml.Hosting; 17 | using Windows.UI.Xaml.Input; 18 | using Windows.UI.Xaml.Media; 19 | using Windows.UI.Xaml.Navigation; 20 | using Windows.UI.Xaml.Shapes; 21 | 22 | // The User Control item template is documented at https://go.microsoft.com/fwlink/?LinkId=234236 23 | 24 | namespace CubeKit.UI.Controls.Toolkit 25 | { 26 | /// 27 | /// The control allows the creation of a DropShadow for any Xaml FrameworkElement in markup 28 | /// making it easier to add shadows to Xaml without having to directly drop down to Windows.UI.Composition APIs. 29 | /// 30 | [Obsolete("DropShadowPanel will be removed in a future release, please use the AttachedDropShadow or AttachedCardShadow implementations instead.")] 31 | [TemplatePart(Name = PartShadow, Type = typeof(Border))] 32 | public partial class DropShadowPanel : ContentControl 33 | { 34 | private const string PartShadow = "ShadowElement"; 35 | 36 | private readonly DropShadow _dropShadow; 37 | private readonly SpriteVisual _shadowVisual; 38 | private Border _border; 39 | 40 | /// 41 | /// Initializes a new instance of the class. 42 | /// 43 | public DropShadowPanel() 44 | { 45 | this.DefaultStyleKey = typeof(DropShadowPanel); 46 | 47 | if (!DesignTimeHelpers.IsRunningInLegacyDesignerMode) 48 | { 49 | Compositor compositor = ElementCompositionPreview.GetElementVisual(this).Compositor; 50 | 51 | _shadowVisual = compositor.CreateSpriteVisual(); 52 | 53 | _dropShadow = compositor.CreateDropShadow(); 54 | _shadowVisual.Shadow = _dropShadow; 55 | } 56 | } 57 | 58 | /// 59 | /// Update the visual state of the control when its template is changed. 60 | /// 61 | protected override void OnApplyTemplate() 62 | { 63 | if (DesignTimeHelpers.IsRunningInLegacyDesignerMode) 64 | { 65 | return; 66 | } 67 | 68 | _border = GetTemplateChild(PartShadow) as Border; 69 | 70 | if (_border != null) 71 | { 72 | ElementCompositionPreview.SetElementChildVisual(_border, _shadowVisual); 73 | } 74 | 75 | ConfigureShadowVisualForCastingElement(); 76 | 77 | base.OnApplyTemplate(); 78 | } 79 | 80 | /// 81 | protected override void OnContentChanged(object oldContent, object newContent) 82 | { 83 | if (oldContent != null) 84 | { 85 | if (oldContent is FrameworkElement oldElement) 86 | { 87 | oldElement.SizeChanged -= OnSizeChanged; 88 | } 89 | } 90 | 91 | if (newContent != null) 92 | { 93 | if (newContent is FrameworkElement newElement) 94 | { 95 | newElement.SizeChanged += OnSizeChanged; 96 | } 97 | } 98 | 99 | UpdateShadowMask(); 100 | 101 | base.OnContentChanged(oldContent, newContent); 102 | } 103 | 104 | private void OnSizeChanged(object sender, SizeChangedEventArgs e) 105 | { 106 | if (!DesignTimeHelpers.IsRunningInLegacyDesignerMode) 107 | { 108 | UpdateShadowSize(); 109 | } 110 | } 111 | 112 | private void ConfigureShadowVisualForCastingElement() 113 | { 114 | UpdateShadowMask(); 115 | 116 | if (!DesignTimeHelpers.IsRunningInLegacyDesignerMode) 117 | { 118 | UpdateShadowSize(); 119 | } 120 | } 121 | 122 | private void OnBlurRadiusChanged(double newValue) 123 | { 124 | if (_dropShadow != null) 125 | { 126 | _dropShadow.BlurRadius = (float)newValue; 127 | } 128 | } 129 | 130 | private void OnColorChanged(Color newValue) 131 | { 132 | if (_dropShadow != null) 133 | { 134 | _dropShadow.Color = newValue; 135 | } 136 | } 137 | 138 | private void OnOffsetXChanged(double newValue) 139 | { 140 | if (!DesignTimeHelpers.IsRunningInLegacyDesignerMode && _dropShadow != null) 141 | { 142 | UpdateShadowOffset((float)newValue, _dropShadow.Offset.Y, _dropShadow.Offset.Z); 143 | } 144 | } 145 | 146 | private void OnOffsetYChanged(double newValue) 147 | { 148 | if (!DesignTimeHelpers.IsRunningInLegacyDesignerMode && _dropShadow != null) 149 | { 150 | UpdateShadowOffset(_dropShadow.Offset.X, (float)newValue, _dropShadow.Offset.Z); 151 | } 152 | } 153 | 154 | private void OnOffsetZChanged(double newValue) 155 | { 156 | if (!DesignTimeHelpers.IsRunningInLegacyDesignerMode && _dropShadow != null) 157 | { 158 | UpdateShadowOffset(_dropShadow.Offset.X, _dropShadow.Offset.Y, (float)newValue); 159 | } 160 | } 161 | 162 | private void OnShadowOpacityChanged(double newValue) 163 | { 164 | if (_dropShadow != null) 165 | { 166 | _dropShadow.Opacity = (float)newValue; 167 | } 168 | } 169 | 170 | private void UpdateShadowMask() 171 | { 172 | if (DesignTimeHelpers.IsRunningInLegacyDesignerMode) 173 | { 174 | return; 175 | } 176 | 177 | if (Content != null && IsMasked) 178 | { 179 | CompositionBrush mask = null; 180 | 181 | // We check for IAlphaMaskProvider first, to ensure that we use the custom 182 | // alpha mask even if Content happens to extend any of the other classes 183 | if (Content is IAlphaMaskProvider maskedControl) 184 | { 185 | if (maskedControl.WaitUntilLoaded && maskedControl is FrameworkElement element && !element.IsLoaded) 186 | { 187 | element.Loaded += CustomMaskedElement_Loaded; 188 | } 189 | else 190 | { 191 | mask = maskedControl.GetAlphaMask(); 192 | } 193 | } 194 | else if (Content is Image) 195 | { 196 | mask = ((Image)Content).GetAlphaMask(); 197 | } 198 | else if (Content is Shape) 199 | { 200 | mask = ((Shape)Content).GetAlphaMask(); 201 | } 202 | else if (Content is TextBlock) 203 | { 204 | mask = ((TextBlock)Content).GetAlphaMask(); 205 | } 206 | 207 | _dropShadow.Mask = mask; 208 | } 209 | else 210 | { 211 | _dropShadow.Mask = null; 212 | } 213 | } 214 | 215 | private void CustomMaskedElement_Loaded(object sender, RoutedEventArgs e) 216 | { 217 | if (sender is FrameworkElement element) 218 | { 219 | element.Loaded -= CustomMaskedElement_Loaded; 220 | 221 | _dropShadow.Mask = ((IAlphaMaskProvider)element).GetAlphaMask(); 222 | } 223 | } 224 | 225 | private void UpdateShadowOffset(float x, float y, float z) 226 | { 227 | if (_dropShadow != null) 228 | { 229 | _dropShadow.Offset = new Vector3(x, y, z); 230 | } 231 | } 232 | 233 | private void UpdateShadowSize() 234 | { 235 | if (_shadowVisual != null) 236 | { 237 | Vector2 newSize = new Vector2(0, 0); 238 | if (Content is FrameworkElement contentFE) 239 | { 240 | newSize = new Vector2((float)contentFE.ActualWidth, (float)contentFE.ActualHeight); 241 | } 242 | 243 | _shadowVisual.Size = newSize; 244 | } 245 | } 246 | } 247 | } 248 | -------------------------------------------------------------------------------- /CubeKit.UI/CubeKit.UI.csproj: -------------------------------------------------------------------------------- 1 |  2 | 3 | 4 | 5 | Debug 6 | AnyCPU 7 | {73936751-6325-49CE-8A7B-7006D6135B19} 8 | Library 9 | Properties 10 | CubeKit.UI 11 | CubeKit.UI 12 | en-US 13 | UAP 14 | 10.0.22000.0 15 | 10.0.22000.0 16 | 14 17 | 512 18 | 9.0 19 | {A5A43C5B-DE2A-4C0C-9213-0A381AF9435A};{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC} 20 | 21 | 22 | AnyCPU 23 | true 24 | full 25 | false 26 | bin\Debug\ 27 | DEBUG;TRACE;NETFX_CORE;WINDOWS_UWP 28 | prompt 29 | 4 30 | 31 | 32 | AnyCPU 33 | pdbonly 34 | true 35 | bin\Release\ 36 | TRACE;NETFX_CORE;WINDOWS_UWP 37 | prompt 38 | 4 39 | 40 | 41 | x86 42 | true 43 | bin\x86\Debug\ 44 | DEBUG;TRACE;NETFX_CORE;WINDOWS_UWP 45 | ;2008 46 | full 47 | false 48 | prompt 49 | 50 | 51 | x86 52 | bin\x86\Release\ 53 | TRACE;NETFX_CORE;WINDOWS_UWP 54 | true 55 | ;2008 56 | pdbonly 57 | false 58 | prompt 59 | 60 | 61 | ARM 62 | true 63 | bin\ARM\Debug\ 64 | DEBUG;TRACE;NETFX_CORE;WINDOWS_UWP 65 | ;2008 66 | full 67 | false 68 | prompt 69 | 70 | 71 | ARM 72 | bin\ARM\Release\ 73 | TRACE;NETFX_CORE;WINDOWS_UWP 74 | true 75 | ;2008 76 | pdbonly 77 | false 78 | prompt 79 | 80 | 81 | ARM64 82 | true 83 | bin\ARM64\Debug\ 84 | DEBUG;TRACE;NETFX_CORE;WINDOWS_UWP 85 | ;2008 86 | full 87 | false 88 | prompt 89 | 90 | 91 | ARM64 92 | bin\ARM64\Release\ 93 | TRACE;NETFX_CORE;WINDOWS_UWP 94 | true 95 | ;2008 96 | pdbonly 97 | false 98 | prompt 99 | 100 | 101 | x64 102 | true 103 | bin\x64\Debug\ 104 | DEBUG;TRACE;NETFX_CORE;WINDOWS_UWP 105 | ;2008 106 | full 107 | false 108 | prompt 109 | 110 | 111 | x64 112 | bin\x64\Release\ 113 | TRACE;NETFX_CORE;WINDOWS_UWP 114 | true 115 | ;2008 116 | pdbonly 117 | false 118 | prompt 119 | 120 | 121 | PackageReference 122 | 123 | 124 | 125 | 126 | SettingsBlockControl.xaml 127 | 128 | 129 | SettingsDisplayControl.xaml 130 | 131 | 132 | 133 | DropShadowPanel.xaml 134 | 135 | 136 | 137 | 138 | 139 | 140 | 1.1.110 141 | 142 | 143 | 6.2.11 144 | 145 | 146 | 7.1.2 147 | 148 | 149 | 7.1.2 150 | 151 | 152 | 2.7.0 153 | 154 | 155 | 156 | 157 | MSBuild:Compile 158 | Designer 159 | 160 | 161 | MSBuild:Compile 162 | Designer 163 | 164 | 165 | Designer 166 | MSBuild:Compile 167 | 168 | 169 | Designer 170 | MSBuild:Compile 171 | 172 | 173 | Designer 174 | MSBuild:Compile 175 | 176 | 177 | Designer 178 | MSBuild:Compile 179 | 180 | 181 | Designer 182 | MSBuild:Compile 183 | 184 | 185 | 186 | 187 | 14.0 188 | 189 | 190 | 197 | -------------------------------------------------------------------------------- /CubeKit.UI/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("CubeKit.UI")] 9 | [assembly: AssemblyDescription("")] 10 | [assembly: AssemblyConfiguration("")] 11 | [assembly: AssemblyCompany("")] 12 | [assembly: AssemblyProduct("CubeKit.UI")] 13 | [assembly: AssemblyCopyright("Copyright © 2022")] 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)] -------------------------------------------------------------------------------- /CubeKit.UI/Properties/CubeKit.UI.rd.xml: -------------------------------------------------------------------------------- 1 | 2 | 27 | 28 | 29 | 30 | 31 | 32 | 33 | 34 | -------------------------------------------------------------------------------- /CubeKit.UI/Styles/CubeThemeDictionary.xaml: -------------------------------------------------------------------------------- 1 |  4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | 31 | 32 | 33 | 34 | 35 | 36 | 37 | 38 | 39 | 40 | 41 | 42 | 43 | 44 | 45 | 46 | 47 | 48 | 49 | 50 | 51 | 52 | 53 | 54 | 55 | 56 | 57 | 58 | 59 | 60 | 61 | 62 | 63 | 64 | 65 | 66 | 67 | 68 | 69 | 70 | -------------------------------------------------------------------------------- /CubeKit.UI/Styles/CubeUI.xaml: -------------------------------------------------------------------------------- 1 |  5 | 6 | 7 | 8 | 680 | 681 | -------------------------------------------------------------------------------- /CubeKit.UI/Styles/GlowUI.xaml: -------------------------------------------------------------------------------- 1 |  6 | 7 | 8 | 9 | 10 | 423 | 639 | 640 | -------------------------------------------------------------------------------- /TemplateApp.sln: -------------------------------------------------------------------------------- 1 |  2 | Microsoft Visual Studio Solution File, Format Version 12.00 3 | # Visual Studio Version 16 4 | VisualStudioVersion = 16.0.31205.134 5 | MinimumVisualStudioVersion = 10.0.40219.1 6 | Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "TemplateApp", "TemplateApp\TemplateApp.csproj", "{695F4E18-9BBF-4B11-B3CE-EA03CD09EFE6}" 7 | EndProject 8 | Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "CubeKit.UI", "CubeKit.UI\CubeKit.UI.csproj", "{73936751-6325-49CE-8A7B-7006D6135B19}" 9 | EndProject 10 | Global 11 | GlobalSection(SolutionConfigurationPlatforms) = preSolution 12 | Debug|Any CPU = Debug|Any CPU 13 | Debug|ARM = Debug|ARM 14 | Debug|ARM64 = Debug|ARM64 15 | Debug|x64 = Debug|x64 16 | Debug|x86 = Debug|x86 17 | Release|Any CPU = Release|Any CPU 18 | Release|ARM = Release|ARM 19 | Release|ARM64 = Release|ARM64 20 | Release|x64 = Release|x64 21 | Release|x86 = Release|x86 22 | EndGlobalSection 23 | GlobalSection(ProjectConfigurationPlatforms) = postSolution 24 | {695F4E18-9BBF-4B11-B3CE-EA03CD09EFE6}.Debug|Any CPU.ActiveCfg = Debug|x86 25 | {695F4E18-9BBF-4B11-B3CE-EA03CD09EFE6}.Debug|ARM.ActiveCfg = Debug|ARM 26 | {695F4E18-9BBF-4B11-B3CE-EA03CD09EFE6}.Debug|ARM.Build.0 = Debug|ARM 27 | {695F4E18-9BBF-4B11-B3CE-EA03CD09EFE6}.Debug|ARM.Deploy.0 = Debug|ARM 28 | {695F4E18-9BBF-4B11-B3CE-EA03CD09EFE6}.Debug|ARM64.ActiveCfg = Debug|ARM64 29 | {695F4E18-9BBF-4B11-B3CE-EA03CD09EFE6}.Debug|ARM64.Build.0 = Debug|ARM64 30 | {695F4E18-9BBF-4B11-B3CE-EA03CD09EFE6}.Debug|ARM64.Deploy.0 = Debug|ARM64 31 | {695F4E18-9BBF-4B11-B3CE-EA03CD09EFE6}.Debug|x64.ActiveCfg = Debug|x64 32 | {695F4E18-9BBF-4B11-B3CE-EA03CD09EFE6}.Debug|x64.Build.0 = Debug|x64 33 | {695F4E18-9BBF-4B11-B3CE-EA03CD09EFE6}.Debug|x64.Deploy.0 = Debug|x64 34 | {695F4E18-9BBF-4B11-B3CE-EA03CD09EFE6}.Debug|x86.ActiveCfg = Debug|x86 35 | {695F4E18-9BBF-4B11-B3CE-EA03CD09EFE6}.Debug|x86.Build.0 = Debug|x86 36 | {695F4E18-9BBF-4B11-B3CE-EA03CD09EFE6}.Debug|x86.Deploy.0 = Debug|x86 37 | {695F4E18-9BBF-4B11-B3CE-EA03CD09EFE6}.Release|Any CPU.ActiveCfg = Release|x86 38 | {695F4E18-9BBF-4B11-B3CE-EA03CD09EFE6}.Release|ARM.ActiveCfg = Release|ARM 39 | {695F4E18-9BBF-4B11-B3CE-EA03CD09EFE6}.Release|ARM.Build.0 = Release|ARM 40 | {695F4E18-9BBF-4B11-B3CE-EA03CD09EFE6}.Release|ARM.Deploy.0 = Release|ARM 41 | {695F4E18-9BBF-4B11-B3CE-EA03CD09EFE6}.Release|ARM64.ActiveCfg = Release|ARM64 42 | {695F4E18-9BBF-4B11-B3CE-EA03CD09EFE6}.Release|ARM64.Build.0 = Release|ARM64 43 | {695F4E18-9BBF-4B11-B3CE-EA03CD09EFE6}.Release|ARM64.Deploy.0 = Release|ARM64 44 | {695F4E18-9BBF-4B11-B3CE-EA03CD09EFE6}.Release|x64.ActiveCfg = Release|x64 45 | {695F4E18-9BBF-4B11-B3CE-EA03CD09EFE6}.Release|x64.Build.0 = Release|x64 46 | {695F4E18-9BBF-4B11-B3CE-EA03CD09EFE6}.Release|x64.Deploy.0 = Release|x64 47 | {695F4E18-9BBF-4B11-B3CE-EA03CD09EFE6}.Release|x86.ActiveCfg = Release|x86 48 | {695F4E18-9BBF-4B11-B3CE-EA03CD09EFE6}.Release|x86.Build.0 = Release|x86 49 | {695F4E18-9BBF-4B11-B3CE-EA03CD09EFE6}.Release|x86.Deploy.0 = Release|x86 50 | {73936751-6325-49CE-8A7B-7006D6135B19}.Debug|Any CPU.ActiveCfg = Debug|Any CPU 51 | {73936751-6325-49CE-8A7B-7006D6135B19}.Debug|Any CPU.Build.0 = Debug|Any CPU 52 | {73936751-6325-49CE-8A7B-7006D6135B19}.Debug|ARM.ActiveCfg = Debug|ARM 53 | {73936751-6325-49CE-8A7B-7006D6135B19}.Debug|ARM.Build.0 = Debug|ARM 54 | {73936751-6325-49CE-8A7B-7006D6135B19}.Debug|ARM64.ActiveCfg = Debug|ARM64 55 | {73936751-6325-49CE-8A7B-7006D6135B19}.Debug|ARM64.Build.0 = Debug|ARM64 56 | {73936751-6325-49CE-8A7B-7006D6135B19}.Debug|x64.ActiveCfg = Debug|x64 57 | {73936751-6325-49CE-8A7B-7006D6135B19}.Debug|x64.Build.0 = Debug|x64 58 | {73936751-6325-49CE-8A7B-7006D6135B19}.Debug|x86.ActiveCfg = Debug|x86 59 | {73936751-6325-49CE-8A7B-7006D6135B19}.Debug|x86.Build.0 = Debug|x86 60 | {73936751-6325-49CE-8A7B-7006D6135B19}.Release|Any CPU.ActiveCfg = Release|Any CPU 61 | {73936751-6325-49CE-8A7B-7006D6135B19}.Release|Any CPU.Build.0 = Release|Any CPU 62 | {73936751-6325-49CE-8A7B-7006D6135B19}.Release|ARM.ActiveCfg = Release|ARM 63 | {73936751-6325-49CE-8A7B-7006D6135B19}.Release|ARM.Build.0 = Release|ARM 64 | {73936751-6325-49CE-8A7B-7006D6135B19}.Release|ARM64.ActiveCfg = Release|ARM64 65 | {73936751-6325-49CE-8A7B-7006D6135B19}.Release|ARM64.Build.0 = Release|ARM64 66 | {73936751-6325-49CE-8A7B-7006D6135B19}.Release|x64.ActiveCfg = Release|x64 67 | {73936751-6325-49CE-8A7B-7006D6135B19}.Release|x64.Build.0 = Release|x64 68 | {73936751-6325-49CE-8A7B-7006D6135B19}.Release|x86.ActiveCfg = Release|x86 69 | {73936751-6325-49CE-8A7B-7006D6135B19}.Release|x86.Build.0 = Release|x86 70 | EndGlobalSection 71 | GlobalSection(SolutionProperties) = preSolution 72 | HideSolutionNode = FALSE 73 | EndGlobalSection 74 | GlobalSection(ExtensibilityGlobals) = postSolution 75 | SolutionGuid = {F2E58BE2-34B1-4A91-B120-BD1731BB1D7F} 76 | EndGlobalSection 77 | EndGlobal 78 | -------------------------------------------------------------------------------- /TemplateApp/App.xaml: -------------------------------------------------------------------------------- 1 |  7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | -------------------------------------------------------------------------------- /TemplateApp/App.xaml.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | using System.IO; 4 | using System.Linq; 5 | using System.Runtime.ExceptionServices; 6 | using System.Runtime.InteropServices.WindowsRuntime; 7 | using System.Threading.Tasks; 8 | using Windows.ApplicationModel; 9 | using Windows.ApplicationModel.Activation; 10 | using Windows.Foundation; 11 | using Windows.Foundation.Collections; 12 | using Windows.UI.Xaml; 13 | using Windows.UI.Xaml.Controls; 14 | using Windows.UI.Xaml.Controls.Primitives; 15 | using Windows.UI.Xaml.Data; 16 | using Windows.UI.Xaml.Input; 17 | using Windows.UI.Xaml.Media; 18 | using Windows.UI.Xaml.Navigation; 19 | 20 | namespace TemplateApp 21 | { 22 | /// 23 | /// Provides application-specific behavior to supplement the default Application class. 24 | /// 25 | sealed partial class App : Application 26 | { 27 | /// 28 | /// Initializes the singleton application object. This is the first line of authored code 29 | /// executed, and as such is the logical equivalent of main() or WinMain(). 30 | /// 31 | public App() 32 | { 33 | this.InitializeComponent(); 34 | this.Suspending += OnSuspending; 35 | UnhandledException += OnUnhandledException; 36 | TaskScheduler.UnobservedTaskException += OnUnobservedException; 37 | AppDomain.CurrentDomain.FirstChanceException += CurrentDomain_FirstChanceException; 38 | } 39 | 40 | /// 41 | /// Invoked when the application is launched normally by the end user. Other entry points 42 | /// will be used such as when the application is launched to open a specific file. 43 | /// 44 | /// Details about the launch request and process. 45 | protected override void OnLaunched(LaunchActivatedEventArgs e) 46 | { 47 | Frame rootFrame = Window.Current.Content as Frame; 48 | 49 | // Do not repeat app initialization when the Window already has content, 50 | // just ensure that the window is active 51 | if (rootFrame == null) 52 | { 53 | // Create a Frame to act as the navigation context and navigate to the first page 54 | rootFrame = new Frame(); 55 | 56 | rootFrame.NavigationFailed += OnNavigationFailed; 57 | 58 | if (e.PreviousExecutionState == ApplicationExecutionState.Terminated) 59 | { 60 | //TODO: Load state from previously suspended application 61 | } 62 | 63 | // Place the frame in the current Window 64 | Window.Current.Content = rootFrame; 65 | } 66 | 67 | if (e.PrelaunchActivated == false) 68 | { 69 | Windows.ApplicationModel.Core.CoreApplication.EnablePrelaunch(true); 70 | if (rootFrame.Content == null) 71 | { 72 | // When the navigation stack isn't restored navigate to the first page, 73 | // configuring the new page by passing required information as a navigation 74 | // parameter 75 | rootFrame.Navigate(typeof(MainPage), e.Arguments); 76 | } 77 | // Ensure the current window is active 78 | Window.Current.Activate(); 79 | } 80 | } 81 | 82 | /// 83 | /// Invoked when Navigation to a certain page fails 84 | /// 85 | /// The Frame which failed navigation 86 | /// Details about the navigation failure 87 | void OnNavigationFailed(object sender, NavigationFailedEventArgs e) 88 | { 89 | throw new Exception("Failed to load Page " + e.SourcePageType.FullName); 90 | } 91 | 92 | /// 93 | /// Invoked when application execution is being suspended. Application state is saved 94 | /// without knowing whether the application will be terminated or resumed with the contents 95 | /// of memory still intact. 96 | /// 97 | /// The source of the suspend request. 98 | /// Details about the suspend request. 99 | private void OnSuspending(object sender, SuspendingEventArgs e) 100 | { 101 | var deferral = e.SuspendingOperation.GetDeferral(); 102 | //TODO: Save application state and stop any background activity 103 | deferral.Complete(); 104 | } 105 | 106 | #region Error handling 107 | 108 | private static void OnUnobservedException(object sender, UnobservedTaskExceptionEventArgs e) => e.SetObserved(); 109 | 110 | private static void OnUnhandledException(object sender, Windows.UI.Xaml.UnhandledExceptionEventArgs e) => e.Handled = true; 111 | 112 | private void CurrentDomain_FirstChanceException(object sender, FirstChanceExceptionEventArgs e) 113 | { 114 | } 115 | #endregion 116 | 117 | } 118 | } 119 | -------------------------------------------------------------------------------- /TemplateApp/Assets/LockScreenLogo.scale-200.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/FireCubeStudios/TemplateApp/73e68a429efdbd74ecae07091cc04d6eb9b5c358/TemplateApp/Assets/LockScreenLogo.scale-200.png -------------------------------------------------------------------------------- /TemplateApp/Assets/SplashScreen.scale-200.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/FireCubeStudios/TemplateApp/73e68a429efdbd74ecae07091cc04d6eb9b5c358/TemplateApp/Assets/SplashScreen.scale-200.png -------------------------------------------------------------------------------- /TemplateApp/Assets/Square150x150Logo.scale-200.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/FireCubeStudios/TemplateApp/73e68a429efdbd74ecae07091cc04d6eb9b5c358/TemplateApp/Assets/Square150x150Logo.scale-200.png -------------------------------------------------------------------------------- /TemplateApp/Assets/Square44x44Logo.scale-200.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/FireCubeStudios/TemplateApp/73e68a429efdbd74ecae07091cc04d6eb9b5c358/TemplateApp/Assets/Square44x44Logo.scale-200.png -------------------------------------------------------------------------------- /TemplateApp/Assets/Square44x44Logo.targetsize-24_altform-unplated.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/FireCubeStudios/TemplateApp/73e68a429efdbd74ecae07091cc04d6eb9b5c358/TemplateApp/Assets/Square44x44Logo.targetsize-24_altform-unplated.png -------------------------------------------------------------------------------- /TemplateApp/Assets/StoreLogo.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/FireCubeStudios/TemplateApp/73e68a429efdbd74ecae07091cc04d6eb9b5c358/TemplateApp/Assets/StoreLogo.png -------------------------------------------------------------------------------- /TemplateApp/Assets/Wide310x150Logo.scale-200.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/FireCubeStudios/TemplateApp/73e68a429efdbd74ecae07091cc04d6eb9b5c358/TemplateApp/Assets/Wide310x150Logo.scale-200.png -------------------------------------------------------------------------------- /TemplateApp/MainPage.xaml: -------------------------------------------------------------------------------- 1 |  11 | 12 | 19 | 20 | 26 | 31 | 32 | 33 | 34 | 35 | -------------------------------------------------------------------------------- /TemplateApp/MainPage.xaml.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | using System.IO; 4 | using System.Linq; 5 | using System.Runtime.InteropServices.WindowsRuntime; 6 | using Windows.ApplicationModel.Core; 7 | using Windows.Foundation; 8 | using Windows.Foundation.Collections; 9 | using Windows.UI; 10 | using Windows.UI.ViewManagement; 11 | using Windows.UI.Xaml; 12 | using Windows.UI.Xaml.Controls; 13 | using Windows.UI.Xaml.Controls.Primitives; 14 | using Windows.UI.Xaml.Data; 15 | using Windows.UI.Xaml.Input; 16 | using Windows.UI.Xaml.Media; 17 | using Windows.UI.Xaml.Navigation; 18 | 19 | // The Blank Page item template is documented at https://go.microsoft.com/fwlink/?LinkId=402352&clcid=0x409 20 | 21 | namespace TemplateApp 22 | { 23 | /// 24 | /// An empty page that can be used on its own or navigated to within a Frame. 25 | /// 26 | public sealed partial class MainPage : Page 27 | { 28 | public MainPage() 29 | { 30 | this.InitializeComponent(); 31 | var titleBar = ApplicationView.GetForCurrentView().TitleBar; 32 | 33 | titleBar.ButtonBackgroundColor = Colors.Transparent; 34 | titleBar.ButtonInactiveBackgroundColor = Colors.Transparent; 35 | 36 | // Hide default title bar. 37 | var coreTitleBar = CoreApplication.GetCurrentView().TitleBar; 38 | coreTitleBar.ExtendViewIntoTitleBar = true; 39 | UpdateTitleBarLayout(coreTitleBar); 40 | 41 | // Set XAML element as a draggable region. 42 | Window.Current.SetTitleBar(AppTitleBar); 43 | 44 | // Register a handler for when the size of the overlaid caption control changes. 45 | // For example, when the app moves to a screen with a different DPI. 46 | coreTitleBar.LayoutMetricsChanged += CoreTitleBar_LayoutMetricsChanged; 47 | 48 | // Register a handler for when the title bar visibility changes. 49 | // For example, when the title bar is invoked in full screen mode. 50 | coreTitleBar.IsVisibleChanged += CoreTitleBar_IsVisibleChanged; 51 | 52 | //Register a handler for when the window changes focus 53 | Window.Current.Activated += Current_Activated; 54 | } 55 | 56 | #region Titlebar code 57 | private void CoreTitleBar_LayoutMetricsChanged(CoreApplicationViewTitleBar sender, object args) 58 | { 59 | UpdateTitleBarLayout(sender); 60 | } 61 | 62 | private void UpdateTitleBarLayout(CoreApplicationViewTitleBar coreTitleBar) 63 | { 64 | // Update title bar control size as needed to account for system size changes. 65 | AppTitleBar.Height = coreTitleBar.Height; 66 | 67 | // Ensure the custom title bar does not overlap window caption controls 68 | Thickness currMargin = AppTitleBar.Margin; 69 | AppTitleBar.Margin = new Thickness(currMargin.Left, currMargin.Top, coreTitleBar.SystemOverlayRightInset, currMargin.Bottom); 70 | } 71 | 72 | private void CoreTitleBar_IsVisibleChanged(CoreApplicationViewTitleBar sender, object args) 73 | { 74 | if (sender.IsVisible) 75 | { 76 | AppTitleBar.Visibility = Visibility.Visible; 77 | } 78 | else 79 | { 80 | AppTitleBar.Visibility = Visibility.Collapsed; 81 | } 82 | } 83 | 84 | // Update the TitleBar based on the inactive/active state of the app 85 | private void Current_Activated(object sender, Windows.UI.Core.WindowActivatedEventArgs e) 86 | { 87 | SolidColorBrush defaultForegroundBrush = (SolidColorBrush)Application.Current.Resources["TextFillColorPrimaryBrush"]; 88 | SolidColorBrush inactiveForegroundBrush = (SolidColorBrush)Application.Current.Resources["TextFillColorDisabledBrush"]; 89 | 90 | if (e.WindowActivationState == Windows.UI.Core.CoreWindowActivationState.Deactivated) 91 | { 92 | AppTitle.Foreground = inactiveForegroundBrush; 93 | } 94 | else 95 | { 96 | AppTitle.Foreground = defaultForegroundBrush; 97 | } 98 | } 99 | #endregion 100 | } 101 | } 102 | -------------------------------------------------------------------------------- /TemplateApp/Package.appxmanifest: -------------------------------------------------------------------------------- 1 |  2 | 3 | 11 | 12 | 16 | 17 | 18 | 19 | 20 | TemplateApp 21 | ayush 22 | Assets\StoreLogo.png 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | 31 | 32 | 33 | 34 | 39 | 45 | 46 | 47 | 48 | 49 | 50 | 51 | 52 | 53 | 54 | -------------------------------------------------------------------------------- /TemplateApp/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("TemplateApp")] 9 | [assembly: AssemblyDescription("")] 10 | [assembly: AssemblyConfiguration("")] 11 | [assembly: AssemblyCompany("")] 12 | [assembly: AssemblyProduct("TemplateApp")] 13 | [assembly: AssemblyCopyright("Copyright © 2022")] 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)] -------------------------------------------------------------------------------- /TemplateApp/Properties/Default.rd.xml: -------------------------------------------------------------------------------- 1 | 17 | 18 | 19 | 20 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | 31 | -------------------------------------------------------------------------------- /TemplateApp/TemplateApp.csproj: -------------------------------------------------------------------------------- 1 |  2 | 3 | 4 | 5 | Debug 6 | x86 7 | {695F4E18-9BBF-4B11-B3CE-EA03CD09EFE6} 8 | AppContainerExe 9 | Properties 10 | TemplateApp 11 | TemplateApp 12 | en-US 13 | UAP 14 | 10.0.22000.0 15 | 10.0.22000.0 16 | 14 17 | 512 18 | {A5A43C5B-DE2A-4C0C-9213-0A381AF9435A};{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC} 19 | true 20 | false 21 | 22 | 23 | true 24 | bin\x86\Debug\ 25 | DEBUG;TRACE;NETFX_CORE;WINDOWS_UWP 26 | ;2008 27 | full 28 | x86 29 | false 30 | prompt 31 | true 32 | 33 | 34 | bin\x86\Release\ 35 | TRACE;NETFX_CORE;WINDOWS_UWP 36 | true 37 | ;2008 38 | pdbonly 39 | x86 40 | false 41 | prompt 42 | true 43 | true 44 | 45 | 46 | true 47 | bin\ARM\Debug\ 48 | DEBUG;TRACE;NETFX_CORE;WINDOWS_UWP 49 | ;2008 50 | full 51 | ARM 52 | false 53 | prompt 54 | true 55 | 56 | 57 | bin\ARM\Release\ 58 | TRACE;NETFX_CORE;WINDOWS_UWP 59 | true 60 | ;2008 61 | pdbonly 62 | ARM 63 | false 64 | prompt 65 | true 66 | true 67 | 68 | 69 | true 70 | bin\ARM64\Debug\ 71 | DEBUG;TRACE;NETFX_CORE;WINDOWS_UWP 72 | ;2008 73 | full 74 | ARM64 75 | false 76 | prompt 77 | true 78 | true 79 | 80 | 81 | bin\ARM64\Release\ 82 | TRACE;NETFX_CORE;WINDOWS_UWP 83 | true 84 | ;2008 85 | pdbonly 86 | ARM64 87 | false 88 | prompt 89 | true 90 | true 91 | 92 | 93 | true 94 | bin\x64\Debug\ 95 | DEBUG;TRACE;NETFX_CORE;WINDOWS_UWP 96 | ;2008 97 | full 98 | x64 99 | false 100 | prompt 101 | true 102 | 103 | 104 | bin\x64\Release\ 105 | TRACE;NETFX_CORE;WINDOWS_UWP 106 | true 107 | ;2008 108 | pdbonly 109 | x64 110 | false 111 | prompt 112 | true 113 | true 114 | 115 | 116 | PackageReference 117 | 118 | 119 | 120 | App.xaml 121 | 122 | 123 | MainPage.xaml 124 | 125 | 126 | 127 | 128 | 129 | Designer 130 | 131 | 132 | 133 | 134 | 135 | 136 | 137 | 138 | 139 | 140 | 141 | 142 | 143 | 144 | MSBuild:Compile 145 | Designer 146 | 147 | 148 | MSBuild:Compile 149 | Designer 150 | 151 | 152 | 153 | 154 | 1.1.110 155 | 156 | 157 | 6.2.11 158 | 159 | 160 | 7.1.2 161 | 162 | 163 | 7.1.2 164 | 165 | 166 | 2.7.0 167 | 168 | 169 | 170 | 14.0 171 | 172 | 173 | 180 | --------------------------------------------------------------------------------