Geeks With Blogs

News Bob Taco Industries is an ISV focused on game and app development for Microsoft platforms headed up by Michael B. McLaughlin. Mike is a Microsoft Visual C++ MVP (previously an XNA/DirectX MVP from 2011-2013), a developer, a writer, a consultant, and a retired lawyer. If you're a developer who is just getting started, consider checking out the BTI website's section for developers for links to code samples and other helpful sites.
Bob Taco Industries Blogging Division

Just a few minutes ago I uploaded version 1.1 of the Windows Store DirectX Game Template (WSDXGT) to the Visual Studio Gallery. If you already have it installed, it should show up as an update the next time you restart Visual Studio 2012 unless you’ve disabled update notifications (if it doesn’t show up but should, let me know; I forgot to keep a copy of VS 2012 with the 1.0 installed so I couldn’t test that myself this time).

This release is just a simple addition of several classes that make XAML data binding and using the MVVM pattern much easier. I plan to build on these to create a template that features a skeleton framework game state system (i.e. a main menu state, a game play state, etc.). The new classes are BindableBase (which should typically be the base class of any view model you create), UICommand (which implements the ICommand interface, allowing you to bind lambdas, member functions, and functions to any control that derives from ButtonBase (e.g. the Button control) thus helping with MVVM design), and a trio of IValueConverter implementations: BooleanNegationConverter, BooleanToVisibilityConverter, and MultipleConvertersConverter. The MultipleConvertersConverter lets you chain multiple IValueConverter converters together in XAML, which makes it much easier to create simple value converters and combine them together to compose more complex value conversion behavior. See the comments for the class in MultipleConvertersConverter.h for a XAML usage example snippet.

As always, comments, questions, feedback, and constructive criticism are all welcome, and if you like it please consider reviewing it in the Visual Studio Gallery (see the first link above)!

Posted on Saturday, April 6, 2013 8:54 PM directx , C++ | Back to top


Comments on this post: Version 1.1 of the Windows Store DirectX Game Template is out!

Comments are closed.
Comments have been closed on this topic.
Copyright © Michael B. McLaughlin | Powered by: GeeksWithBlogs.net