Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
295
How to track Row Height Changes?
posted

I am looking for the Row Height Event into XamDataGrid but unfortunately its not there. could someone guide me how can i reach this goal.

how to raise event on row height changes.?

  • 27093
    Verified Answer
    posted

    Hello, 

    I have been looking into your requirement and indeed there is no exposed event like that through the XamDataGrid’s API, however you can use a Style that targets the DataRecords’ visual elements and with an event handle get notified when their size is changed, here is a small snippet: 

    <Style TargetType="{x:Type igDP:DataRecordPresenter}">

        <EventSetter Event="SizeChanged" Handler="DataRecordPresenter_SizeChanged" />

    </Style>

     

    void DataRecordPresenter_SizeChanged(object sender, SizeChangedEventArgs e)

    {

        //DO STUFF HERE       

    }

     

    Please let me know if I can be of any further assistance on the matter.