Click here to Skip to main content
15,850,359 members
Home / Discussions / WPF
   

WPF

 
GeneralRe: DataGrid Exception Pin
Kevin Marois30-Nov-23 7:46
professionalKevin Marois30-Nov-23 7:46 
QuestionCustom Control Style Question Revisited Pin
Kevin Marois30-Oct-23 10:14
professionalKevin Marois30-Oct-23 10:14 
AnswerRe: Custom Control Style Question Revisited Pin
Gerry Schmitz30-Oct-23 13:20
mveGerry Schmitz30-Oct-23 13:20 
GeneralRe: Custom Control Style Question Revisited Pin
Kevin Marois31-Oct-23 9:01
professionalKevin Marois31-Oct-23 9:01 
QuestionUI Validation Problem Pin
Kevin Marois10-Oct-23 14:10
professionalKevin Marois10-Oct-23 14:10 
AnswerRe: UI Validation Problem Pin
Richard Deeming10-Oct-23 23:13
mveRichard Deeming10-Oct-23 23:13 
GeneralRe: UI Validation Problem Pin
Kevin Marois12-Oct-23 8:25
professionalKevin Marois12-Oct-23 8:25 
GeneralRe: UI Validation Problem Pin
Richard Deeming12-Oct-23 22:34
mveRichard Deeming12-Oct-23 22:34 
The errors don't match the property you're binding to.

Try using:
C#
const string propertyName = $"{nameof(Customer)}.{nameof(Customer.CustomerName)}";

ClearErrors(propertyName);

f (string.IsNullOrWhiteSpace(Customer.CustomerName))
{
    AddError(propertyName, "The Customer Name cannot be empty.");
}




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

AnswerRe: UI Validation Problem Pin
Gerry Schmitz12-Oct-23 9:52
mveGerry Schmitz12-Oct-23 9:52 
GeneralRe: UI Validation Problem Pin
Kevin Marois12-Oct-23 15:54
professionalKevin Marois12-Oct-23 15:54 
GeneralRe: UI Validation Problem Pin
Gerry Schmitz12-Oct-23 20:12
mveGerry Schmitz12-Oct-23 20:12 
GeneralRe: UI Validation Problem Pin
Kevin Marois16-Oct-23 13:50
professionalKevin Marois16-Oct-23 13:50 
QuestionUI Validation Questions Pin
Kevin Marois29-Sep-23 16:54
professionalKevin Marois29-Sep-23 16:54 
AnswerRe: UI Validation Questions Pin
Richard Deeming1-Oct-23 22:43
mveRichard Deeming1-Oct-23 22:43 
QuestionCustom Control Style Question Pin
Kevin Marois14-Sep-23 13:35
professionalKevin Marois14-Sep-23 13:35 
AnswerRe: Custom Control Style Question Pin
Gerry Schmitz14-Sep-23 13:57
mveGerry Schmitz14-Sep-23 13:57 
GeneralRe: Custom Control Style Question Pin
Kevin Marois15-Sep-23 6:33
professionalKevin Marois15-Sep-23 6:33 
GeneralRe: Custom Control Style Question Pin
Gerry Schmitz15-Sep-23 6:58
mveGerry Schmitz15-Sep-23 6:58 
GeneralRe: Custom Control Style Question Pin
Kevin Marois15-Sep-23 15:54
professionalKevin Marois15-Sep-23 15:54 
Question.Net Core System.Windows.Data Namespace Pin
Kevin Marois6-Sep-23 18:51
professionalKevin Marois6-Sep-23 18:51 
AnswerRe: .Net Core System.Windows.Data Namespace Pin
Richard Deeming6-Sep-23 22:19
mveRichard Deeming6-Sep-23 22:19 
QuestionLinux - Make an overlay or something like this... Pin
Alex 5327-Aug-23 0:02
Alex 5327-Aug-23 0:02 
QuestionNavigationControl - Still Have A Problem Pin
Kevin Marois25-Aug-23 12:30
professionalKevin Marois25-Aug-23 12:30 
Question[Solved/Workaround] Floating progress visualization with button control Pin
Evilfish200010-Aug-23 0:28
Evilfish200010-Aug-23 0:28 
AnswerRe: Floating progress visualization with button control Pin
Richard Deeming10-Aug-23 1:26
mveRichard Deeming10-Aug-23 1: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.