wsick / Fayde

Inspired by Silverlight; XAML engine using Javascript and rendering to the HTML5 Canvas.
MIT License
189 stars 27 forks source link

How to define namespace prefix for controls? #122

Closed Sally-Xu closed 9 years ago

Sally-Xu commented 9 years ago

If a control is under Fayde.Controls namespace in the Fayde.Controls library, we define the namespace prefix for that control as xmlns:controls="lib://fayde.controls"

But how do I define the namespace prefix for a control which is within the same library but under different namespace (say a control is under namespace of Fayde.Controls.Primitives)? I've tried the following and it didn't work: xmlns:primitives="lib://fayde.controls.primitives"

BSick7 commented 9 years ago

Try xmlns:primitives="lib://fayde.controls/Primitives"

Sally-Xu commented 9 years ago

ya, that works.

BSick7 commented 9 years ago

Added wiki article https://github.com/wsick/Fayde/wiki/Namespace-Declarations