April 26th, 2009, 10:35 AM
#1
Menu Item color change in wpf
Hi ,
I have attaached with my project window menu bar for review .
When i selected menu item its highlited with blue color .i dont want that color bec my req is like that.
Please send me reply asap. bec its very urgent for me.
please review the attachment.
Attached Files
April 27th, 2009, 04:44 AM
#2
Re: Menu Item color change in wpf
Put Background as white: something like this.
Code:
<MenuItem x:Name="mnuFile" Header="File" Background="White" Foreground="SteelBlue"/>
It will remove Blue hovering effect.
I hope this is what you want.
Regards,
MMH
Rate my post if you find it usefull.
April 27th, 2009, 08:32 AM
#3
Re: Menu Item color change in wpf
Thanks for your reply and its not working for me.please let me know.
April 27th, 2009, 10:47 AM
#4
Re: Menu Item color change in wpf
Originally Posted by
syr
Thanks for your reply and its not working for me.please let me know.
Can you paste the lines of code that you have coded for menu item ?
April 27th, 2009, 12:24 PM
#5
Re: Menu Item color change in wpf
Please check the following code.Thanks for your fast reply.
<Menu Margin="12,0,0,0" Name="menuManageData" Height="26" VerticalAlignment="Top" Background="White" HorizontalAlignment="Left" Width="302">
<MenuItem Header="Search For Form" Click="SearchFrm_Click" Foreground="#FF0093BD" ForceCursor="True" Background="White" FontFamily="Arial" OverridesDefaultStyle="False" Focusable="True" HeaderStringFormat="Bold" />
<MenuItem Header="Search and Replace" Click="SearchReplace_Click" Foreground="#FF0093BD" FontFamily="Arial" />
<MenuItem Header="Add New Form" Foreground="#FF0093BD" Click="AddNewFrm_Click" Background="White" FontFamily="Arial" />
</Menu>
April 28th, 2009, 12:29 AM
#6
Re: Menu Item color change in wpf
Originally Posted by
syr
Please check the following code.Thanks for your fast reply.
<Menu Margin="12,0,0,0" Name="menuManageData" Height="26" VerticalAlignment="Top" Background="White" HorizontalAlignment="Left" Width="302">
<MenuItem Header="Search For Form" Click="SearchFrm_Click" Foreground="#FF0093BD" ForceCursor="True" Background="White" FontFamily="Arial" OverridesDefaultStyle="False" Focusable="True" HeaderStringFormat="Bold" />
<MenuItem Header="Search and Replace" Click="SearchReplace_Click" Foreground="#FF0093BD" FontFamily="Arial" />
<MenuItem Header="Add New Form" Foreground="#FF0093BD" Click="AddNewFrm_Click" Background="White" FontFamily="Arial" />
</Menu>
Hi, Can you tell me whether setting Background = "White" for menuItem works? or doent not work completely?
In your code i found that, for 2nd menuItem Background="White" is missed out.
Please check it. I have tested this in both VS2008 and VS2008 EE.
Regards,
MMH
Rate my post if you find it usefull.
Posting Permissions
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
Forum Rules
Click Here to Expand Forum to Full Width