That looks really good (Miguel, any chance of exposing the search bar in the
proper MT.D version? I think it's private and hidden at the moment...)

How do you react to someone pushing the buttons?

On Fri, Jul 8, 2011 at 02:56, Miguel de Icaza <[email protected]> wrote:

> see "scope bar" section - the buttons underneath a search box that let you
>> "scope" a search.  ie, look at the search in mail, with buttons for "from |
>> to | subject | all"
>>
>>
>> http://developer.apple.com/library/ios/#DOCUMENTATION/UserExperience/Conceptual/MobileHIG/UIElementGuidelines/UIElementGuidelines.html
>
>
> Oh, Brilliant!
>
> Thanks for sharing!
>
> This is the stuff:
> Scope Bar
>
> A *scope bar* allows users to define the scope of a search. A scope bar is
> available only in conjunction with a search bar. A scope bar is shown here
> below a search bar.
> [image: image: ../Art/scope_bar_with_search.jpg]
>
>>
>>
>> On Wed, Jul 6, 2011 at 10:20 AM, Miguel de Icaza <[email protected]>wrote:
>>
>>> Hey,
>>>
>>>    What are Scope BUttons?
>>>
>>> Miguel
>>>
>>>
>>> On Wed, Jul 6, 2011 at 8:11 AM, vbisbest <[email protected]> wrote:
>>>
>>>> For those who will run into this, it looks like the scope button
>>>> functionality does not exist and direct access to the UISearchBar was
>>>> not
>>>> exposed.  I simply added a public property to DialogController and now I
>>>> can
>>>> add my scope buttons.
>>>>
>>>> Added to DialogViewController:
>>>>
>>>>                public UISearchBar SearchBar
>>>>                {
>>>>                        get {   return this.searchBar;  }
>>>>                }
>>>>
>>>>
>>>> Added to my class:
>>>>
>>>>                public override void LoadView ()
>>>>                {
>>>>                        this.EnableSearch = true;
>>>>                         base.LoadView ();
>>>>
>>>>                        string[] buttons = new string[] { "All",
>>>> "Subject", "Advanced"};
>>>>                         this.SearchBar.ScopeButtonTitles = buttons;
>>>>                        this.SearchBar.ShowsScopeBar = true;
>>>>                        this.SearchBar.SizeToFit();
>>>>                }
>>>>
>>>>
>>>> --
>>>> View this message in context:
>>>> http://monotouch.2284126.n4.nabble.com/Monotouch-DialogViewController-and-Scope-Buttons-tp3647293p3648581.html
>>>> Sent from the MonoTouch mailing list archive at Nabble.com.
>>>> _______________________________________________
>>>> MonoTouch mailing list
>>>> [email protected]
>>>> http://lists.ximian.com/mailman/listinfo/monotouch
>>>>
>>>
>>>
>>> _______________________________________________
>>> MonoTouch mailing list
>>> [email protected]
>>> http://lists.ximian.com/mailman/listinfo/monotouch
>>>
>>>
>>
>
> _______________________________________________
> 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

Reply via email to