Click here to Skip to main content
15,887,214 members
Home / Discussions / WPF
   

WPF

 
AnswerRe: SQLite Manager Pin
Pete O'Hanlon22-Jul-15 22:49
mvePete O'Hanlon22-Jul-15 22:49 
GeneralRe: SQLite Manager Pin
Kevin Marois23-Jul-15 3:50
professionalKevin Marois23-Jul-15 3:50 
QuestionDataBinding to an Icon Pin
Member 1027274820-Jul-15 8:23
Member 1027274820-Jul-15 8:23 
AnswerRe: DataBinding to an Icon Pin
Herman<T>.Instance23-Jul-15 11:31
Herman<T>.Instance23-Jul-15 11:31 
GeneralRe: DataBinding to an Icon Pin
Member 1027274824-Jul-15 1:36
Member 1027274824-Jul-15 1:36 
QuestionWPF Expander - Change Image Pin
Kevin Marois15-Jul-15 6:29
professionalKevin Marois15-Jul-15 6:29 
QuestionCustom Drop Down Menu Button Pin
Kevin Marois7-Jul-15 8:05
professionalKevin Marois7-Jul-15 8:05 
AnswerRe: Custom Drop Down Menu Button Pin
Richard Deeming7-Jul-15 11:36
mveRichard Deeming7-Jul-15 11:36 
The MenuItemSelectedCommand is defined on your DFTDropDownButton class, but the MenuItem's DataContext will be an instance of your DropDownButtonMenuItem class.

If you check the output window, you should see lots of data binding errors telling you that the DropDownButtonMenuItem class doesn't contain a property called MenuItemSelectedCommand.

Try pointing to the layoutRoot element in the binding:
XAML
<MenuItem
    Command="{Binding Path=DataContext.MenuItemSelectedCommand, ElementName=layoutRoot}"
    CommandParameter="{Binding}"
/>




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


GeneralRe: Custom Drop Down Menu Button Pin
Kevin Marois7-Jul-15 11:42
professionalKevin Marois7-Jul-15 11:42 
QuestionApply Styles To Custom Control Pin
Kevin Marois7-Jul-15 5:36
professionalKevin Marois7-Jul-15 5:36 
AnswerRe: Apply Styles To Custom Control Pin
Richard Deeming7-Jul-15 6:57
mveRichard Deeming7-Jul-15 6:57 
GeneralRe: Apply Styles To Custom Control Pin
Kevin Marois7-Jul-15 7:03
professionalKevin Marois7-Jul-15 7:03 
GeneralRe: Apply Styles To Custom Control Pin
Richard Deeming7-Jul-15 7:07
mveRichard Deeming7-Jul-15 7:07 
GeneralRe: Apply Styles To Custom Control Pin
Kevin Marois7-Jul-15 7:10
professionalKevin Marois7-Jul-15 7:10 
GeneralRe: Apply Styles To Custom Control Pin
Richard Deeming7-Jul-15 7:13
mveRichard Deeming7-Jul-15 7:13 
GeneralRe: Apply Styles To Custom Control Pin
Kevin Marois7-Jul-15 7:19
professionalKevin Marois7-Jul-15 7:19 
GeneralRe: Apply Styles To Custom Control Pin
Richard Deeming7-Jul-15 7:41
mveRichard Deeming7-Jul-15 7:41 
GeneralRe: Apply Styles To Custom Control Pin
Kevin Marois7-Jul-15 7:55
professionalKevin Marois7-Jul-15 7:55 
GeneralRe: Apply Styles To Custom Control Pin
Richard Deeming7-Jul-15 8:17
mveRichard Deeming7-Jul-15 8:17 
GeneralRe: Apply Styles To Custom Control Pin
Kevin Marois7-Jul-15 8:18
professionalKevin Marois7-Jul-15 8:18 
Questioncheck out of canvas Pin
ngthtra29-Jun-15 21:36
ngthtra29-Jun-15 21:36 
QuestionProblem in Show/Hide Control in a WPF User Control Pin
Ashfaque Hussain29-Jun-15 20:50
Ashfaque Hussain29-Jun-15 20:50 
AnswerRe: Problem in Show/Hide Control in a WPF User Control Pin
Richard Deeming30-Jun-15 1:10
mveRichard Deeming30-Jun-15 1:10 
GeneralRe: Problem in Show/Hide Control in a WPF User Control Pin
Ashfaque Hussain1-Jul-15 18:54
Ashfaque Hussain1-Jul-15 18:54 
QuestionHiding Few of control in UserControl Pin
Ashfaque Hussain26-Jun-15 0:16
Ashfaque Hussain26-Jun-15 0:16 

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.