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

Method OnPreviewBorderPointerPressed

Xaml/Controls/ColorPicker.cpp:687–696  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

685 }
686
687 void ColorPicker::OnPreviewBorderPointerPressed(const IInspectable &sender, const wux::Input::IPointerRoutedEventArgs &)
688 {
689 if (const auto border = sender.try_as<wuxc::Border>())
690 {
691 if (const auto brush = border.Background().try_as<wux::Media::SolidColorBrush>())
692 {
693 ScheduleColorUpdate(brush.Color());
694 }
695 }
696 }
697
698 void ColorPicker::OnColorPropertyChanged(const wux::DependencyObject &sender, const wux::DependencyProperty &)
699 {

Callers

nothing calls this directly

Calls 1

ColorMethod · 0.80

Tested by

no test coverage detected