Click here to Skip to main content

Silverlight / WPF

 
GeneralRe: My Thoughts On My WPF App Design PinprofessionalMycroft Holmes17-Jul-14 13:43 
GeneralRe: My Thoughts On My WPF App Design PinmemberKevin Marois17-Jul-14 13:59 
GeneralRe: My Thoughts On My WPF App Design PinprofessionalMycroft Holmes17-Jul-14 15:09 
QuestionWPF ComboBox Problem PinmemberKevin Marois10-Jul-13 20:13 
Ok, what am I doing wrong here???
 
I have a Client Entity:
 
public class ClientEntity : _EntityBase
{
    private string _ClientName = string.Empty;
    public string ClientName 
    {
        get { return _ClientName; }
        set
        {
            if (_ClientName != value)
            {
                _ClientName = value;
                RaisePropertyChanged("ClientName");
                IsDirty = true;
            }
        }
    }
 
    private PayTypeEntity _PayType;
    public PayTypeEntity PayType
    {
        get { return _PayType; }
        set
        {
            if (_PayType != value)
            {
                _PayType = value;
                RaisePropertyChanged("PayType");
                IsDirty = true;
            }
        }
    }
}
 
In my XAML, I am binding the PayTypes combo like this:
 
<ComboBox Grid.Row="1"
            Grid.Column="3"
            ItemsSource="{Binding PayTypes}"
            SelectedValue="{Binding Client.PayType.Id, Mode=TwoWay}"
            SelectedValuePath="Id"
            DisplayMemberPath="Caption"/>
 
When I select a PayType it does not get set on the ClientEntity.
If it's not broken, fix it until it is

AnswerRe: WPF ComboBox Problem PinprofessionalRichard Deeming11-Jul-13 2:58 
GeneralRe: WPF ComboBox Problem PinmemberKevin Marois11-Jul-13 18:48 
GeneralRe: WPF ComboBox Problem PinmemberKevin Marois19-Jul-13 17:27 
Questionhow to make an navigation title dropdownlist Pinmemberneodeaths10-Jul-13 10:45 
AnswerRe: how to make an navigation title dropdownlist PinprofessionalMycroft Holmes10-Jul-13 13:44 
QuestionAny Idea CFL in Silverlight? PinmemberTanmoy Mohish9-Jul-13 20:57 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.


Advertise | Privacy | Mobile
Web04 | 2.8.150327.1 | Last Updated 27 Mar 2015
Copyright © CodeProject, 1999-2015
All Rights Reserved. Terms of Service
Layout: fixed | fluid