/
githubmirror
/
Files
Обзор
Документация
Войти
/
githubmirror
/
Files
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
main
src/Files.App.Controls/Toolbar/ToolbarButton/ToolbarButton.Constants.cs
37 строк
2 KB
Yair
Code Quality: Ran code cleanup (#17307)
25 июл 2025, 03:57
Не верифицирован
25 июл 2025, 03:57
4558bc2
Код
Авторство
О чём код?
// Copyright (c) Files Community // Licensed under the MIT License. namespace Files.App.Controls { // TemplateParts [TemplatePart(Name = ThemedIconPartName, Type = typeof(ThemedIcon))] [TemplatePart(Name = ContentPresenterPartName, Type = typeof(ContentPresenter))] // VisualStates [TemplateVisualState(Name = NormalStateName, GroupName = CommonStatesGroupName)] [TemplateVisualState(Name = PointerOverStateName, GroupName = CommonStatesGroupName)] [TemplateVisualState(Name = PressedStateName, GroupName = CommonStatesGroupName)] [TemplateVisualState(Name = DisabledStateName, GroupName = CommonStatesGroupName)] [TemplateVisualState(Name = HasContentStateName, GroupName = ContentStatesGroupName)] [TemplateVisualState(Name = HasNoContentStateName, GroupName = ContentStatesGroupName)] public partial class ToolbarButton : Button, IToolbarItemSet { // TemplatePart Names internal const string ThemedIconPartName = "PART_ThemedIcon"; internal const string ContentPresenterPartName = "PART_ContentPresenter"; // VisualState Group Names internal const string CommonStatesGroupName = "CommonStates"; internal const string ContentStatesGroupName = "ContentStates"; // VisualState Names internal const string NormalStateName = "Normal"; internal const string PointerOverStateName = "PointerOver"; internal const string PressedStateName = "Pressed"; internal const string DisabledStateName = "Disabled"; internal const string HasContentStateName = "HasContent"; internal const string HasNoContentStateName = "HasNoContent"; } }