Building Silverlight application
How to use System.windows namespace?
Know the answer? Post it. Somebody with the same question will find it here.
Answer a question in the forums and earn +20 SHARP for every answer.
See unanswered questions
DevSocialUpcoming · 3rd editionAI Agents ConferenceDec 1–3, 2026Live onlineFree to attend5days leftRegister
Bechir BejaouiRank #144 · 15.9K reputationPosted Dec 4, 2008, 3:09 PM EST
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 BejaouiRank #144 · 15.9K reputationPosted Dec 4, 2008, 1:52 PM EST
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">
Ilija5 reputationPosted Dec 4, 2008, 2:01 PM EST
"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"
Ilija5 reputationPosted Dec 5, 2008, 3:42 AM EST
Bechir BejaouiRank #144 · 15.9K reputationPosted Dec 5, 2008, 11:44 AM EST