0
我正在構建一個WPF(C#)應用程序,並且我想向XAML代碼(字符串類型)添加一個名稱空間。我想在正確的位置添加名稱空間。誰能幫我?謝謝,彼得。將命名空間添加到XAML代碼
編輯:
它保存在像繩子一個XAML代碼:
<UserControl x:Class="MyTestApp"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
mc:Ignorable="d"....
我想添加一個新的名字空間(比如的xmlns:測試=「HTTP://www.test .nl「)在正確的地方。
什麼是「正確的地方」?) – Bick 2011-04-20 11:50:59
在其他名稱空間下。但是XAML文檔並不總是相同的。 – Peter 2011-04-20 11:56:17