silverlight - annoying behavior in binding property in control to another one -
i have 2 radio buttons n xaml this:
<radiobutton x:name="radio1" margin="12,46,30,0" horizontalalignment="left" verticalalignment="top" content="radio1" groupname="group1" ischecked="true" /> <radiobutton x:name="radio2" margin="12,46,0,0" horizontalalignment="left" verticalalignment="top" content="radio2" groupname="group1" ischecked="false" />
i want display different grid each radio button checking bind grid visibility radiobutton ischecked property this:
<grid name="grid1" grid.row="1" visibility="{binding ischecked, converter={staticresource visibilityconverter}, elementname=radio1}"> <grid name="grid2" grid.row="1" margin="0,50,0,0" visibility="{binding ischecked, converter={staticresource visibilityconverter}, elementname=radio2}">
it works have problem. first time load page 2 grids appear apart of second non checked 1 disappear. seems visibility of grid set default value change after drawing according binding. there solution or workaround?
note: solution windows phone 8 solution
Comments
Post a Comment