private async void InitializeTile(PreviewTile tile) { try { tile.DisplayName = ViewModel.Class.Name; if (ViewModel.Settings.CustomColor != null) { tile.VisualElements.BackgroundColor = ColorTools.GetColor(ViewModel.Settings.CustomColor); } else { tile.VisualElements.BackgroundColor = ColorTools.GetColor(ViewModel.Class.Color); } tile.VisualElements.ShowNameOnSquare150x150Logo = true; tile.VisualElements.Square44x44Logo = new Uri("ms-appx:///Assets/Square44x44Logo.png"); tile.VisualElements.Square71x71Logo = new Uri("ms-appx:///Assets/Square71x71Logo.png"); tile.VisualElements.Square150x150Logo = new Uri("ms-appx:///Assets/Square150x150Logo.png"); tile.VisualElements.Square310x310Logo = new Uri("ms-appx:///Assets/Square310x310Logo.png"); tile.VisualElements.Wide310x150Logo = new Uri("ms-appx:///Assets/Wide310x150Logo.png"); await tile.UpdateAsync(); } catch (Exception ex) { TelemetryExtension.Current?.TrackException(ex); } }
private async void InitializeTile(PreviewTile tile) { try { tile.DisplayName = "Quick Add"; tile.VisualElements.ShowNameOnSquare150x150Logo = true; tile.VisualElements.Square44x44Logo = new Uri("ms-appx:///Assets/Square44x44Logo.png"); tile.VisualElements.Square71x71Logo = new Uri("ms-appx:///Assets/QuickAddTile/Square71x71Logo.png"); tile.VisualElements.Square150x150Logo = new Uri("ms-appx:///Assets/QuickAddTile/Square150x150Logo.png"); await tile.UpdateAsync(); } catch (Exception ex) { TelemetryExtension.Current?.TrackException(ex); } }
private async void InitializeTile(PreviewTile tile) { try { tile.DisplayName = "Power Planner"; tile.VisualElements.BackgroundColor = (Color)Resources["SystemColorHighlightColor"]; tile.VisualElements.ShowNameOnSquare150x150Logo = true; tile.VisualElements.Square44x44Logo = new Uri("ms-appx:///Assets/Square44x44Logo.png"); tile.VisualElements.Square71x71Logo = new Uri("ms-appx:///Assets/Square71x71Logo.png"); tile.VisualElements.Square150x150Logo = new Uri("ms-appx:///Assets/Square150x150Logo.png"); tile.VisualElements.Square310x310Logo = new Uri("ms-appx:///Assets/Square310x310Logo.png"); tile.VisualElements.Wide310x150Logo = new Uri("ms-appx:///Assets/Wide310x150Logo.png"); await tile.UpdateAsync(); } catch (Exception ex) { TelemetryExtension.Current?.TrackException(ex); } }