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

WPF

 
GeneralRe: WPF DataGrid Extended Pin
Kevin Marois23-Jan-17 10:28
professionalKevin Marois23-Jan-17 10:28 
QuestionComboBox Restore Saved Item Pin
Kevin Marois20-Jan-17 10:06
professionalKevin Marois20-Jan-17 10:06 
AnswerRe: ComboBox Restore Saved Item Pin
Afzaal Ahmad Zeeshan20-Jan-17 11:20
professionalAfzaal Ahmad Zeeshan20-Jan-17 11:20 
AnswerRe: ComboBox Restore Saved Item Pin
Mycroft Holmes20-Jan-17 11:54
professionalMycroft Holmes20-Jan-17 11:54 
GeneralRe: ComboBox Restore Saved Item Pin
Kevin Marois20-Jan-17 11:58
professionalKevin Marois20-Jan-17 11:58 
GeneralRe: ComboBox Restore Saved Item Pin
Mycroft Holmes20-Jan-17 14:14
professionalMycroft Holmes20-Jan-17 14:14 
QuestionEnumDescriptionConverter Exception Pin
Kevin Marois20-Jan-17 9:55
professionalKevin Marois20-Jan-17 9:55 
AnswerRe: EnumDescriptionConverter Exception Pin
Afzaal Ahmad Zeeshan20-Jan-17 11:38
professionalAfzaal Ahmad Zeeshan20-Jan-17 11:38 
Can you try the following code and see if this works?
C#
object IValueConverter.Convert(object value, Type targetType, object parameter, CultureInfo culture)
{
    if(string.IsNullOrEmpty(value as string)) {
        Enum myEnum = (Enum)value;         // <========= EXCEPTION HERE - 'value' is an empty string.
        string description = GetEnumDescription(myEnum);
        return description;
    } else {
        // Handle the problem here, "return "Error";
    }
}
The sh*t I complain about
It's like there ain't a cloud in the sky and it's raining out - Eminem
~! Firewall !~

GeneralRe: EnumDescriptionConverter Exception Pin
Kevin Marois20-Jan-17 11:38
professionalKevin Marois20-Jan-17 11:38 
Questionc# WPF MVVM accesing a view with from another view Pin
Member 1288059514-Jan-17 21:56
Member 1288059514-Jan-17 21:56 
AnswerRe: c# WPF MVVM accesing a view with from another view Pin
Pete O'Hanlon15-Jan-17 21:46
mvePete O'Hanlon15-Jan-17 21:46 
GeneralRe: c# WPF MVVM accesing a view with from another view Pin
Member 1288059516-Jan-17 8:05
Member 1288059516-Jan-17 8:05 
AnswerRe: c# WPF MVVM accesing a view with from another view Pin
Richard Deeming16-Jan-17 2:26
mveRichard Deeming16-Jan-17 2:26 
GeneralRe: c# WPF MVVM accesing a view with from another view Pin
Member 1288059516-Jan-17 8:31
Member 1288059516-Jan-17 8:31 
GeneralRe: c# WPF MVVM accesing a view with from another view Pin
Richard Deeming16-Jan-17 9:12
mveRichard Deeming16-Jan-17 9:12 
GeneralRe: c# WPF MVVM accesing a view with from another view Pin
Member 1288059517-Jan-17 8:05
Member 1288059517-Jan-17 8:05 
GeneralRe: c# WPF MVVM accesing a view with from another view Pin
Richard Deeming17-Jan-17 8:40
mveRichard Deeming17-Jan-17 8:40 
GeneralRe: c# WPF MVVM accesing a view with from another view Pin
Member 1288059517-Jan-17 8:52
Member 1288059517-Jan-17 8:52 
QuestionBind To Static Property Pin
Kevin Marois13-Jan-17 5:32
professionalKevin Marois13-Jan-17 5:32 
AnswerRe: Bind To Static Property Pin
Richard Deeming13-Jan-17 5:55
mveRichard Deeming13-Jan-17 5:55 
GeneralRe: Bind To Static Property Pin
Kevin Marois13-Jan-17 6:01
professionalKevin Marois13-Jan-17 6:01 
GeneralRe: Bind To Static Property Pin
Richard Deeming13-Jan-17 7:49
mveRichard Deeming13-Jan-17 7:49 
GeneralRe: Bind To Static Property Pin
Kevin Marois13-Jan-17 7:56
professionalKevin Marois13-Jan-17 7:56 
GeneralRe: Bind To Static Property Pin
Richard Deeming13-Jan-17 8:18
mveRichard Deeming13-Jan-17 8:18 
GeneralRe: Bind To Static Property Pin
Kevin Marois13-Jan-17 8:23
professionalKevin Marois13-Jan-17 8:23 

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.