Building Silverlight application
How to use System.windows namespace?
Know the answer? Post it — somebody with the same question will find it here.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.
Bechir BejaouiPosted Dec 4, 2008, 8:09 PM
you right click on the project node and click add reference then a windows appears
you have to search System.Windows in the .Net tab and include it by clicking OK
Bechir BejaouiPosted Dec 5, 2008, 4:44 PM
IlijaPosted Dec 5, 2008, 8:42 AM
IlijaPosted Dec 4, 2008, 7:01 PM
"Error 11 The type or namespace name 'Windows' does not exist in the namespace 'System' (are you missing an assembly reference?) C:\Documents and Settings\John\My Documents\Visual Studio 2008\Projects\SilverlightProject2\SilverlightProject2\Page.xaml.cs 2 14 SilverlightProject2"
Bechir BejaouiPosted Dec 4, 2008, 6:52 PM
using System.Windows;
or you can add it within XAML code editor
xmlns:win="clr-namespace:System.Windows;assembly=System.Windows"
x:Class="Silverlight2.Page"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:c="clr-namespace:Silverlight2"
Width="400" Height="300">