Checkbox in the content left

Feb 16, 2012 at 6:04 PM

Just in case somebody need it since I was looking for it and didn't find any post. If you want to have checkbox in the ContentLeft of PopupMenuItem to indicate whether the PopupMenuItem is activated/selected. Here is what I did

in XAML or View

<sl4PopupMenu:PopupMenuItem Header="Audio Level" Command="{Binding ABCCommand}">
                    <sl4PopupMenu:PopupMenuItem.ContentLeft>
                        <CheckBox IsChecked="{Binding ABCEnable}" IsHitTestVisible="False"/>
                    </sl4PopupMenu:PopupMenuItem.ContentLeft>
                </sl4PopupMenu:PopupMenuItem>

 

In viewmodel you should declare and implement ABCCommand and ABCEnable

Hope that help.

Dec 18, 2013 at 1:30 PM
Glad that it helps.