I created a new project, Windows Phone 7.0
Since i wanted the DockPanel, i installed the Silverlight SDK from this link: http://silverlight.codeplex.com/ (November 2011 for Windows Phone)
I then added a reference from "C:\Program Files (x86)\Microsoft SDKs\Silverlight\v4.0\Toolkit\Apr10\Bin\System.Windows.Controls.Toolkit.dll"
Then i tried to
1) Add the controls from the DLL into VS 2010 toolbox. But that did not work. I created a new tab and choose import, selected the DLL but when i pressed ok, the tab disappeared.
2) I then typed it into the Main file but this causes the following error: "Unknown namespace http://schemas.microsoft.com/winfx/2006/xaml/presentation/toolkit. [Line: 19 Position: 6]"
Here is the code in the mainpage.xaml file. Note that i have not added anything. Just removed the controls and added the dockpanel.
<phone:PhoneApplicationPage x:Class="TestProject.MainPage"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:phone="clr-namespace:Microsoft.Phone.Controls;assembly=Microsoft.Phone"
xmlns:shell="clr-namespace:Microsoft.Phone.Shell;assembly=Microsoft.Phone"
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
xmlns:toolkit="http://schemas.microsoft.com/winfx/2006/xaml/presentation/toolkit"
mc:Ignorable="d"
d:DesignWidth="480"
d:DesignHeight="768"
FontFamily="{StaticResource PhoneFontFamilyNormal}"
FontSize="{StaticResource PhoneFontSizeNormal}"
Foreground="{StaticResource PhoneForegroundBrush}"
SupportedOrientations="Portrait"
Orientation="Portrait"
shell:SystemTray.IsVisible="True">
<toolkit:DockPanel>
<TextBlock toolkit:DockPanel.Dock="Bottom"
Text="Copyright 2012"></TextBlock>
</toolkit:DockPanel>
</phone:PhoneApplicationPage>
Any ideas why?