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

Method UpdateVisualState

Xaml/Controls/ColorPicker.cpp:940–945  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

938 }
939
940 void ColorPicker::UpdateVisualState(bool useTransitions)
941 {
942 wux::VisualStateManager::GoToState(*this, IsEnabled() ? L"Normal" : L"Disabled", useTransitions);
943 wux::VisualStateManager::GoToState(*this, GetActiveColorRepresentation() == txmp::ColorRepresentation::Hsva ? L"HsvSelected" : L"RgbSelected", useTransitions);
944 wux::VisualStateManager::GoToState(*this, IsColorPaletteVisible() ? L"ColorPaletteVisible" : L"ColorPaletteCollapsed", useTransitions);
945 }
946
947 void ColorPicker::UpdateColorControlValues()
948 {

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected