Nuts
Nuts

Reputation: 2813

Remove Border from MahApps FlipView

How to remove the Border that appears on mouseover the MahApps.Metro FlipView control.

<mahAppsControls:FlipView IsBannerEnabled="False">
    <mahAppsControls:FlipView.Items>
        ...
    </mahAppsControls:FlipView.Items>
</mahAppsControls:FlipView>

Left-hand side the normal state and right-hand side when mouse is over the control and a thick border appears that I need to remove.

enter image description here

Upvotes: 3

Views: 1363

Answers (1)

MrWombat
MrWombat

Reputation: 649

The Source shows that since the commit from Jan 9, 2015 the behavior is controlled by the MouseOverGlowEnabled property.

Use MouseOverGlowEnabled="False" in your XAML to disable that like:

<UserControl 
...
xmlns:Controls="http://metro.mahapps.com/winfx/xaml/controls">
    <Controls:FlipView x:Name="alertFlipView"
                       MouseOverGlowEnabled="False"
                       ... />

Update: In new versions (since 1.3.0) the MouseOverGlowEnabled property was replaced with MouseHoverBorderEnabled, see Release notes

Upvotes: 8

Related Questions