Hi
In my grid I want the horizontal scrollbar always to be visible. After browsing the forums I found this:
<Style TargetType="{x:Type igDP:RecordListControl}"> <Setter Property="Template"> <Setter.Value> <ControlTemplate TargetType="{x:Type igDP:RecordListControl}"> <ScrollViewer Focusable="true" CanContentScroll="True" HorizontalScrollBarVisibility="Visible" VerticalScrollBarVisibility="Auto"> <ItemsPresenter/> </ScrollViewer> </ControlTemplate> </Setter.Value> </Setter> </Style>
It does the work, I get a scrollbar that is always visible. But I can´t select cells anymore ore multiple rows. Have I missed something?
/Sara
Hello Sara,
Try this one :)
<Style TargetType="{x:Type igDP:RecordListControl}">
<Setter Property="Template">
<Setter.Value>
<ControlTemplate TargetType="{x:Type igDP:RecordListControl}">
<ScrollViewer
RenderTransform="{TemplateBinding FixedNearElementTransform}"
CanContentScroll="true"
Focusable="false"
HorizontalScrollBarVisibility="Visible"
VerticalScrollBarVisibility="Auto">
<ItemsPresenter RenderTransform="{TemplateBinding ScrollableElementTransform}"/>
</ScrollViewer>
</ControlTemplate>
</Setter.Value>
</Setter>
</Style>
thanks for fast answer :).
I get compilation failure though
Cannot find the static member 'FixedNearElementTransformProperty' on the type 'RecordListControl'.
Cannot find the static member 'ScrollableElementTransformProperty' on the type 'RecordListControl'.
have i still missed something?
I have v8.2 do I have to have v9.2?