Hide Back Button of Modern UI for WPF

by Weijie JIN on

I searched the web seems no answer for this topic, so i create a style to hide the button:

<Style TargetType="{x:Type mui:ModernButton}"> 
    <Style.Triggers> 
        <Trigger Property="Command" Value="NavigationCommands.BrowseBack"> 
            <Setter Property="Visibility" Value="Collapsed" /> 
        </Trigger> 
    </Style.Triggers> 
</Style> 

Hope it helps. Smile

  • Looker

    Excellent! Thanks. ;)

  • Suman Sanyal

    Works beautifully … thanks.

  • Johannes Grunedal

    Works great! Thanks…

Previous post:

Next post: