Explicitly use ChromeButton_base because the XAML compiler generates an empty .xaml.g.h
| 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 | |
| 28 | FACTORY(winrt::TranslucentTB::Xaml::Controls, ChromeButton); |
nothing calls this directly
no outgoing calls
no test coverage detected