[Mono-bugs] [Bug 570959] UISlider does not fire ValueChanged when the value is set via code
bugzilla_noreply at novell.com
bugzilla_noreply at novell.com
Sat Feb 20 01:59:47 EST 2010
http://bugzilla.novell.com/show_bug.cgi?id=570959
http://bugzilla.novell.com/show_bug.cgi?id=570959#c2
Manfred Pohler <Manfred at pp-p.net> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEEDINFO |NEW
Info Provider|Manfred at pp-p.net |
--- Comment #2 from Manfred Pohler <Manfred at pp-p.net> 2010-02-20 06:59:46 UTC ---
(In reply to comment #1)
> Is this still happening? If so can you provide a test case please.
Yes it happens.
Create a project and add a class like this.
public class VCTest : UIViewController {
UIButton btN;
UISlider slD;
UILabel lbL;
public override void ViewDidLoad() {
base.ViewDidLoad();
btN = UIButton.FromType(UIButtonType.RoundedRect);
btN.Frame = new RectangleF(10, 10, 200, 30);
btN.SetTitle("Test", UIControlState.Normal);
btN.TouchUpInside += delegate { slD.Value = 50; };
slD=new UISlider(new RectangleF(10, 60, 300, 30));
slD.MinValue = 0;
slD.MaxValue = 100;
slD.ValueChanged += delegate { lbL.Text = slD.Value.ToString(); };
lbL= new UILabel(new RectangleF(10, 160, 100, 30));
View.AddSubview(btN);
View.AddSubview(slD);
View.AddSubview(lbL);
}
}
Use this class as you view with
public override bool FinishedLaunching (UIApplication app, NSDictionary
options) {
window.AddSubview(new VCTest().View);
window.MakeKeyAndVisible ();
return true;
}
Expected: the button should set the value and fire slD.ValueChanged
It does: the button changes the slider value - but it does NOT fire
slD.ValueChanged
--
Configure bugmail: http://bugzilla.novell.com/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.
You are the assignee for the bug.
More information about the mono-bugs
mailing list