Xamarin - Toolbaritems

Asked

Viewed 38 times

1

In the application I have 2 Toolbaritem items (ToolbarItem Name="Digitar" Activated="Digitar" ToolbarItem Name="Procurar" Icon="procurar48.png" Activated="Procurar"), the first is a word and the second is a magnifying glass. What I want to do is when I click on the magnifying glass make the magnifying glass invisible and enable the space of the word to enter the searched item. It’s a very simple thing but in Xamarin it’s a lot of work.

My code . Cs

   private void Procurar(object sender, EventArgs e)
    {
        ToolbarItems.Remove(Digitar);
    }

It turns out that this way is giving error in the word Type(It is not possible to convert from "group of methods" to "Toolbaritem"

No answers

Browser other questions tagged

You are not signed in. Login or sign up in order to post.