Home Forums WPF controls Xceed DataGrid for WPF Set TableViewScrollViewer ScrollBars Visibility in Theme project

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • User (Old forums)
    Member
    Post count: 23064
    #27102 |

    Hi, I created Custom Theme Project and set TableScrollViewer like this but it didn’t work. Please tell what im doing wrong. thanks

    <!–**************************

    * STYLE: TableViewScrollViewer

    ************************** –>

    <Style x:Key=”tableViewBlackFlatTableViewScrollViewer” TargetType=”{x:Type xcdg:TableViewScrollViewer}”>

    <Setter Property=”HorizontalScrollBarVisibility” Value=”Hidden”/>

    <Setter Property=”VerticalScrollBarVisibility” Value=”Hidden”/>

    </Style>

     

    <!– =================================================================== –>

    <!– DefaultStyleKey declarations –>

    <!– =================================================================== –>

     

    <Style x:Key=”{xcdg:ThemeKey TargetViewType=xcdg:TableView, ThemeType=local:BlackFlatTheme, TargetElementType=xcdg:TableViewScrollViewer}”

    TargetType=”xcdg:TableViewScrollViewer”

    BasedOn=”{StaticResource tableViewBlackFlatTableViewScrollViewer}”/>

     

     

    Imported from legacy forums. Posted by allforum (had 695 views)

    Xceed Support
    Member
    Post count: 5658

    This is indeed an issue with the DataGrid for WPF. I have opened a ticket regarding this and it should be fixed for the next version.

    In the meantime, I suggest adding your style as an implicit style in the DataGridControl’s ResourceDictionary.

    Imported from legacy forums. Posted by Marcus [Xceed] (had 441 views)

    User (Old forums)
    Member
    Post count: 23064

    OK. There’s no problem with implicit style.

    Thanks for your prompted reply.

    Imported from legacy forums. Posted by allforum (had 1268 views)

Viewing 3 posts - 1 through 3 (of 3 total)
  • You must be logged in to reply to this topic.