Quantcast
Channel: Cocktail
Browsing all 9 articles
Browse latest View live

Getting started

Download Cocktail, install the tools, and get ready to start developing XAML-based business apps.

View Article



Bare bones MVVM

Build a simple app with a single view. Migrate the supporting view logic out of the code-behind and into a homebrew ViewModel.

View Article

An MVVM cocktail

Take that same app and introduce it to Cocktail. Boilerplate handwritten code melts away as Cocktail conventions do the wiring for you. Maybe this MVVM thing isn't so complicated.

View Article

Conventions and diagnostics

Conventions seem like magic. What happens when the magic fails? We learn more about conventions and discover that Cocktail is logging to the output window as the conventions are applied. Knowing how to...

View Article

Data in a ListBox

We create a model with a single entity, a DrinkOrder, representing a tasty beverage ordered from the bar. Each ordered drink appears in a ListBox, its values bound to controls in an ItemTemplate in the...

View Article


Entity Views

We discard the ItemTemplate in favor of View class. DrinkOrder serves as its own ViewModel. We add a new convention so Cocktail can associate a View with an entity in the Model. In a coda, we learn...

View Article

Talk to the View

Some View behaviors can be clumsy to stimulate with View/ViewModel binding. Although it offends the purists, we revive the View code-behind and teach the ViewModel to call into the View via an interface.

View Article

Images and ValueConverters

Modern application data includes pictures. In XAML you need a ValueConverter to translate from picture representation in data (typically as a source string) into images on screen. We see how Cocktail...

View Article


Hello world!

Welcome to WordPress. This is your first post. Edit or delete it, then start blogging!

View Article

Browsing all 9 articles
Browse latest View live




Latest Images