Skip to content

Commit

Permalink
Default value of IsHitTestVisible is now false on IconPresenter
Browse files Browse the repository at this point in the history
  • Loading branch information
batzen committed Dec 27, 2023
1 parent b23b75a commit b303393
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions Changelog.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
Most of the time there should only be one or two measure calls when switching tabs, compared to six or eight in case of the showcase application.
This is mostly achieved by getting rid of internal caching. The caching turned out to be more expensive than not caching at all.
- Added `RibbonProperties.CustomIconSize` as an attached property. This is used inside control templates to set `CustomSize` of `IconPresenter`.
- Default value of `IsHitTestVisible` is now `false` on `IconPresenter`.
- [#1177](../../issues/1177) - RibbonComboBox cannot be customized based on the original RibbonComboBox style (thanks @nishy2000)
- [#1180](../../issues/1180) - Padding and BorderBrush of the gallery control do not work (thanks @nishy2000)

Expand Down
2 changes: 2 additions & 0 deletions Fluent.Ribbon/Controls/IconPresenter.cs
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,8 @@ static IconPresenter()
IsEnabledProperty.OverrideMetadata(typeof(IconPresenter), new UIPropertyMetadata(OnIsEnabledChanged));

FocusableProperty.OverrideMetadata(typeof(IconPresenter), new FrameworkPropertyMetadata(BooleanBoxes.FalseBox));

IsHitTestVisibleProperty.OverrideMetadata(typeof(IconPresenter), new UIPropertyMetadata(BooleanBoxes.FalseBox));
}

public IconPresenter()
Expand Down

0 comments on commit b303393

Please sign in to comment.