WinJS is an open-source library that is useful for not only Windows applications but also for web applications deployed in the browser. Utilities, components, and even an animation library make this a useful framework for Windows application development and we'll look at its features.
- View Offline
We're gonna be leveraging WinJS for the controls. When it comes to the controls, you have two themes that you can use, or CSS styling approaches that you can use. One is gonna be a light theme, and the other one's gonna be a dark theme. If you go into your default HTML, you will see in line 8 that by default it includes a UI dash dark CSS file. So all your controls are gonna look very dark, black with white outlines.
If you wanted them to be much lighter, if you want them to be mostly white, then you could do the opposite of dark which is gonna be light. You could just switch it, by doing light right there. You'll see that if we save this and we run it, what was black before should now show up as white. Now you're starting to see instead of white text, it's black text and it's a white background. You can easily switch between the two themes. If you wanna customize the components or the WinJS components a little further, you can always write some CSS that's gonna overwrite the current styles.
You can always use the DOM explorer to figure out what styles have been applied.
Watch to gain an understanding of the Universal Windows Platform and the application life cycle. Learn to create adaptive layouts with WinJS controls. Discover how to store and share data, capture a variety of input, and explore the unified Microsoft-specific APIs: Windows Core and Geolocation. Stacey Mulcahy, a Windows evangelist, provides developers with everything they need to start building Universal Windows apps and break into cross-device development.
- Setting up your development environment
- Coding in WinJS
- Creating page objects
- Animating page transitions
- Implementing responsive design principles and UI patterns
- Working with layout controls
- Using APIs: Windows Core and Geolocation
- Saving and reading data