Saturday, 15 February 2014

c# - Window SizeToContent adds BlackBars till resize -



c# - Window SizeToContent adds BlackBars till resize -

good day everyone,

the issue running following:

i have window sizetocontent="widthandheight" itemscontrol content:

<itemscontrol itemssource="{binding availablecolors, mode=oneway}"> <itemscontrol.itemspanel> <itemspaneltemplate> <uniformgrid columns="6" /> </itemspaneltemplate> </itemscontrol.itemspanel> <itemscontrol.itemtemplate> <datatemplate> <!-- content in here --> </datatemplate> </itemscontrol.itemtemplate> </itemscontrol>

the expected result have window, has size of itemscontrol plus window border around is.

what though following:

where black bar come from? resize (on window) snaps place.

thanks help.

chris

c# wpf

No comments:

Post a Comment