Click here to Skip to main content
15,790,135 members
Home / Discussions / WPF
   

WPF

 
GeneralRe: Can anyone recommend a free WPF editor? Pin
Richard Andrew x6423-Jul-21 5:45
professionalRichard Andrew x6423-Jul-21 5:45 
GeneralRe: Can anyone recommend a free WPF editor? Pin
Mike Hankey23-Jul-21 5:50
mveMike Hankey23-Jul-21 5:50 
GeneralRe: Can anyone recommend a free WPF editor? Pin
Slacker00723-Jul-21 6:01
professionalSlacker00723-Jul-21 6:01 
GeneralRe: Can anyone recommend a free WPF editor control? Pin
Richard Deeming28-Jul-21 0:16
mveRichard Deeming28-Jul-21 0:16 
GeneralRe: Can anyone recommend a free WPF editor control? Pin
Mike Hankey28-Jul-21 3:05
mveMike Hankey28-Jul-21 3:05 
QuestionInstalling Test Mode vs Production Mode Pin
Kevin Marois19-Jul-21 9:55
professionalKevin Marois19-Jul-21 9:55 
QuestionRouted Event Args Null Pin
Kevin Marois28-Jun-21 17:28
professionalKevin Marois28-Jun-21 17:28 
AnswerRe: Routed Event Args Null Pin
Richard Deeming28-Jun-21 23:34
mveRichard Deeming28-Jun-21 23:34 
The problem isn't that the EventArgs object is null; it's that the EventArgs object isn't being passed as the command parameter to your RelayCommand.

If you're using the Microsoft.Xaml.Behaviors.Wpf[^] package, you need to set PassEventArgsToCommand="True" on your <i:InvokeCommandAction> element.

If you're using Prism, that will pass the event args automatically if the command parameter is not set. But that would use a different namepsace prefix on the InvokeCommandAction element.
6: Advanced MVVM Scenarios Using the Prism Library 5.0 for WPF | Microsoft Docs[^]

Other platforms will have different approaches. There are quite a few documented on this SO thread:
wpf - MVVM Passing EventArgs As Command Parameter - Stack Overflow[^]



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

QuestionHow to change background color in combobox in code behind? Pin
Cường Nguyễn Văn 202123-Jun-21 7:56
Cường Nguyễn Văn 202123-Jun-21 7:56 
QuestionMake textbox fill up and resizie Pin
Acuena21-Jun-21 21:59
Acuena21-Jun-21 21:59 
AnswerRe: Make textbox fill up and resizie Pin
Richard Deeming21-Jun-21 22:58
mveRichard Deeming21-Jun-21 22:58 
AnswerRe: Make textbox fill up and resizie Pin
Gerry Schmitz22-Jun-21 8:07
mveGerry Schmitz22-Jun-21 8:07 
Question[Problem] Why can not Pass Image between 2 Views by using the same ViewModel (MVVM) Pin
Oscar Tsai18-Jun-21 8:34
Oscar Tsai18-Jun-21 8:34 
AnswerRe: [Problem] Why can not Pass Image between 2 Views by using the same ViewModel (MVVM) Pin
Gerry Schmitz19-Jun-21 15:29
mveGerry Schmitz19-Jun-21 15:29 
GeneralRe: [Problem] Why can not Pass Image between 2 Views by using the same ViewModel (MVVM) Pin
Oscar Tsai20-Jun-21 4:20
Oscar Tsai20-Jun-21 4:20 
GeneralRe: [Problem] Why can not Pass Image between 2 Views by using the same ViewModel (MVVM) Pin
Gerry Schmitz20-Jun-21 7:01
mveGerry Schmitz20-Jun-21 7:01 
AnswerRe: [Problem] Why can not Pass Image between 2 Views by using the same ViewModel (MVVM) Pin
Richard Deeming21-Jun-21 0:37
mveRichard Deeming21-Jun-21 0:37 
GeneralRe: [Problem] Why can not Pass Image between 2 Views by using the same ViewModel (MVVM) Pin
Oscar Tsai21-Jun-21 5:10
Oscar Tsai21-Jun-21 5:10 
GeneralRe: [Problem] Why can not Pass Image between 2 Views by using the same ViewModel (MVVM) Pin
Oscar Tsai21-Jun-21 17:11
Oscar Tsai21-Jun-21 17:11 
AnswerRe: [Problem] Why can not Pass Image between 2 Views by using the same ViewModel (MVVM) Pin
michaelbarb23-Sep-21 11:32
michaelbarb23-Sep-21 11:32 
GeneralRe: [Problem] Why can not Pass Image between 2 Views by using the same ViewModel (MVVM) Pin
Oscar Tsai13-Oct-21 16:14
Oscar Tsai13-Oct-21 16:14 
GeneralRe: [Problem] Why can not Pass Image between 2 Views by using the same ViewModel (MVVM) Pin
michaelbarb14-Oct-21 13:38
michaelbarb14-Oct-21 13:38 
QuestionProblem Setting Focus Pin
Kevin Marois24-May-21 10:39
professionalKevin Marois24-May-21 10:39 
AnswerRe: Problem Setting Focus Pin
Richard Deeming24-May-21 22:56
mveRichard Deeming24-May-21 22:56 
QuestionImpossible to override a value in an animation located in a style? Pin
Mc_Topaz20-May-21 7:51
Mc_Topaz20-May-21 7:51 

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.