Quantcast
Channel: Recent Threads — Xamarin Community Forums
Viewing all articles
Browse latest Browse all 204402

Can i Recalculate old Value Property in my Custom Control

$
0
0

I have Created this bindable property in my CustomSlider it is giving me double value, so i want to convert it into integer at the time of rendering.
is it possible if it is please let me know

public static readonly BindableProperty ValueProperty = BindableProperty.Create(nameof(Value),
typeof(string), typeof(CustomSlider), string.Empty);

    public string Value
    {
        get { return (string)Value; }
        set { SetValue(ValueProperty, value); }
    }

i want to use old value to convert into integer and return it as new value.
I don't want to use Converter


Viewing all articles
Browse latest Browse all 204402

Trending Articles



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