This is a migrated thread and some comments may be shown as answers.

Template Cross-Compatibility Issues (SL/WPF)

1 Answer 12 Views
GridView
This is a migrated thread and some comments may be shown as answers.
Noah
Top achievements
Rank 1
Noah asked on 13 Dec 2011, 08:51 PM
Hi,

I am developing two applications, one WPF and the other Silverlight, with the intent to share as much code as possible.  We chose Telerik controls as they are said to be cross-compatible, although in practice I am finding otherwise.

Sharing code worked well enough until I tried to customize the RadGridView control.  When exporting the Template, I see that the Silverlight version uses Visual States to control the appearance of the grid, while the WPF version utilizes Triggers.  The ScrollContentPresenter is a different type in the two templates as well.  These issues are making it extremely difficult (impossible) to share XAML across the applications - do you have any suggestions/workarounds for these issues?

Thanks for your time,
Noah

1 Answer, 1 is accepted

Sort by
0
Vanya Pavlova
Telerik team
answered on 14 Dec 2011, 02:19 PM
Hello Noah,

 
I have already replied in your support ticket.
For those clients who might be interested in your case I am pasting the answer here as well:


Thank you for choosing Telerik RadGridView/Silverlight! Let me try to explain the idea behind the cross-platform compatibility between our WPF and Silverlight components. They share a Common API - the code-behind you write either in desktop or web applications is valid for both platforms. As you might know we provide support for WPF 3.5 / WPF 4.0. In WPF 3.5 you may use triggers, WPF 4.0 - states as you may in Silverlight. Considering this fact it is not possible to support triggers and states for both WPF versions simultaneously. Thinking in this way I would like to know what is the WPF version you are currently using?




Kind regards,
Vanya Pavlova
the Telerik team

Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get it now >>

Tags
GridView
Asked by
Noah
Top achievements
Rank 1
Answers by
Vanya Pavlova
Telerik team
Share this question
or