UXDivers / Grial-UI-Kit-Support

This is our public repository for customers to report bugs about Grial UI Kit for Xamarin Forms
61 stars 26 forks source link

IconTextButton does not respond to command #852

Closed ricardocesarcara closed 7 months ago

ricardocesarcara commented 12 months ago

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

gabrielalfa commented 12 months ago

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

ricardocesarcara commented 12 months ago

Hi, Example.zip

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

gabrielalfa commented 12 months ago

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/

ricardocesarcara commented 11 months ago

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);
    }
}

}

gabrielalfa commented 11 months ago

Olá ricardo, percebi que vc é brasileiro

talvez possamos nos ajudar de uma forma mais direta

meu contato é: gabrielalfa@gmail.com

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

dirivero commented 7 months ago

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