xaml - Fill width on Windows Phone 8.1 -


i'm developing application using windows phone 8.1 sdk, write ui descriptions using xaml markup.

i can't text box fill width.

i see similar questions posted involve listview.

i'm confused. there seems no proportional sizing options. tutorials show use of explicit pixel counts in design.

is preferred method on windows? how supposed deal unpredictable screen sizes in windows?

the items had, failing fill parent, inside contentcontrol. contentcontrol correctly filled width, child, grid, not.

i found solution here – https://stackoverflow.com/a/17627257/5476004 – , echo solution here in case post found else searching same problem.

the contentcontrol requires 2 special properties in order child element fill parent. horizontalcontentalignment , verticalcontentalignment. so":

<contentcontrol name="mycontent" horizontalcontentalignment="stretch" verticalcontentalignment="stretch"> … </contentcontrol> 

fill occurs correctly.


Comments

Popular posts from this blog

javascript - Laravel datatable invalid JSON response -

java - Exception in thread "main" org.springframework.context.ApplicationContextException: Unable to start embedded container; -

sql server 2008 - My Sql Code Get An Error Of Msg 245, Level 16, State 1, Line 1 Conversion failed when converting the varchar value '8:45 AM' to data type int -