Click here to Skip to main content
15,882,504 members
Home / Discussions / WPF
   

WPF

 
GeneralRe: mouse click Pin
michaelgr122-Feb-12 22:04
michaelgr122-Feb-12 22:04 
AnswerRe: mouse click Pin
Abhinav S23-Feb-12 0:49
Abhinav S23-Feb-12 0:49 
QuestionTreeview Expand/Collapse icons on right side in WPF Pin
Issac99922-Feb-12 18:08
Issac99922-Feb-12 18:08 
QuestionMerge cells - Silverlight Pin
Lê Tùng Lâm22-Feb-12 15:12
Lê Tùng Lâm22-Feb-12 15:12 
AnswerRe: Merge cells - Silverlight Pin
Abhinav S22-Feb-12 18:27
Abhinav S22-Feb-12 18:27 
GeneralRe: Merge cells - Silverlight Pin
Lê Tùng Lâm23-Feb-12 15:04
Lê Tùng Lâm23-Feb-12 15:04 
Questionleft button context menu Pin
michaelgr122-Feb-12 2:40
michaelgr122-Feb-12 2:40 
Questioncontext menu Pin
michaelgr122-Feb-12 1:35
michaelgr122-Feb-12 1:35 
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 Pin
Pete O'Hanlon22-Feb-12 2:36
mvePete O'Hanlon22-Feb-12 2:36 
GeneralRe: context menu Pin
michaelgr122-Feb-12 2:46
michaelgr122-Feb-12 2:46 
QuestionView Refresh Problem Pin
Kevin Marois21-Feb-12 8:45
professionalKevin Marois21-Feb-12 8:45 
AnswerRe: View Refresh Problem Pin
Pete O'Hanlon21-Feb-12 8:56
mvePete O'Hanlon21-Feb-12 8:56 
GeneralRe: View Refresh Problem Pin
Kevin Marois21-Feb-12 9:05
professionalKevin Marois21-Feb-12 9:05 
GeneralRe: View Refresh Problem Pin
AspDotNetDev21-Feb-12 9:08
protectorAspDotNetDev21-Feb-12 9:08 
AnswerRe: View Refresh Problem Pin
AspDotNetDev21-Feb-12 9:10
protectorAspDotNetDev21-Feb-12 9:10 
GeneralRe: View Refresh Problem Pin
Pete O'Hanlon21-Feb-12 9:17
mvePete O'Hanlon21-Feb-12 9:17 
GeneralRe: View Refresh Problem Pin
AspDotNetDev21-Feb-12 9:26
protectorAspDotNetDev21-Feb-12 9:26 
GeneralRe: View Refresh Problem Pin
Pete O'Hanlon21-Feb-12 9:39
mvePete O'Hanlon21-Feb-12 9:39 
GeneralRe: View Refresh Problem Pin
Kevin Marois22-Feb-12 13:29
professionalKevin Marois22-Feb-12 13:29 
GeneralRe: View Refresh Problem Pin
Pete O'Hanlon22-Feb-12 20:07
mvePete O'Hanlon22-Feb-12 20:07 
GeneralRe: View Refresh Problem Pin
Mycroft Holmes22-Feb-12 13:14
professionalMycroft Holmes22-Feb-12 13:14 
QuestionAccelerator keys on buttons not working Pin
Bernhard Hiller21-Feb-12 1:13
Bernhard Hiller21-Feb-12 1:13 
AnswerRe: Accelerator keys on buttons not working Pin
Pete O'Hanlon21-Feb-12 1:32
mvePete O'Hanlon21-Feb-12 1:32 
GeneralRe: Accelerator keys on buttons not working Pin
Bernhard Hiller21-Feb-12 2:38
Bernhard Hiller21-Feb-12 2:38 
GeneralRe: Accelerator keys on buttons not working Pin
Pete O'Hanlon21-Feb-12 2:43
mvePete O'Hanlon21-Feb-12 2:43 

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.