luglio 2012 Blog Posts

WinJS Custom Controls

Controls are the basic blocks of any application, you use controls everywhere and also HTML Metro apps are part of the game, you add a control inside a HTML Metro page just placing a <div> with a special “data-win-control” attribute in it: here’s an example: <div data-win-control="WinJS.UI.SemanticZoom" > </div> if you have pages (even in different applications) that need some special kind of functionality paired with some custom UI, custom controls allows you to reach the “write once, use everywhere” paradigm (unless you like reinventing the wheel of course…)Let’s see how you can create your own...

posted @ sabato 21 luglio 2012 13:00 | Feedback (0)