Click here to Skip to main content

Silverlight / WPF

   

 
You must Sign In to use this message board. (secure sign-in)
 
Search this forum  
 FAQ
    Noise  Layout  Per page  Show 
  Refresh
AnswerRe: mouse click PinmvpAbhinav S0:49 23 Feb '12  
QuestionTreeview Expand/Collapse icons on right side in WPF PinmemberRaajTalluri18:08 22 Feb '12  
QuestionMerge cells - Silverlight PinmemberLê Tùng Lâm15:12 22 Feb '12  
AnswerRe: Merge cells - Silverlight PinmvpAbhinav S18:27 22 Feb '12  
GeneralRe: Merge cells - Silverlight PinmemberLê Tùng Lâm15:04 23 Feb '12  
Questionleft button context menu Pinmembermichaelgr12:40 22 Feb '12  
Questioncontext menu Pinmembermichaelgr11:35 22 Feb '12  
Hello,
I have a button and a context menu on it.
I want to align the context menu to be opened on top of the button. I mean on the Upper Left corner of the button. How can i do it in XAML?
 
currently i use the code:
Button Grid.Column="1" BorderThickness="0" Name="dropDownbtn" Click="dropDownbtn_Click" HorizontalContentAlignment="Stretch" VerticalContentAlignment="Stretch">
            <Image Source="/AQUA.ClientServices.Presentation;component/Images/dropDown.png" ClipToBounds="True" />
            <Button.ContextMenu>
                <ContextMenu BorderThickness="0" Name="LeftClickMenu" MouseLeave="LeftClickMenu_MouseLeave">
                    <MenuItem Name="ViewReportItem" Header="View Report" Command="{Binding ViewReportCommand}"/>
                    <MenuItem Name="ExportReportItem" Header="Export Report" Command="{Binding ExportReportCommand}"/>
                    <MenuItem Name="AbortReportItem" Header="Abort Report" Command="{Binding AbortReportCommand}"/>
                </ContextMenu>
            </Button.ContextMenu>
        </Button>

AnswerRe: context menu PinprotectorPete O'Hanlon2:36 22 Feb '12  
GeneralRe: context menu Pinmembermichaelgr12:46 22 Feb '12  
QuestionView Refresh Problem PinmemberKevin Marois8:45 21 Feb '12  
AnswerRe: View Refresh Problem PinprotectorPete O'Hanlon8:56 21 Feb '12  
GeneralRe: View Refresh Problem PinmemberKevin Marois9:05 21 Feb '12  
GeneralRe: View Refresh Problem PinprotectorAspDotNetDev9:08 21 Feb '12  
AnswerRe: View Refresh Problem PinprotectorAspDotNetDev9:10 21 Feb '12  
GeneralRe: View Refresh Problem [modified] PinprotectorPete O'Hanlon9:17 21 Feb '12  
GeneralRe: View Refresh Problem PinprotectorAspDotNetDev9:26 21 Feb '12  
GeneralRe: View Refresh Problem PinprotectorPete O'Hanlon9:39 21 Feb '12  
GeneralRe: View Refresh Problem PinmemberKevin Marois13:29 22 Feb '12  
GeneralRe: View Refresh Problem PinprotectorPete O'Hanlon20:07 22 Feb '12  
GeneralRe: View Refresh Problem PinmemberMycroft Holmes13:14 22 Feb '12  
QuestionAccelerator keys on buttons not working PinmemberBernhard Hiller1:13 21 Feb '12  
AnswerRe: Accelerator keys on buttons not working PinprotectorPete O'Hanlon1:32 21 Feb '12  
GeneralRe: Accelerator keys on buttons not working PinmemberBernhard Hiller2:38 21 Feb '12  
GeneralRe: Accelerator keys on buttons not working PinprotectorPete O'Hanlon2:43 21 Feb '12  
QuestionData binding to a UserControl PinmemberJohn T.Emmatty6:05 19 Feb '12  

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

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


Advertise | Privacy | Mobile
Beta | 2.5.120517.1 | Last Updated 22 May 2012
Copyright © CodeProject, 1999-2012
All Rights Reserved. Terms of Use
Layout: fixed | fluid