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
615
how can I set ForegroundHoverStyleProperty is nothing
posted

how can I set ForegroundHoverStyleProperty is nothing when mouse over the cell

 

the code doesn't work:

     Dim foregroundHoverStyle As New Style(GetType(ContentPresenter))
        foregroundHoverStyle.Setters.Add(New Setter(DataRecordCellArea.ForegroundHoverStyleProperty, Nothing))

        Dim cellStyle As New Style(GetType(DataRecordCellArea))
        cellStyle.Setters.Add(New Setter(DataRecordCellArea.ForegroundHoverStyleProperty, foregroundHoverStyle))

 

 

thanks!!!