![]() As a developer, you can create your own layout object that implements some or all of the methods provided by ILayout2. The built-in grid and list layouts within ListView are layout objects that implement methods of ILayout2. The new ILayout2 interface gives you greater flexibility, enabling the capabilities required for these specialized layout scenarios. Sometimes, however, the capabilities that the built-in GridLayout, ListLayout, and CellSpanningLayout objects provide are not enough. API Improvements for custom layoutsĪs mentioned earlier, the WinJS ListView allows developers to easily create lists that have built-in content virtualization, keyboarding, accessibility, and animations, and more. Kathy shows you how to make engaging views like those shown above by using the ListView in WinJS 2.0. This improves the programming model and performance for these types of lists.įor more info and in-depth discussion of the new layout, see Kathy Kam’s post, Creating a unique ListView layout using cell-spanning in HTML. In WinJS 2.0 we re-implemented the cell-spanning functionality as a distinct layout called ‘CellSpanningLayout’ (rather than an option of the GridLayout, as it was implemented in WinJS 1.0). And we knew that it would be important to allow you, our developers, to continue to display app content when your apps are reduced in size and the scrolling direction changes. ![]() ![]() When we were planning Windows 8.1 we knew the power and capability of side-by-side apps. In Windows 8.1, not only can you now put more than two apps side by side, but you can do it on more than one monitor at a time. The flexibility and productivity gained by using two apps together is fantastic. These new capabilities have been top requests since the release of WinJS with Windows 8, and they work very well with the overall Windows 8 system.įor example, many power users appreciate the ability to use multiple apps at a time. (Note: Keep in mind that the “recycling placeholder” option described in that post pertains only to WinJS 1.0, given advancements to the ListView codebase.) New layout capabilitiesĪlong with rewriting our built-in layouts came the opportunity to refresh and extend layout capabilities. This is discussed in the Optimizing ListView item rendering blog post. There are additional steps you can take to improve your item-rendering performance as well. This figure shows the gains we have achieved. It also ensures that the speed of our layout engine improves automatically as the underlying layout engine in the web platform improves. We have now moved to using only CSS-native layout mechanisms for WinJS 2.0, a change that results in serious performance gains for all of our core scenarios. These improvements to the web platform enabled us to reevaluate our layout implementation in ListView for WinJS 2.0. Since the introduction of the ListView in WinJS 1.0, there have been significant improvements in the flexibility and performance of native HTML and CSS-based layout. What’s new in the ListView for WinJS 2.0 Significant performance gains ListView in WinJS 2.0 also gives you more flexibility to express your unique design and brand, plus faster performance to make it all shine. With this new version of the ListView we enable more sophisticated and productive apps that work more naturally than ever before on the tried-and-true, mouse/keyboard PC form factors. Since its inception there have been numerous benefits to using the WinJS ListView: content virtualization for fast performance, built-in keyboarding, interaction-model customization, accessibility, flexible styling, multiple built-in layouts, an item-selection model, and a great templating story.Īfter the release of Windows 8, we spent many hours working with app developers, listening to your feedback, and evolving the control to meet your requests. The ListView control within WinJS provides an efficient solution to creating and displaying these lists within your app. Whether the scenario is watching your favorite television show, managing user workstations, or emailing a co-worker, lists of content are involved. Many software interfaces involve the display and consequent manipulation of lists of content. Here we’ll discuss performance and layouts, and offer some backstory and details about the addition of drag and drop for the ListView. We’re proud to describe the improvements we have made to the ListView control for the Windows Library for JavaScript (WinJS) 2.0. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |