fix CheckBox animation throwing NullReferenceException on ObservableCollection changes#1660
fix CheckBox animation throwing NullReferenceException on ObservableCollection changes#1660Muniwedesu wants to merge 1 commit intolepoco:mainfrom
Conversation
|
Can you expand on what this fixes? You say #1140, but that one was closed (and thus presumably fixed) last year? Do you have a repro? |
That particular issue was with CardExpander and it was fixed, yes, this one does the same thing with CheckBox, maybe there are other controls like that. To reproduce just click on Remove/Clear button when checkbox is checked or was interacted with |
|
This is not complete, I don't have write access to the PR, but the Tag needs to be replaced as well: <controls:SymbolIcon.Clip>
<MultiBinding Converter="{StaticResource ClipConverter}">
<MultiBinding.Bindings>
<Binding Path="ActualWidth" RelativeSource="{RelativeSource Self}" />
<Binding Path="ActualHeight" RelativeSource="{RelativeSource Self}" />
<Binding Path="(animations:AnimationProperties.AnimationTagValue)" RelativeSource="{RelativeSource Self}" />
</MultiBinding.Bindings>
</MultiBinding>
</controls:SymbolIcon.Clip>
<animations:AnimationProperties.AnimationTagValue>
<system:Double>1</system:Double>
</animations:AnimationProperties.AnimationTagValue> |
Use DependencyProperty for getting/setting the Tag property value to avoid it having the default value of 'null'
Pull request type
Please check the type of change your PR introduces:
What is the current behavior?
Issue Number: #1140
What is the new behavior?
Other information