Click here to Skip to main content
15,920,576 members
Home / Discussions / WPF
   

WPF

 
AnswerRe: WPF namespaces reference Pin
Ian Shlasko27-Apr-11 4:01
Ian Shlasko27-Apr-11 4:01 
Calm down, there...

The namespace URLs aren't websites... They're basically just aliases, and you can create your own in your Assembly.cs:

[assembly: XmlnsDefinition("http://my.make.believe.xaml.namespace.com/something", "My.CLR.Namespace")]

The advantage is that one XML namespace can refer to multiple CLR namespaces:

[assembly: XmlnsDefinition("http://my.make.believe.xaml.namespace.com/something", "My.CLR.Namespace")]
[assembly: XmlnsDefinition("http://my.make.believe.xaml.namespace.com/something", "My.CLR.Namespace.Stuff")]
[assembly: XmlnsDefinition("http://my.make.believe.xaml.namespace.com/something", "My.CLR.Namespace.More.Stuff")]

I agree that using "http" as the prefix is kind of silly (I'm guessing there was some sort of reason for it, but not looking it up right now)... But it works.
Proud to have finally moved to the A-Ark. Which one are you in?
Author of the Guardians Saga (Sci-Fi/Fantasy novels)

GeneralRe: WPF namespaces reference Pin
SledgeHammer0127-Apr-11 6:51
SledgeHammer0127-Apr-11 6:51 
GeneralRe: WPF namespaces reference Pin
Ian Shlasko27-Apr-11 7:20
Ian Shlasko27-Apr-11 7:20 
GeneralRe: WPF namespaces reference Pin
SledgeHammer0127-Apr-11 7:46
SledgeHammer0127-Apr-11 7:46 
GeneralRe: WPF namespaces reference Pin
Pete O'Hanlon27-Apr-11 8:51
mvePete O'Hanlon27-Apr-11 8:51 
GeneralRe: WPF namespaces reference Pin
Pete O'Hanlon27-Apr-11 7:19
mvePete O'Hanlon27-Apr-11 7:19 
GeneralRe: WPF namespaces reference Pin
devvvy27-Apr-11 21:20
devvvy27-Apr-11 21:20 
GeneralRe: WPF namespaces reference Pin
Pete O'Hanlon27-Apr-11 22:16
mvePete O'Hanlon27-Apr-11 22:16 
GeneralRe: WPF namespaces reference Pin
RugbyLeague27-Apr-11 22:31
RugbyLeague27-Apr-11 22:31 
GeneralAnswers here! Thanks [modified] Pin
devvvy27-Apr-11 21:06
devvvy27-Apr-11 21:06 
GeneralRe: WPF namespaces reference Pin
Pete O'Hanlon27-Apr-11 21:53
mvePete O'Hanlon27-Apr-11 21:53 
GeneralRe: WPF namespaces reference Pin
devvvy28-Apr-11 16:55
devvvy28-Apr-11 16:55 
QuestionOpen a file from path on Hyperlink click in silverlight Pin
Piyush Nandanwar26-Apr-11 0:20
Piyush Nandanwar26-Apr-11 0:20 
AnswerRe: Open a file from path on Hyperlink click in silverlight Pin
Pete O'Hanlon26-Apr-11 0:30
mvePete O'Hanlon26-Apr-11 0:30 
GeneralRe: Open a file from path on Hyperlink click in silverlight Pin
Piyush Nandanwar26-Apr-11 0:41
Piyush Nandanwar26-Apr-11 0:41 
GeneralRe: Open a file from path on Hyperlink click in silverlight Pin
Pete O'Hanlon26-Apr-11 0:54
mvePete O'Hanlon26-Apr-11 0:54 
GeneralRe: Open a file from path on Hyperlink click in silverlight Pin
Piyush Nandanwar26-Apr-11 4:32
Piyush Nandanwar26-Apr-11 4:32 
GeneralRe: Open a file from path on Hyperlink click in silverlight Pin
Pete O'Hanlon26-Apr-11 4:36
mvePete O'Hanlon26-Apr-11 4:36 
GeneralRe: Open a file from path on Hyperlink click in silverlight Pin
Piyush Nandanwar26-Apr-11 4:42
Piyush Nandanwar26-Apr-11 4:42 
QuestionDATAGRID - WPF c# 2010 Pin
arkiboys25-Apr-11 21:20
arkiboys25-Apr-11 21:20 
AnswerRe: DATAGRID - WPF c# 2010 Pin
Tarun.K.S25-Apr-11 22:01
Tarun.K.S25-Apr-11 22:01 
GeneralRe: DATAGRID - WPF c# 2010 Pin
arkiboys25-Apr-11 22:41
arkiboys25-Apr-11 22:41 
GeneralRe: DATAGRID - WPF c# 2010 Pin
Wayne Gaylard25-Apr-11 22:57
professionalWayne Gaylard25-Apr-11 22:57 
GeneralRe: DATAGRID - WPF c# 2010 Pin
arkiboys25-Apr-11 23:02
arkiboys25-Apr-11 23:02 
AnswerRe: DATAGRID - WPF c# 2010 Pin
Pete O'Hanlon25-Apr-11 22:51
mvePete O'Hanlon25-Apr-11 22:51 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.