how to bind width of child element to width of parent element in silverlight

后端 未结 6 1290
南笙
南笙 2021-01-30 20:15

I have a grid whose width is \"1*\". So the actual width decided at runtime I think. Within that grid I have another grid whose width I want to set to the runtime width of paren

6条回答
  •  佛祖请我去吃肉
    2021-01-30 20:46

    I think that easiest way to do same thing is:

    HorizontalAlignment="Stretch"
    

    That is not using binding as you have been asked, but it is easier.

提交回复
热议问题