Grial-UI-Kit-Support icon indicating copy to clipboard operation
Grial-UI-Kit-Support copied to clipboard

IconTextButton does not respond to command

Open ricardocesarcara opened this issue 1 year ago • 5 comments

Hi,

the IconTextButton component does not respond to command in MAUI App.

<local:IconTextButton Command="{Binding ActionCommand}" Clicked ="IconTextButton_Clicked" CommandParameter="MEUPONTO" Icon="{x:Static local:GrialIconsFont.Clock}" Style="{StaticResource IconTextToolbarButtonStyle}" Text="Meu Ponto" WidthRequest="100" />

View Model: public IAsyncRelayCommand ActionCommand{ private set; get; }

Looking at the source code I didn't find TapGestureRecognizer implemented in the control

ricardocesarcara avatar Dec 01 '23 15:12 ricardocesarcara

Tem como vc mostrar mais código para analisarmos melhor o seu problema?

gabrielalfa avatar Dec 04 '23 23:12 gabrielalfa

Hi, Example.zip

I used the SmartHomeMainPage example page. on line 81 replace IconButton with IconTextButton

ricardocesarcara avatar Dec 05 '23 19:12 ricardocesarcara

Olá

vc passou o samrthomeMainViewModel em BindingContext? no load da page

Hello

did you pass the samrthomeMainViewModel in BindingContext? without loading the page

public SmartHomeMainPage() { InitializeComponent();

 BindingContext = new SmartHomeMainViewModel(Navigation);

}

On Tue, Dec 5, 2023 at 4:40 PM Ricardo Cesar Cara @.***> wrote:

Hi, Example.zip https://github.com/UXDivers/Grial-UI-Kit-Support/files/13572108/Example.zip

I used the SmartHomeMainPage example page. on line 81 replace IconButton with IconTextButton

— Reply to this email directly, view it on GitHub https://github.com/UXDivers/Grial-UI-Kit-Support/issues/852#issuecomment-1841500870, or unsubscribe https://github.com/notifications/unsubscribe-auth/ACAU2RIX753DRUCIYKLADPDYH52BTAVCNFSM6AAAAABAC7KDU2VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTQNBRGUYDAOBXGA . You are receiving this because you commented.Message ID: @.***>

-- Gabriel Seben - Desenvolvedor Tornfy Sistema de Torneios

Caxias do Sul - RS / Brasil +55 (54) 9.8105-3522 @.***

https://api.whatsapp.com/send?phone=5554981053522&text=Gostaria%20de%20mais%20informa%C3%A7%C3%B5es%20sobre%20a%20plataforma%20ICT. https://www.linkedin.com/in/gabriel-seben-73488a25/

gabrielalfa avatar Dec 05 '23 20:12 gabrielalfa

hi, yes, I used the page that I downloaded directly from Grial. When I use IconButton for example it works correctly.

Below complete project:

Grial.zip

SmartHomeMainPage line 81

namespace Tecsmart.App.Testes { public partial class SmartHomeMainPage : ContentPage { public SmartHomeMainPage() { InitializeComponent();

        BindingContext = new SmartHomeMainViewModel(Navigation);
    }
}

}

ricardocesarcara avatar Dec 06 '23 10:12 ricardocesarcara

Olá ricardo, percebi que vc é brasileiro

talvez possamos nos ajudar de uma forma mais direta

meu contato é: [email protected]

me envia um email que marcamos um horário pra que eu possa te ajudar diretamente, o que acha?

gabrielalfa avatar Dec 06 '23 10:12 gabrielalfa

Please get the latest IconTextButton from Grial version 4.2.114 that has a fix for this.

dirivero avatar May 02 '24 14:05 dirivero