This is Xamarin's bug tracking system. For product support, please use the support links listed in your Xamarin Account.
Bug 43354 - Button IsEnabled binding is position dependent
Summary: Button IsEnabled binding is position dependent
Status: RESOLVED FIXED
Alias: None
Product: Forms
Classification: Xamarin
Component: Forms (show other bugs)
Version: 2.3.2
Hardware: PC Windows
: Normal normal
Target Milestone: ---
Assignee: Bugzilla
URL:
Depends on:
Blocks:
 
Reported: 2016-08-15 16:37 UTC by Sylvain Gravel
Modified: 2016-09-12 18:29 UTC (History)
3 users (show)

See Also:
Tags: ac
Is this bug a regression?: ---
Last known good build:


Attachments

Description Sylvain Gravel 2016-08-15 16:37:47 UTC
If I set my Command binding after my IsEnabled binding, teh button will always start as enabled, regardless of binding value returned.

            <Button Margin="0, 40, 0, 0"
                    HorizontalOptions="FillAndExpand"
                    Text="{Binding TextProvider, Converter={StaticResource LanguageConverter}, ConverterParameter='Login'}"
                    TextColor="{StaticResource ContrastColor}"
                    Command="{Binding LoginToServerCommand}"
                    IsEnabled="{Binding HasCredentials}"/>

If you ivert last 2 lines, you will get the issue even if HasCredentials is false.
Comment 1 Samantha Houts 2016-09-12 18:29:53 UTC
Should be fixed in 2.3.3-pre1. Thank you!

Note You need to log in before you can comment on or make changes to this bug.