| 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 | { |