Click here to Skip to main content
14,882,311 members
Home / Discussions / WPF
   

WPF

 
PraiseRe: WPF: DataGridCheckboxColumn when one checkbox is checked, check another checkbox in same row Pin
Mark McArdle7-Feb-17 2:07
MemberMark McArdle7-Feb-17 2:07 
QuestionStyle User Control In Another Assembly Pin
Kevin Marois2-Feb-17 6:54
professionalKevin Marois2-Feb-17 6:54 
AnswerRe: Style User Control In Another Assembly Pin
Pete O'Hanlon2-Feb-17 7:12
mvePete O'Hanlon2-Feb-17 7:12 
GeneralRe: Style User Control In Another Assembly Pin
Kevin Marois2-Feb-17 7:13
professionalKevin Marois2-Feb-17 7:13 
GeneralRe: Style User Control In Another Assembly Pin
Kevin Marois2-Feb-17 7:50
professionalKevin Marois2-Feb-17 7:50 
QuestionTelerik GridViewComboBoxColumn Pin
eddieangel25-Jan-17 12:29
Membereddieangel25-Jan-17 12:29 
AnswerRe: Telerik GridViewComboBoxColumn Pin
Graeme_Grant28-Jan-17 2:23
professionalGraeme_Grant28-Jan-17 2:23 
QuestionDataGrid DataGridComboBoxColumn Enum Descriptions Pin
Kevin Marois24-Jan-17 6:22
professionalKevin Marois24-Jan-17 6:22 
Trying to show enum descriptions in a DataGrid DataGridComboBoxColumn . here's my XAML so far:
<Window.Resources>
    <wpfconv:EnumDescriptionConverter x:Key="EnumDescriptionConverter" />
    <ObjectDataProvider MethodName="GetValues" 
                        ObjectType="{x:Type sys:Enum}"
                        x:Key="accessEnums">
        <ObjectDataProvider.MethodParameters>
            <x:Type TypeName="enums:AccessLevel" />
        </ObjectDataProvider.MethodParameters>
    </ObjectDataProvider>
</Window.Resources>
and
<DataGridComboBoxColumn Header="Access"
                        ItemsSource="{Binding Source={StaticResource accessEnums}, Mode=OneWay}"
                        SelectedItemBinding="{Binding Access}"
                        Width="100">
</DataGridComboBoxColumn>
and the enum:
public enum AccessLevel
{
    [Description("No Acccess")]
    NoAccess = 0,

    [Description("Full Acccess")]
    HasAccess = 1
}

When I run it I see the enum value in the combo, not the descriptions. Can someone show me how to do this?

Thanks
If it's not broken, fix it until it is.
Everything makes sense in someone's mind.
Ya can't fix stupid.

AnswerRe: DataGrid DataGridComboBoxColumn Enum Descriptions Pin
Afzaal Ahmad Zeeshan24-Jan-17 6:46
mveAfzaal Ahmad Zeeshan24-Jan-17 6:46 
QuestionWPF DataGrid Extended Pin
Kevin Marois23-Jan-17 10:00
professionalKevin Marois23-Jan-17 10:00 
AnswerRe: WPF DataGrid Extended Pin
Richard Deeming23-Jan-17 10:25
mveRichard Deeming23-Jan-17 10:25 
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
mveAfzaal 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
mveAfzaal Ahmad Zeeshan20-Jan-17 11:38 
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
MemberMember 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
MemberMember 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
MemberMember 1288059516-Jan-17 8:31 

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.