Advanced Forum Search Results
-
To add a simple code example, if I have the following classes:
namespace A { public class MyControl1 : UserControl { ... } }
namespace B { public class MyControl2 : UserControl { ... } }
namespace C { public class MyControl3 : UserControl { ... } }
In WPF I can add this to my AssemblyInfo.cs:
[assembly: ...
-
I don't mind having to put a namespace prefix before my control. What I don't like is having to have my namespace declaration use the "clr-namespace" directive and not an XML namespace declared in my AssemblyInfo.cs. Using the "clr-namespace" prefix within an xml namespace declaration constrains my namespace ...
-
Thanks very much for the post, you get the point across well.
I really want to be able to do what you show in step 6 with Silverlight though. It works in WPF. The nice thing is then you can have several base classes, like one for an edit page, one for a list page as user controls and then in your markup say <EditPage> or <ListPage> ...
-
How do I get the sample project to you? Do you want me to email it or is there a way to attach messages in this forum? I have a sample project created that demonstrates this.
-Jayme
-
Hello,
In WPF this works:
Create a class library "MyControls".
Add a XAML user control called "MyControl"
Add attribute to AssemblyInfo.cs of "MyControls" library to register the namespace containing "MyControl" with an XML namespace.
Create a XAML application project "MyApp".
Add ...