LightScrollViewerStyle for WPF?

9 replies. Last post: July 23, 2013 4:53 PM by David De Smet
Tags :
  • (None)

Good day,

I've seen the samples and I would like to apply your beautiful LightScrollViewerStyle to an UXScrollViewer in WPF, but somehow it doesn't work.

I copy pasted the style exactly as it is and it works in Silverlight but in WPF doesn't.

I'm not sure, but maybe it's because the following piece of code (CompositeTransform) is not available in WPF.

<Intersoft:UXScrollViewer.RenderTransform>
    <CompositeTransform />
</Intersoft:UXScrollViewer.RenderTransform>

Could you give some insights of how can this be done?

Thanks,

Dave

Answers

Yudi Member

Hi David,

I continue the investigation and I think I managed to have a result which looks closer with the SL version.

Hope this helps.

Hi Yudi,

I was still looking for a way to achieve the same look and feel and your sample was very helpful.
I took the ScrollViewerControlTemplate code and use it in the xaml style and it is now working as expected.

Thanks a lot for your kind help!

Regards,
Dave

All Replies

Yudi Member

Could you please provide us with the code of LightScrollViewerStyle which, suspected, doesn’t work due to CompositeTransform code?

Look forward to hearing back from you.

Hi Yudi,

Sorry for the late reply...
I didn't open the solution but by the style name, I believe is that one (attached here).

Please take a look and let me know if that is the right one.

Thanks,
Dave
Yudi Member

Thank you for the sent code. I will start my investigation from the given style.

I will get back to you as soon as possible.

Thanks Yudi,
I'll be waiting for your reply..
Hi Yudi,

I'm wondering if you got time to investigate it.
Thanks,
Dave
Yudi Member

Sorry for the delay in sending this.

I haven’t managed to apply LightScrollViewerStyle in WPF. However, I found a workaround for this requirement. The workaround does the styling directly on ScrollBar element.

I enclosed a simple XAML page which implements the workaround and show the result as following.

Please have the XAML page evaluated on your end and let us hear your feedback.

Thanks Yudi for your reply and for trying...

I really liked to have the same look and feel of the style using the UXScrollViewer but seems it is not possible in WPF.

Thanks anyway for your effort.
Yudi Member

Hi David,

I continue the investigation and I think I managed to have a result which looks closer with the SL version.

Hope this helps.

Hi Yudi,

I was still looking for a way to achieve the same look and feel and your sample was very helpful.
I took the ScrollViewerControlTemplate code and use it in the xaml style and it is now working as expected.

Thanks a lot for your kind help!

Regards,
Dave
All times are GMT -5. The time now is 7:17 PM.
Previous Next