Skip to content

Commit

Permalink
Add PortHandler attributes
Browse files Browse the repository at this point in the history
  • Loading branch information
jsuarezruiz committed Mar 26, 2021
1 parent 946586b commit 0d88bf6
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,7 @@ protected override void OnElementPropertyChanged(object sender, PropertyChangedE
UpdateProgressColor();
}

[PortHandler]
internal virtual protected void UpdateProgressColor()
{
if (Element == null || Control == null)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,7 @@ protected override void SetBackgroundColor(Color color)
Control.TrackTintColor = color != Color.Default ? color.ToUIColor() : null;
}

[PortHandler]
void UpdateProgressColor()
{
Control.ProgressTintColor = Element.ProgressColor == Color.Default ? null : Element.ProgressColor.ToUIColor();
Expand Down

0 comments on commit 0d88bf6

Please sign in to comment.