Hi
In a contextmenu i want to hide the Buttons instead of make them disabled. All buttons are connected to a (Ribbon)command.Somehow the buttons disappear... i guess the " collapsing" works but never re-appear.
What to do:)
Regards
Martin
In a contextmenu i want to hide the Buttons instead of make them disabled. All buttons are connected to a (Ribbon)command.
<Style x:Key="ContextButton" TargetType="ribbon:Button">
<Style.Triggers>
<Trigger Property="IsEnabled" Value="True" >
<Setter Property="Visibility" Value="Visible" />
</Trigger>
<Trigger Property="IsEnabled" Value="False" >
<Setter Property="Visibility" Value="Collapsed" />
</Trigger>
</Style.Triggers>
</Style>
.....
<ribbon:Button Command="ide:ApplicationCommands.CloseSolution"
Style="{StaticResource ContextButton}" />
What to do:)
Regards
Martin