wpf - Restricting automatic ListView grow -
i have huge xaml in listview automatically grows when new item added, despite tries restrict maxheight. unfortunately, unknown reason, cannot repeat undesirable behavior simple xaml. trying deal several days already, in vain. have:
<border x:name="bordercontrol"> <dockpanel x:name="dockpanelcontrol"> <stackpanel x:name="stackpanelcontrol"> <!-- items here --> </stackpanel> <listview maxheight={binding actualheight, elementname=dockpanelcontrol} itemssource="{binding items}"> </listview> </dockpanel> </border> i tried bind stackpanel, dockpanel, border 's actualheight, not work - listview keeps growing. suggestions, why case?
wpf xaml listview
No comments:
Post a Comment