![Avatar](https://secure.gravatar.com/avatar/6f7322d0bf62b18ab5cc66aaa50f8ab2.jpg?s=64&d=identicon&r=g)
If I create a PopupButton and add it to the ApplicationMenu then the arrow is to the right of the button and the popup contents are shown to the right. This is correct.
If I create a view-model class for a popup-button, add a DataTemplate to map it to a PopupButton and set the ApplicationMenu.ItemsSource to a list of my view-model objects, then the arrow is at the bottom of the button and the popup contents are shown at the bottom (in the same way as you would expect if a PopupButton is shown in the ribbon). In this scenario, is there any way to get the arrow to appear on the right, or have I done something wrong?
My DataTemplate is as follows:And my code is:
If I create a view-model class for a popup-button, add a DataTemplate to map it to a PopupButton and set the ApplicationMenu.ItemsSource to a list of my view-model objects, then the arrow is at the bottom of the button and the popup contents are shown at the bottom (in the same way as you would expect if a PopupButton is shown in the ribbon). In this scenario, is there any way to get the arrow to appear on the right, or have I done something wrong?
My DataTemplate is as follows:
<DataTemplate DataType="{x:Type MyViewModel}">
<ribbon:PopupButton>
<ribbon:PopupButton.PopupContent>
<ribbon:Menu ItemsSource="{Binding Items}" />
</ribbon:PopupButton.PopupContent>
</ribbon:PopupButton>
</DataTemplate>
List<MyViewModel> Buttons = new List<MyViewModel>;
Buttons.Add(new MyViewModel());
TheRibbon.ApplicationMenu.ItemsSource = Buttons;