/
githubmirror
/
Files
Обзор
Документация
Войти
/
githubmirror
/
Files
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
main
src/Files.App/UserControls/Menus/ToggleMenuFlyoutItemWithThemedIcon.xaml.cs
32 строки
1 KB
yair100
Code Quality: Updated headers
01 июл 2026, 06:18
01 июл 2026, 06:18
c27305a
Код
Авторство
О чём код?
// Copyright (c) Files Community // SPDX-License-Identifier: MPL-2.0 using Microsoft.UI.Xaml; using Microsoft.UI.Xaml.Controls; // The User Control element template is documented at https://go.microsoft.com/fwlink/?LinkId=234236 namespace Files.App.UserControls { public sealed partial class ToggleMenuFlyoutItemWithThemedIcon : ToggleMenuFlyoutItem { public Style ThemedIconStyle { get { return (Style)GetValue(ThemedIconStyleProperty); } set { SetValue(ThemedIconStyleProperty, value); } } public static readonly DependencyProperty ThemedIconStyleProperty = DependencyProperty.Register("ThemedIconStyle", typeof(Style), typeof(ToggleMenuFlyoutItemWithThemedIcon), new PropertyMetadata(null, OnThemedIconStyleChanged)); private static void OnThemedIconStyleChanged(DependencyObject d, DependencyPropertyChangedEventArgs e) { (d as ToggleMenuFlyoutItem).Icon = e.NewValue is not null ? new IconSourceElement() : null; } public ToggleMenuFlyoutItemWithThemedIcon() { InitializeComponent(); } } }