Bug 59643 - Trigger does not return default value with using TemplateBinding
Summary: Trigger does not return default value with using TemplateBinding
Status: NEEDINFO
Alias: None
Product: Forms
Classification: Xamarin
Component: Forms (show other bugs)
Version: unspecified
Hardware: PC Windows
: --- normal
Target Milestone: ---
Assignee: Bugzilla
URL:
Depends on:
Blocks:
 
Reported: 2017-09-21 12:44 UTC by Ruslan Zakharov
Modified: 2017-10-04 07:11 UTC (History)
2 users (show)

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


Attachments

Description Ruslan Zakharov 2017-09-21 12:44:04 UTC
# Steps to reproduce
1) Create code in XAML:
    <Grid BackgroundColor="#4C000000">
        <Grid.Triggers>
            <Trigger TargetType="Grid" Property="IsVisible" Value="False">
                <Setter Property="BackgroundColor" Value="{TemplateBinding MyColor}" />
            </Trigger>
        </Grid.Triggers>
    </Grid>
2) Create MyColor bindable property in code behind;
3) Change IsVisible property from True to False and vice versa.

# Expected behavior
Grid should be changed to MyColor color when IsVisible=False, and to default state (#4C000000) when IsVisible=True

# Actual behavior
Grid is not changed to default state (#4C000000) when IsVisible=True

# Supplemental info (logs, images, videos)
None

# Test environment (full version information)
IDE - Visual Studio 2017
Xamarin.Forms - 2.3.5.233
Comment 1 Paul DiPietro [MSFT] 2017-09-29 18:51:29 UTC
Are you still experiencing this issue with the 2.4.0 stable release?
Comment 2 Ruslan Zakharov 2017-10-04 07:11:54 UTC
Hello Paul,
I will update to new version later and let you know

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