BindableAppBar for Caliburn Micro

Published on Wednesday, March 6, 2013

Update: Matteo Pagani has a great introduction on setting up the BindableAppBar. Thanks Matteo!

Anyone who has done Windows Phone development will tell you: the appbar sucks.

It sucks for several reasons:

  • It's not a DependencyObject so you can't use binding
  • It doesn't support commands
  • It's hard to make it dynamic because it must be maniuplated in code
  • It sucks

Given those reasons, it's no surprise people have come up with "bindable app bars" that are basically wrappers around the appbar that allow binding, manipulation, and such.

Unfortunately, none of those solutions have come to Caliburn. Caliburn does provide basic message binding support and IsEnabled guarding, but that's it.

So, given that I really wanted to start binding some appbars hardcore, I decided to spend a day and make it happen.

Introducing the Caliburn.Micro.BindableAppBar: you can enjoy the fruits of my labor on Nuget or at the GitHub repository. Here's hoping Rob brings this into core so it'll just "be there" and integrated more into the overall Caliburn system.

The big benefit is the ability to easily use multiple appbars on a single view and in conducted Pivot/Panorama views. In my case, I do both, because one pivot page has two states (a selection state and a browsing state) and both requires two different appbars. The other pivot page doesn't need all the cruft of the first pivot's appbar, so only one button is present on it.

Don't miss any updates!

No spam and I usually send a newsletter once a quarter with content you won't see on the blog.

About Kamran

I'm a technologist, speaker, and Pluralsight author and I specialize in building full-stack solutions with a focus on modern web technology and cloud native architecture.

Kamran's Pluralsight courses

comments powered by Disqus
comments powered by Disqus