/
githubmirror
/
Files
Обзор
Документация
Войти
/
githubmirror
/
Files
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
main
src/Files.App.Controls/SamplePanel/SamplePanel.cs
28 строк
732 B
yair100
Code Quality: Updated headers
01 июл 2026, 06:18
01 июл 2026, 06:18
c27305a
Код
Авторство
О чём код?
// Copyright (c) Files Community // SPDX-License-Identifier: MPL-2.0 namespace Files.App.Controls { // Visual states [TemplateVisualState(GroupName = "SideContentVisibilityStates", Name = "NothingToShowTextCollapsed")] [TemplateVisualState(GroupName = "SideContentVisibilityStates", Name = "NothingToShowTextVisible")] public sealed partial class SamplePanel : Control { public SamplePanel() { DefaultStyleKey = typeof(SamplePanel); } protected override void OnApplyTemplate() { UpdateVisualStates(); base.OnApplyTemplate(); } private void UpdateVisualStates() { VisualStateManager.GoToState(this, SideContent is null ? "NothingToShowTextVisible" : "NothingToShowTextCollapsed", true); } } }