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