Using GridSplitter in a Xaml file for both Silverlight and WPF
Posted
by Daniel Plaisted
on Stack Overflow
See other posts from Stack Overflow
or by Daniel Plaisted
Published on 2010-05-23T19:07:13Z
Indexed on
2010/05/23
19:10 UTC
Read the original article
Hit count: 524
I have a Xaml file which is used in a project which can be built for both Silverlight and WPF. I want to use the GridSplitter control. However, this control is in different Xaml namespaces on Silverlight and desktop WPF.
In WPF, the namespace is: http://schemas.microsoft.com/winfx/2006/xaml/presentation
On Silverlight, it is: http://schemas.microsoft.com/winfx/2006/xaml/presentation/sdk
So if the xaml code is <GridSplitter/>
, it will work on WPF but not Silverlight, and if the code is <sdk:GridSplitter/>
, it will work on Silverlight but not WPF.
Is there a way to write this so that it works on both platforms?
© Stack Overflow or respective owner