You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm trying to use this nuget package but I've got a problem with the ColorWheel.
When the initial value of the SelectedColor is black(Color.FromHex("#FF000000")) and I use the the colorpicker to set a new value my property in the viewmodel isn't updated.
When I first set my property to another color and then update via the colorwheel my setter is triggerd
Viewmodel property:
publicColorEditedColor1{
get {return_editedColor1;}
set
{_editedColor1=value;
Settings.AddOrUpdateValue("color1", _editedColor1.ToHex());
RaisePropertyChanged(()=> EditedColor1);
ColorChanged(1);}}
I didn't use the nuget package itself because I'm using a newer version of Xamarin forms so I downloaded your code updated the package and used that dll.
With the slides the problem doesn't occur.
The text was updated successfully, but these errors were encountered:
Hi.
You set black as initial color and use only color circle.
Color circle affects Hue and Saturation, but with Luminosity = 0 (from initial black color) you always end up with black color.
If you want to get a saturated color, as you can see in the color circle, you need Luminosity = 0.5.
May be gray initial color is what you need?
If I understand your problem correctly.
P.S. I will update Nuget dependencies and publish new version.
Okay that seems the problem indeed but maybe you need to change the default value for SelectedColorProperty because if someone will use only your colorpicker and no sliders it wont work
public static readonly BindableProperty SelectedColorProperty = BindableProperty.Create(
nameof(SelectedColor),
typeof(Color),
typeof(IColorPicker),
Color.Black,
propertyChanged: new BindableProperty.BindingPropertyChangedDelegate(HandleSelectedColorSet), defaultBindingMode: BindingMode.TwoWay);
I'm trying to use this nuget package but I've got a problem with the ColorWheel.
When the initial value of the SelectedColor is black(Color.FromHex("#FF000000")) and I use the the colorpicker to set a new value my property in the viewmodel isn't updated.
When I first set my property to another color and then update via the colorwheel my setter is triggerd
Viewmodel property:
View
I didn't use the nuget package itself because I'm using a newer version of Xamarin forms so I downloaded your code updated the package and used that dll.
With the slides the problem doesn't occur.
The text was updated successfully, but these errors were encountered: