Hi,
I have try to set HorizontalScrollBarVisibility = Hidden, but the scroll bar is still visible !
What can I do ?
Thanks
What element are you setting the HorizontalScrollbarVisibility on? The XamDataGrid doesn't expose that property. If you don't want to see the horizontal scrollbar put this style in the xamDataGrid's Resources collection:
<Style TargetType="{x:Type igDP:RecordListControl}">
<Setter Property="Template">
<Setter.Value>
<ControlTemplate TargetType="{x:Type igDP:RecordListControl}">
CanContentScroll="true"
Focusable="false"
HorizontalScrollBarVisibility="Hidden"
VerticalScrollBarVisibility="{TemplateBinding VerticalScrollBarVisibility}">
<ItemsPresenter/>
</ScrollViewer>
</ControlTemplate>
</Setter.Value>
</Setter>
</Style>
Hi guys,
I try to use the style in xamgrid resource , and set
igDP:XamDataGrid ScrollViewer.VerticalScrollBarVisibility="Disabled"
but the VerticalScrollBar also display and the HorizontalScrollBar also not display ,i am very puzzle...
code:
<Style TargetType="{x:Type igDP:RecordListControl}"> <Setter Property="Template"> <Setter.Value> <ControlTemplate TargetType="{x:Type igDP:RecordListControl}"> <ScrollViewer CanContentScroll="true" Focusable="false" HorizontalScrollBarVisibility="Auto" VerticalScrollBarVisibility="{TemplateBinding VerticalScrollBarVisibility}"> <ItemsPresenter/> </ScrollViewer> </ControlTemplate> </Setter.Value> </Setter> </Style> </igDP:XamDataGrid.Resources>
i used the example "XamDataGridWithCheckedRecords" from your site.
who can help me ????