Krumelur
Krumelur

Reputation: 33048

Monotouch.Dialog: BooleanElement's ValueChanged event is not firing

Is there a special trick required to get BooleanElement's ValueChanged event firing? The code below is never executed if I switch the status:

this.oElementSenderCC = new BooleanElement ("Send Copy To Myself" ), true);
this.oElementSenderCC.ValueChanged += (sender, e) => this.SelectedSenderCC = this.oElementSenderCC.Value;

Upvotes: 1

Views: 805

Answers (1)

Janub
Janub

Reputation: 1594

this seems working for me

BooleanElement boolElm = new BooleanElement("Bool",false);
boolElm.ValueChanged+=delegate
{ Console.WriteLine(boolElm.Value); };

Upvotes: 2

Related Questions