Click here to Skip to main content
15,908,173 members
Home / Discussions / WPF
   

WPF

 
AnswerRe: Set DisplayMemberPath For Dynamic Combobox Pin
Wayne Gaylard12-Oct-11 1:09
professionalWayne Gaylard12-Oct-11 1:09 
GeneralRe: Set DisplayMemberPath For Dynamic Combobox Pin
Matt Tapia12-Oct-11 4:19
Matt Tapia12-Oct-11 4:19 
GeneralRe: Set DisplayMemberPath For Dynamic Combobox Pin
Alisaunder13-Oct-11 2:46
Alisaunder13-Oct-11 2:46 
GeneralRe: Set DisplayMemberPath For Dynamic Combobox Pin
Wayne Gaylard13-Oct-11 2:59
professionalWayne Gaylard13-Oct-11 2:59 
QuestionWPF Datagrid checkbox property not updated Pin
Preston Phillips11-Oct-11 8:17
Preston Phillips11-Oct-11 8:17 
AnswerRe: WPF Datagrid checkbox property not updated Pin
Wayne Gaylard12-Oct-11 1:11
professionalWayne Gaylard12-Oct-11 1:11 
GeneralRe: WPF Datagrid checkbox property not updated Pin
Preston Phillips12-Oct-11 3:52
Preston Phillips12-Oct-11 3:52 
GeneralRe: WPF Datagrid checkbox property not updated Pin
Preston Phillips12-Oct-11 4:38
Preston Phillips12-Oct-11 4:38 
The collection the datagrid is bound to is an observable collection of this object.

XML
public class BoxEmployeePermissions : INotifyPropertyChanged
{
    private AdminMediator mMediator;

    public BoxEmployeePermissions(AdminMediator mediator)
    {
        mMediator = mediator;
    }

    /// <summary>
    /// Name of the Employee.
    /// </summary>
    public string EmployeeName
    {
        get { return mEmployeeName; }
        set
        {
            mEmployeeName = value;
            OnPropertyChanged("EmployeeName");
        }
    }
    private string mEmployeeName;

    /// <summary>
    /// Employee's unique ID.
    /// </summary>
    public int EmployeeId
    {
        get { return mEmployeeId; }
        set
        {
            mEmployeeId = value;
            OnPropertyChanged("EmployeeId");
        }
    }
    private int mEmployeeId;

    /// <summary>
    /// Basic system user for this box.
    /// </summary>
    public bool SystemUser
    {
        get { return mSystemUser; }
        set
        {
            mSystemUser = value;
            if (value)
            {
                Maintenance = false;
                Administrator = false;
            }
            OnPropertyChanged("SystemUser");
            mMediator.BoxEventAggregator.GetEvent<ReevaluateAppliedBoxParameters>().Publish(new object());
        }
    }
    private bool mSystemUser;

    /// <summary>
    /// Maintenance level access to the box.
    /// </summary>
    public bool Maintenance
    {
        get { return mMaintenance; }
        set
        {
            mMaintenance = value;
            if (value)
            {
                SystemUser = false;
                Administrator = false;
            }
            OnPropertyChanged("Maintenance");
            mMediator.BoxEventAggregator.GetEvent<ReevaluateAppliedBoxParameters>().Publish(new object());
        }
    }
    private bool mMaintenance;

    /// <summary>
    /// Administrator level access to the box.
    /// </summary>
    public bool Administrator
    {
        get { return mAdministrator; }
        set
        {
            mAdministrator = value;
            if (value)
            {
                SystemUser = false;
                Maintenance = false;
            }
            OnPropertyChanged("Administrator");
            mMediator.BoxEventAggregator.GetEvent<ReevaluateAppliedBoxParameters>().Publish(new object());
        }
    }
    private bool mAdministrator;

...

And things do update eventually. It just takes leaving the row with the checkbox in it and sometimes coming back to that row and leaving again before the update occurs.
GeneralRe: WPF Datagrid checkbox property not updated Pin
Preston Phillips12-Oct-11 5:15
Preston Phillips12-Oct-11 5:15 
QuestionValue Conversions Pin
Geysser8-Oct-11 9:04
Geysser8-Oct-11 9:04 
AnswerRe: Value Conversions Pin
Abhinav S9-Oct-11 0:45
Abhinav S9-Oct-11 0:45 
AnswerRe: Value Conversions Pin
SledgeHammer019-Oct-11 8:05
SledgeHammer019-Oct-11 8:05 
GeneralRe: Value Conversions Pin
Geysser9-Oct-11 8:18
Geysser9-Oct-11 8:18 
GeneralRe: Value Conversions Pin
SledgeHammer019-Oct-11 9:02
SledgeHammer019-Oct-11 9:02 
AnswerRe: Value Conversions Pin
Pete O'Hanlon9-Oct-11 9:30
mvePete O'Hanlon9-Oct-11 9:30 
GeneralRe: Value Conversions Pin
Geysser10-Oct-11 5:55
Geysser10-Oct-11 5:55 
GeneralRe: Value Conversions Pin
Pete O'Hanlon10-Oct-11 6:12
mvePete O'Hanlon10-Oct-11 6:12 
GeneralRe: Value Conversions Pin
SledgeHammer0110-Oct-11 10:03
SledgeHammer0110-Oct-11 10:03 
GeneralRe: Value Conversions Pin
SledgeHammer0110-Oct-11 11:13
SledgeHammer0110-Oct-11 11:13 
GeneralRe: Value Conversions Pin
SledgeHammer0111-Oct-11 5:10
SledgeHammer0111-Oct-11 5:10 
QuestionCustom Strtpage Namespace Problem Pin
Kevin Marois7-Oct-11 8:53
professionalKevin Marois7-Oct-11 8:53 
AnswerRe: Custom Strtpage Namespace Problem Pin
Alisaunder7-Oct-11 9:35
Alisaunder7-Oct-11 9:35 
GeneralRe: Custom Strtpage Namespace Problem Pin
Kevin Marois7-Oct-11 10:05
professionalKevin Marois7-Oct-11 10:05 
GeneralRe: Custom Strtpage Namespace Problem Pin
Kevin Marois7-Oct-11 10:41
professionalKevin Marois7-Oct-11 10:41 
QuestionUnable to click or select TextBox in WPF? [SOLVED] Pin
Alisaunder6-Oct-11 5:29
Alisaunder6-Oct-11 5:29 

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.