TECHNOLOGIES
FORUMS
JOBS
BOOKS
EVENTS
INTERVIEWS
Live
MORE
LEARN
Training
CAREER
MEMBERS
VIDEOS
NEWS
BLOGS
Sign Up
Login
No unread comment.
View All Comments
No unread message.
View All Messages
No unread notification.
View All Notifications
Answers
Post
An Article
A Blog
A News
A Video
An EBook
An Interview Question
Ask Question
Forums
Monthly Leaders
Forum guidelines
Swatto
NA
23
11k
Style not applying
Mar 24 2015 6:40 AM
Good Morning all,
For some reason this style is not working for my ContextMenu item, please could you tell me why?
Thanks for any help
<Style x:Key="MyStyle" TargetType="MenuItem">
<Style.Triggers>
<Trigger Property="IsEnabled" Value="False">
<Setter Property="TextBlock.TextDecorations" Value="Strikethrough"/>
</Trigger>
</Style.Triggers>
</Style>
<ContextMenu x:Key="SysTrayMenu">
<MenuItem Header="Show Window" Command="{Binding ShowWindowCommand}" />
<MenuItem Header="Hide Window" Command="{Binding HideWindowCommand}" Style="{StaticResource MyStyle}"/>
<MenuItem Header="Exit" Command="{Binding ExitApplicationCommand}" />
</ContextMenu>
Reply
Answers (
8
)
Not Getting XML elements?
Datagrid using listview ?