Activating Bottom AppBar from Code behind in WinRT

c#, windows-8, windows-runtime, winrt-xaml, xaml

Solution

Setting IsOpen to true in XAML should be enough to make it visible when the page opens. If you want to set focus on the AppBar - it can only be done on a button click or key press event by calling appBar.Focus(FocusState.Programmatic).

Problem

Does anyone know of a way to activate the bottom AppBar from code-behind when we select a tile? I found this, but I could not find a C# equivalent. I've browsed around a bunch of samples but no luck http://msdn.microsoft.com/en-us/library/windows/apps/br229676.aspx

Original source