View Issue Details

IDProjectCategoryView StatusLast Update
0001812NoesisGUIUnity3Dpublic2020-10-16 19:37
ReporteragrebenskovAssigned Tosfernandez 
PrioritynormalSeveritycrashReproducibilityalways
Status assignedResolutionopen 
Product Version3.0.6 
Target Version3.0.7Fixed in Version 
Summary0001812: MultiBinding with converter in DataTrigger crashes Unity
DescriptionWhen I use DataTrigger inside ControlTemplate with multi binding Unity crashes.
Steps To ReproduceSample code:

<ControlTemplate.Triggers>
             <DataTrigger Value="True">
              <DataTrigger.Binding>
                <MultiBinding Converter="{StaticResource TestConverterConverter}" Mode="OneWay" >
                  <MultiBinding.Bindings>
                    <Binding ElementName="comboboxButton"/>
                    <Binding ElementName="comboboxButton" Path="IsChecked"/>
                    <Binding ElementName="popupContent" Path="ActualHeight"/>
                  </MultiBinding.Bindings>
                </MultiBinding>
              </DataTrigger.Binding>
              <DataTrigger.Setters>
                <Setter TargetName="SmoothComboBoxBorder" Property="BorderThickness">
                  <Setter.Value>
                    <MultiBinding Converter="{StaticResource ComboboxThicknessConverter}">
                      <Binding RelativeSource="{RelativeSource TemplatedParent}" Path="BorderThickness.Left"/>
                      <Binding Source="{StaticResource DefaultThickness}"/>
                      <Binding RelativeSource="{RelativeSource TemplatedParent}" Path="BorderThickness.Right"/>
                      <Binding RelativeSource="{RelativeSource TemplatedParent}" Path="BorderThickness.Bottom"/>
                    </MultiBinding>
                  </Setter.Value>
                </Setter>
              </DataTrigger.Setters>
            </DataTrigger>

public sealed class TestConverterConverter : IMultiValueConverter
   {
      public object Convert(object[] values, Type targetType, object parameter, CultureInfo culture)
      {
         return true;
      }

      public object[] ConvertBack(object value, Type[] targetTypes, object parameter, CultureInfo culture)
      {
         return new object[0];
      }
   }
TagsC#, Unity
PlatformAny

Activities

There are no notes attached to this issue.

Issue History

Date Modified Username Field Change
2020-10-16 18:50 agrebenskov New Issue
2020-10-16 18:50 agrebenskov Tag Attached: C#
2020-10-16 18:50 agrebenskov Tag Attached: Unity
2020-10-16 19:37 jsantos Assigned To => sfernandez
2020-10-16 19:37 jsantos Status new => assigned
2020-10-16 19:37 jsantos Target Version => 3.0.7