Vote count:
0
I have ItemsControlwhich is filled with "ContextActions", if the ItemsControl does not fit into the parent Container I want to show a "More Items" button (the typical three dots) and put another ItemsControl into a popup that appears when the button is pressed.
I tried creating a Template that does Show a Button if the ItemsControl is full, sadly I did not find a Property to bind on if the ItemsControl is full.
<Style TargetType="ItemsControl">
<Setter Property="Template">
<Setter.Value>
<ControlTemplate>
<DockPanel>
<Button Content="More" DockPanel.Dock="Right" />
<ItemsPresenter />
</DockPanel>
</ControlTemplate>
</Setter.Value>
</Setter>
</Style>
Is there any way to find out if the ItemsControl is full using a Property or do i have to write my own MeasureOverride to implement the "MoreItems" Button
asked 1 min ago
ItemsControl with a MoreItems Popup
Aucun commentaire:
Enregistrer un commentaire