/
githubmirror
/
PowerToys
Обзор
Документация
Войти
/
githubmirror
/
PowerToys
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
main
src/settings-ui/Settings.UI/ViewModels/DashboardModuleItem.cs
62 строки
2 KB
Niels Laute
[UX] New dashboard & refactored KeyVisual (#40214)
05 авг 2025, 02:33
Не верифицирован
05 авг 2025, 02:33
c91bef1
Код
Авторство
О чём код?
// Copyright (c) Microsoft Corporation // The Microsoft Corporation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. using System.Collections.Generic; using System.ComponentModel; using System.Runtime.CompilerServices; using Microsoft.PowerToys.Settings.UI.Library; using Microsoft.UI.Xaml; using Windows.UI; namespace Microsoft.PowerToys.Settings.UI.ViewModels { #pragma warning disable SA1402 // File may only contain a single type #pragma warning disable SA1649 // File name should match first type name public partial class DashboardModuleTextItem : DashboardModuleItem { } public partial class DashboardModuleButtonItem : DashboardModuleItem { public string ButtonTitle { get; set; } public bool IsButtonDescriptionVisible { get; set; } public string ButtonDescription { get; set; } public string ButtonGlyph { get; set; } public RoutedEventHandler ButtonClickHandler { get; set; } } public partial class DashboardModuleShortcutItem : DashboardModuleItem { public List<object> Shortcut { get; set; } } public partial class DashboardModuleActivationItem : DashboardModuleItem { public string Activation { get; set; } } public partial class DashboardModuleItem : INotifyPropertyChanged { public string Label { get; set; } public event PropertyChangedEventHandler PropertyChanged; internal void NotifyPropertyChanged(string propertyName) { OnPropertyChanged(propertyName); } private void OnPropertyChanged([CallerMemberName] string propertyName = null) { PropertyChanged?.Invoke(this, new PropertyChangedEventArgs(propertyName)); } } } #pragma warning restore SA1402 // File may only contain a single type #pragma warning restore SA1649 // File name should match first type name