Xamarin - ToolbarItems

1

In the application I have 2 items from ToolbarItem (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 clicking on the magnifying glass leave the magnifying glass invisible and enable the word space to type the searched item. It is a very simple thing but in Xamarin it is giving a lot of work.

My .cs code

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

It turns out that this way is giving error in the word Typing (Can not convert from "method group" to "ToolbarItem"

    
asked by anonymous 06.03.2018 / 22:07

0 answers