Click here to Skip to main content
15,507,526 members
Home / Discussions / WPF
   

WPF

 
QuestionDesign Question Pin
Kevin Marois2-Oct-22 12:13
professionalKevin Marois2-Oct-22 12:13 
AnswerRe: Design Question Pin
Gerry Schmitz2-Oct-22 16:47
mveGerry Schmitz2-Oct-22 16:47 
QuestionLooking for a WPF control. Pin
Maximilien22-Sep-22 9:40
Maximilien22-Sep-22 9:40 
AnswerRe: Looking for a WPF control. Pin
Richard Deeming22-Sep-22 22:39
mveRichard Deeming22-Sep-22 22:39 
GeneralRe: Looking for a WPF control. Pin
Maximilien23-Sep-22 2:33
Maximilien23-Sep-22 2:33 
GeneralRe: Looking for a WPF control. Pin
Maximilien23-Sep-22 2:54
Maximilien23-Sep-22 2:54 
QuestionWeird behavior with contextual menu not rendering properly. Pin
Maximilien21-Sep-22 8:00
Maximilien21-Sep-22 8:00 
AnswerRe: Weird behavior with contextual menu not rendering properly. Pin
Richard Deeming21-Sep-22 22:36
mveRichard Deeming21-Sep-22 22:36 
The WPF ContextMenu doesn't inherit the DataContext of its parent element. You need to set that explicitly for the bindings to work:
XAML
<ContextMenu x:Name="MyContextMenu" DataContext="{Binding PlacementTarget, RelativeSource={RelativeSource Self}}">
As for the styles not being applied when you left-click, have you tried different sequences? Try two left-clicks, or a right-click followed by a left click, to see whether the styles are applied the second time the menu appears, or only applied after a right-click.



"These people looked deep within my soul and assigned me a number based on the order in which I joined."
- Homer

GeneralRe: Weird behavior with contextual menu not rendering properly. Pin
Maximilien22-Sep-22 9:22
Maximilien22-Sep-22 9:22 
QuestionConversion to .Net Core Issues Pin
Kevin Marois19-Sep-22 7:39
professionalKevin Marois19-Sep-22 7:39 
AnswerRe: Conversion to .Net Core Issues Pin
Richard Deeming19-Sep-22 22:20
mveRichard Deeming19-Sep-22 22:20 
GeneralRe: Conversion to .Net Core Issues Pin
Kevin Marois20-Sep-22 8:10
professionalKevin Marois20-Sep-22 8:10 
GeneralRe: Conversion to .Net Core Issues Pin
Kevin Marois22-Sep-22 6:57
professionalKevin Marois22-Sep-22 6:57 
GeneralRe: Conversion to .Net Core Issues Pin
Richard Deeming22-Sep-22 22:38
mveRichard Deeming22-Sep-22 22:38 
QuestionUsing Dependency Property's to Affect Non WPF Property's Pin
Marc Jeeves1-Sep-22 11:52
Marc Jeeves1-Sep-22 11:52 
AnswerRe: Using Dependency Property's to Affect Non WPF Property's Pin
Richard Deeming1-Sep-22 23:11
mveRichard Deeming1-Sep-22 23:11 
GeneralRe: Using Dependency Property's to Affect Non WPF Property's Pin
Marc Jeeves2-Sep-22 5:11
Marc Jeeves2-Sep-22 5:11 
GeneralRe: Using Dependency Property's to Affect Non WPF Property's Pin
Richard MacCutchan3-Sep-22 22:01
mveRichard MacCutchan3-Sep-22 22:01 
GeneralRe: Using Dependency Property's to Affect Non WPF Property's Pin
mjeeves3-Sep-22 9:58
mjeeves3-Sep-22 9:58 
GeneralRe: Using Dependency Property's to Affect Non WPF Property's Pin
Gerry Schmitz4-Sep-22 9:57
mveGerry Schmitz4-Sep-22 9:57 
GeneralRe: Using Dependency Property's to Affect Non WPF Property's Pin
Richard Deeming5-Sep-22 22:11
mveRichard Deeming5-Sep-22 22:11 
GeneralRe: Using Dependency Property's to Affect Non WPF Property's Pin
Gerry Schmitz6-Sep-22 6:34
mveGerry Schmitz6-Sep-22 6:34 
GeneralRe: Using Dependency Property's to Affect Non WPF Property's Pin
Marc Jeeves6-Sep-22 11:05
Marc Jeeves6-Sep-22 11:05 
GeneralRe: Using Dependency Property's to Affect Non WPF Property's Pin
Gerry Schmitz6-Sep-22 14:19
mveGerry Schmitz6-Sep-22 14:19 
QuestionCan Not Bin to Dependency Property in Custom Control Pin
Marc Jeeves1-Sep-22 7:26
Marc Jeeves1-Sep-22 7:26 

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.