Hide Back Button of Modern UI for WPF

By | December 9, 2016

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

Category: wpf