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
1635
AppStylist and ColumnGroup dividers
posted

Does AppStylist prevent DrawElement from firing? I have a grid using AppStylist and I want borders between column goups. The GetPhasesToFilter is firing which includes

if (drawParams.Elelemnt is CellUIElement)

     return Infragistics.Win.DrawPhase.AfterDrawBorders;

However, DrawElement is not firing. How do I get DrawELement to fire. Thanks.

Ron 

 

Parents
  • 469350
    Offline posted

    Hi Ron,

    If you are returning the AfterDrawBorders phase from GetPhasesToFilter, then the DrawElement should fire for that phase.

    The only reason I can think of why it would not work is if the element in question is in a state where it is not drawing any borders. I doubt it's specific to AppStylist, and it seems pretty odd for a CellUIElement, but I suppose it's possible that there is some combination of circumstances under which the cell draws no borders.

    Are the cells in the grid drawing any borders without the DrawFilter? If not, then they might be deliberately skipping that phase because borders are simply not supported for those elements under the current conditions.

Reply Children