Quantcast
Channel: Xamarin.Forms — Xamarin Community Forums
Viewing all articles
Browse latest Browse all 89864

How to implement bindable property for children controls in custom control?

$
0
0

I'm implementing a custom progress bar,
where it contains multiple signs of progress with different colors:

This is how I think of it:

<controls:CustomMultiProgressBar OutlineColor="White" TailText="60%">
    <controls:CustomMultiProgressBar.Progresses>
        <controls:Progress ProgressColor="LightGreen" MaxPercentage=".4"/>
        <controls:Progress ProgressColor="DarkGreen" MaxPercentage="1" Image="star.png"/>
    </controls:CustomMultiProgressBar.Progresses>
</controls:CustomMultiProgressBar>

I found this lengthy article, but it must not be that complex.

all I need (if it was possible) a bindable property like IList<View> Children where its propertyChanged delegate handle rendering.


Viewing all articles
Browse latest Browse all 89864

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>