View Issue Details

IDProjectCategoryView StatusLast Update
0001754NoesisGUIC# SDKpublic2020-07-24 18:37
Reporterck_russ Assigned Tosfernandez  
PrioritynormalSeveritymajorReproducibilityalways
Status assignedResolutionopen 
Product Version3.0.2 
Target Version3.1 
Summary0001754: Databindings within triggers in a template element not functioning
DescriptionForum description here: https://www.noesisengine.com/forums/viewtopic.php?p=11423

XamlToy ready example of issue (databinding to blue fails):

<Grid
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml">

  <ContentControl>
    <ContentControl.Content>
      <Color>#ff0000ff</Color>
    </ContentControl.Content>
    <ContentControl.ContentTemplate>
      <DataTemplate>
        <Grid>
          <Rectangle Name="SomeRect" Width="200" Height="200" Fill="Pink">
            <Rectangle.Triggers>
              <EventTrigger RoutedEvent="Rectangle.Loaded">
                <EventTrigger.Actions>
                  <BeginStoryboard>
                    <Storyboard>
                      <ColorAnimation
                                      Duration="0:0:5"
                                      From="Green"
                                      To="{Binding}"
                                      AutoReverse="True" RepeatBehavior="Forever"
                                      Storyboard.TargetProperty="(Shape.Fill).(SolidColorBrush.Color)"
                                      Storyboard.TargetName="SomeRect">
                      </ColorAnimation>
                    </Storyboard>
                  </BeginStoryboard>
                </EventTrigger.Actions>
              </EventTrigger>
            </Rectangle.Triggers>
          </Rectangle>
        </Grid>
      </DataTemplate>
    </ContentControl.ContentTemplate>
  </ContentControl>
</Grid>
Tagsxaml
PlatformAny

Activities

There are no notes attached to this issue.

Issue History

Date Modified Username Field Change
2020-07-10 11:54 ck_russ New Issue
2020-07-10 11:54 ck_russ Tag Attached: xaml
2020-07-13 19:07 jsantos Assigned To => sfernandez
2020-07-13 19:07 jsantos Status new => assigned
2020-07-13 19:07 jsantos Target Version => 3.0.4
2020-07-24 18:37 sfernandez Target Version 3.0.4 => 3.1