This project is read-only.

App Bar ImageToggleButton

Aug 13, 2012 at 2:33 PM
Edited Aug 13, 2012 at 2:58 PM

Hi!

Please can anybody explain me how I can implement App Bar ToggleButton based on ImageToggleButton? Please can anybody write XAML-snippet of this style?

Aug 15, 2012 at 10:19 PM

There are samples in the WinRTXamlToolkit.Sample app. They don't put the buttons in the AppBar, but that should just work the same way:

 

            <controls:ImageToggleButton
                NormalStateImageSource="/Assets/Images/RedButton_Idle.png"
                HoverStateImageSource="/Assets/Images/RedButton_Hover.png"
                PressedStateImageSource="/Assets/Images/RedButton_Pressed.png"
                DisabledStateImageSource="/Assets/Images/RedButton_Disabled.png"
                CheckedStateImageSource="/Assets/Images/GreenButton_Idle.png"
                CheckedHoverStateImageSource="/Assets/Images/GreenButton_Hover.png"
                CheckedPressedStateImageSource="/Assets/Images/GreenButton_Pressed.png"
                CheckedDisabledStateImageSource="/Assets/Images/GreenButton_Disabled.png" />