Oh, sweet. Thats nice and easy..... :) (like so much in CocoaTouch - once you find out what and where it is, it's easy and elegant)
On Fri, Jul 8, 2011 at 13:16, vbisbest <[email protected]> wrote: > The UISearchBar has an event that fires when a scope button changes. Here > are some snippets, "this" is a DialogViewController that has the SearchBar > exposed per my post above: > > public enum SearchScope > { > All, > Subject, > From, > Advanced > } > > public override void ViewDidLoad () > { > this.SearchBar.SelectedScopeButtonIndexChanged += > ScopeButtonChanged; > base.ViewDidLoad (); > } > > private void ScopeButtonChanged(object sender, > System.EventArgs args) > { > // Search scope has changed > searchScope = > (SearchScope)this.SearchBar.SelectedScopeButtonIndex; > } > > > Ray > > > > > -- > View this message in context: > http://monotouch.2284126.n4.nabble.com/Monotouch-DialogViewController-and-Scope-Buttons-tp3647293p3653890.html > Sent from the MonoTouch mailing list archive at Nabble.com. > _______________________________________________ > MonoTouch mailing list > [email protected] > http://lists.ximian.com/mailman/listinfo/monotouch > -- Nic Wise t. +44 7788 592 806 | @fastchicken | http://www.linkedin.com/in/nicwise b. http://www.fastchicken.co.nz/ mobileAgent (for FreeAgent): get your accounts in your pocket. http://goo.gl/IuBU Trip Wallet: Keep track of your budget on the go: http://goo.gl/ePhKa London Bike App: Find the nearest Boris Bike, and get riding! http://goo.gl/Icp2 _______________________________________________ MonoTouch mailing list [email protected] http://lists.ximian.com/mailman/listinfo/monotouch
