Skip to content

Commit

Permalink
Indicators now update on template change.
Browse files Browse the repository at this point in the history
  • Loading branch information
DashTheDev committed Jun 18, 2024
1 parent 9f777c8 commit 20c956c
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion PanCardView/Common/Controls/IndicatorsControl.cs
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,10 @@ public class IndicatorsControl : HorizontalStackLayout
bindable.AsIndicatorsControl().ResetItemsSource(oldValue as IEnumerable);
});

public static readonly BindableProperty ItemTemplateProperty = BindableProperty.Create(nameof(ItemTemplate), typeof(DataTemplate), typeof(IndicatorsControl), new DataTemplate(typeof(IndicatorItemView)));
public static readonly BindableProperty ItemTemplateProperty = BindableProperty.Create(nameof(ItemTemplate), typeof(DataTemplate), typeof(IndicatorsControl), new DataTemplate(typeof(IndicatorItemView)), propertyChanged: (bindable, oldValue, newValue) =>
{
bindable.AsIndicatorsControl().ResetIndicatorsLayout();
});

public static readonly BindableProperty UseParentAsBindingContextProperty = BindableProperty.Create(nameof(UseParentAsBindingContext), typeof(bool), typeof(IndicatorsControl), true);

Expand Down

0 comments on commit 20c956c

Please sign in to comment.