Wednesday, 15 April 2015

c# - How to intialise the UIEelemnts before click to checkButton (by just launching program)? -



c# - How to intialise the UIEelemnts before click to checkButton (by just launching program)? -

i have situation disable or enable ui elements on checking or unchecking calling function managedisablity(parentclass,value,cbox) :

cbox.checked += (o, e) => { managedisable(parentclass,0, cbox); }; chb.unchecked += (o, e) => { managedisable(parentclass,1, cbox); };

it works fine.it disables , enables uielements disabled or enabled.

why not work , how create work ?

try next :

when creating :

childgrid.loaded += doyourthing;

in doyourthing :

doyourthing() { foreach(var chb in comboboxs) { if (param.component.attributes[0].value == 1) chb.ischecked = true; } childgrid.loaded -= doyourthing; }

c# .net silverlight checkbox silverlight-5.0

No comments:

Post a Comment