Click here to Skip to main content
16,006,001 members
Home / Discussions / WPF
   

WPF

 
AnswerRe: Web service reference in app.config file issue Pin
Mycroft Holmes4-Dec-11 20:25
professionalMycroft Holmes4-Dec-11 20:25 
GeneralRe: Web service reference in app.config file issue Pin
That's Aragon4-Dec-11 20:46
That's Aragon4-Dec-11 20:46 
GeneralRe: Web service reference in app.config file issue Pin
Mycroft Holmes4-Dec-11 21:17
professionalMycroft Holmes4-Dec-11 21:17 
GeneralRe: Web service reference in app.config file issue Pin
That's Aragon4-Dec-11 23:32
That's Aragon4-Dec-11 23:32 
GeneralRe: Web service reference in app.config file issue Pin
Pete O'Hanlon5-Dec-11 0:49
mvePete O'Hanlon5-Dec-11 0:49 
QuestionBinding Question Pin
Kevin Marois3-Dec-11 7:58
professionalKevin Marois3-Dec-11 7:58 
AnswerRe: Binding Question Pin
Kevin Marois3-Dec-11 8:03
professionalKevin Marois3-Dec-11 8:03 
QuestionMenu Item Deisgn Pin
Hema Bairavan1-Dec-11 0:16
Hema Bairavan1-Dec-11 0:16 
Hi All,

I have one question related to menu item design in wpf.

Actually i have one menu and menu items added to it.

The thing is i require the menuitems getting dropped while clicking the menu should have curved corner, that is borders having corner radius. I tried the follwing

XML
<Menu Background="Blue" HorizontalAlignment="Center"
                       VerticalAlignment="Center" >
                      <MenuItem Background="Blue" Header="Menu1"  ClipToBounds="True" Style="{StaticResource MenuItemStyle}" Foreground="White">
                          <Border HorizontalAlignment="Left" BorderBrush="Yellow"
                              BorderThickness="5" Background="Blue" CornerRadius="10" >
                              <Grid>
                                  <Border Name="mask2" Background="White" CornerRadius="10"/>

                                  <StackPanel Background="Blue">

                                      <!-- Use a VisualBrush of 'mask' as the opacity mask -->
                                      <StackPanel.OpacityMask>
                                          <VisualBrush Visual="{Binding ElementName=mask2}"/>
                                      </StackPanel.OpacityMask>

                                      <MenuItem Header="Value1"></MenuItem>
                                      <MenuItem Header="Value2"></MenuItem>
                                      <MenuItem Header="Value3"></MenuItem>
                                  </StackPanel>
                              </Grid>
                          </Border>
                      </MenuItem> </Menu>


Now i am getting this menu items as having curved corners. But the standard square shaped background is also coming along with it. Here i am unable to paste the screen shot.

This code will show you what am tryign to say


How to get rid of the backgroud grey colored thing.
please help.

Thanks in advance.
AnswerRe: Menu Item Deisgn Pin
Varsha Ramnani4-Dec-11 19:51
professionalVarsha Ramnani4-Dec-11 19:51 
GeneralRe: Menu Item Deisgn Pin
Hema Bairavan5-Dec-11 19:20
Hema Bairavan5-Dec-11 19:20 
GeneralRe: Menu Item Deisgn Pin
Varsha Ramnani5-Dec-11 19:26
professionalVarsha Ramnani5-Dec-11 19:26 
GeneralRe: Menu Item Deisgn Pin
Hema Bairavan5-Dec-11 20:26
Hema Bairavan5-Dec-11 20:26 
GeneralRe: Menu Item Deisgn Pin
Varsha Ramnani5-Dec-11 20:44
professionalVarsha Ramnani5-Dec-11 20:44 
GeneralRe: Menu Item Deisgn Pin
Hema Bairavan5-Dec-11 21:26
Hema Bairavan5-Dec-11 21:26 
GeneralRe: Menu Item Deisgn Pin
Varsha Ramnani5-Dec-11 22:16
professionalVarsha Ramnani5-Dec-11 22:16 
Questionlogin app from a windows azure database Pin
dheesan30-Nov-11 12:45
dheesan30-Nov-11 12:45 
AnswerRe: login app from a windows azure database Pin
Mycroft Holmes30-Nov-11 21:07
professionalMycroft Holmes30-Nov-11 21:07 
GeneralRe: login app from a windows azure database Pin
dheesan1-Dec-11 2:30
dheesan1-Dec-11 2:30 
NewsFree Chapter of the Book 'Fun with Silverlight 4' at codeproject Pin
Raj Lal30-Nov-11 12:25
professionalRaj Lal30-Nov-11 12:25 
QuestionMedia Element not playing .ts file in .net 4.0, works in .net 3.0 Pin
revengeoffallen30-Nov-11 1:31
revengeoffallen30-Nov-11 1:31 
Questiondispatcher Pin
columbos1492728-Nov-11 4:18
columbos1492728-Nov-11 4:18 
QuestionHierarchical Data Templates /Treeview Pin
Rbucha27-Nov-11 15:05
Rbucha27-Nov-11 15:05 
AnswerRe: Hierarchical Data Templates /Treeview Pin
Mycroft Holmes27-Nov-11 16:34
professionalMycroft Holmes27-Nov-11 16:34 
GeneralRe: Hierarchical Data Templates /Treeview Pin
Rbucha28-Nov-11 6:57
Rbucha28-Nov-11 6:57 
GeneralRe: Hierarchical Data Templates /Treeview Pin
Mycroft Holmes28-Nov-11 10:53
professionalMycroft Holmes28-Nov-11 10:53 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.