MCPcopy Create free account
hub / github.com/TranslucentTB/TranslucentTB / ChromeButton

Class ChromeButton

Xaml/Controls/ChromeButton.h:11–25  ·  view source on GitHub ↗

Explicitly use ChromeButton_base because the XAML compiler generates an empty .xaml.g.h

Source from the content-addressed store, hash-verified

9{
10 // Explicitly use ChromeButton_base because the XAML compiler generates an empty .xaml.g.h
11 struct ChromeButton : ChromeButton_base<ChromeButton>
12 {
13 ChromeButton();
14
15 DECL_DEPENDENCY_PROPERTY(wuxc::IconElement, Icon);
16 DECL_DEPENDENCY_PROPERTY(Windows::UI::Color, NormalForeground);
17 DECL_DEPENDENCY_PROPERTY(Windows::UI::Color, NormalBackground);
18 DECL_DEPENDENCY_PROPERTY(Windows::UI::Color, HoverForeground);
19 DECL_DEPENDENCY_PROPERTY(Windows::UI::Color, HoverBackground);
20 DECL_DEPENDENCY_PROPERTY(Windows::UI::Color, PressedForeground);
21 DECL_DEPENDENCY_PROPERTY(Windows::UI::Color, PressedBackground);
22 DECL_DEPENDENCY_PROPERTY_WITH_DEFAULT(bool, IsTogglable, box_value(false));
23
24 void OnToggle();
25 };
26}
27
28FACTORY(winrt::TranslucentTB::Xaml::Controls, ChromeButton);

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected