Welcome to the Xceed Community Sign in | Join | Help
Community Search  

PropertyChanged in the Column class

Sort Posts: Previous Next
  •  05-07-2008, 11:27 AM Post no. 12043

    PropertyChanged in the Column class

    The propertychanged event doesn't seem to work for most of the properties in the Column class.I would expect that the following  code would fire property changed events on VisiblePosition, ReadOnly and IsMainColumn. However the example only fires property changed events for IsMainColumn.

    Column c = new Column();
    c.PropertyChanged += new System.ComponentModel.PropertyChangedEventHandler( OnColumnPropertyChanged );
    c.VisiblePosition = 1;
    c.VisiblePosition = 5;
    c.ReadOnly = true;
    c.ReadOnly = false;
    c.IsMainColumn = true;
    c.IsMainColumn = false;

     

     

     

     

  •  05-07-2008, 10:37 PM Post no. 12064 in reply to 12043

    Re: PropertyChanged in the Column class

    IsMainColumn is a CLR property and therefore its change notification goes through the PropertyChanged event.

    ReadOnly and VisiblePosition are dependency properties for which you need to use the dp change notification system: DependencyPropertyDescriptor.AddValueChanged Method


    Technical Writer - Xceed Software

    Of all the things I've lost, I miss my mind the most. - Mark Twain
  •  05-09-2008, 5:48 PM Post no. 12141 in reply to 12064

    Re: PropertyChanged in the Column class

    That worked. Thank you.
View as RSS news feed in XML
Contact | Site Map | Reviews | Legal Terms of Use | Trademarks | Privacy Statement Copyright 2008 Xceed Software Inc.