Say I want a TextBlock
to have its Width
equal to it's Parent container's Width
(ie, stretch from side to side) or a percentage of it's Parent Container Width
, how can I accomplish this in XAML
without specifying absolute values?
I want to do this so that if the Parent Container container is later on expanded (its' Width
increased), its' Child Elements will also be expanded automatically. (basically, like in HTML and CSS)
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…