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
165
How to style a Record's FixedLocation
posted

I see from the Infragistics documentation on a Record's FixedLocation that I can set a particular row's fixed location, but I can find a way to set this using a style.  In a test project I tried the below, but it didn't work since the compiler won't let me set a property inside the Record object of the DataRecordPresenter.  Error it gives me is:

"Cannot resolve the Style Property 'FixedLocation'.  Verify that the owning type is the Style's TargetType, or use Class.Property syntax to specify the Property.

<Style TargetType="{x:Type DataPresenter:DataRecordPresenter}">
<Style.Triggers>
     <DataTrigger Binding="{Binding Path=DataItem.State}" Value="OR">
         <Setter Property="Record.FixedLocation" Value="FixedToTop" />
        </DataTrigger>
    </Style.Triggers>
</Style>

 

Parents Reply Children
No Data