Posted 14 years ago
by Phil Devaney
-
Senior Software Engineer,
Serck Controls Ltd
Version: 11.1.0543
Platform: .NET 4.0
Environment: Windows 7 (64-bit)
![Avatar](https://secure.gravatar.com/avatar/4a06b63e32d94d60b9fdfccb467d6857.jpg?s=64&d=identicon&r=g)
Hi,
I am trying to use databinding to dynamically generate the controls on my ribbon. I have found a problem where a PopupButton doesn't get automatically disabled when its PopupContent is set to a Menu which has an an ItemsSource binding and an ItemTemplate.
E.g.I have emailed a sample showing the problem to support.
I am trying to use databinding to dynamically generate the controls on my ribbon. I have found a problem where a PopupButton doesn't get automatically disabled when its PopupContent is set to a Menu which has an an ItemsSource binding and an ItemTemplate.
E.g.
<r:PopupButton Label="Bound" Command="NotACommand">
<r:Menu ItemsSource="{Binding Items}">
<r:Menu.ItemTemplate>
<DataTemplate>
<r:Button Context="MenuItem" Label="{Binding}" />
</DataTemplate>
</r:Menu.ItemTemplate>
</r:Menu>
</r:PopupButton>