I am using ObjectDataProvider and DataTemplate to populate the MenuItem inside my menu bar. (WPF, C # / XAML) See Snipet below.
Result: the top menu item appears, when I click on it, the wrap menu item appears (the one that has the associated title text), as well as a small arrow indicating the presence of children, but the children do not show the hang or click on the arrow; cannot be accessed.
Expected result: children are visible and behave correctly.
Excerpt:
<ObjectDataProvider x:Key="Brokers" ObjectInstance="{x:Static brokers:BrokerManager.Instance}" MethodName="GetBrokers" IsAsynchronous="True" /> <DataTemplate x:Key="BrokerMenuItem" DataType="IBroker"> <MenuItem Header="{Binding Path=Name}"> <MenuItem Header="Connect" /> <MenuItem Header="Disconnect" /> </MenuItem> </DataTemplate> <MenuItem Header="Brokers" ItemsSource="{Binding Source={StaticResource Brokers}}" ItemTemplate="{DynamicResource BrokerMenuItem}"/>
NicholasF
source share