good morning everyone, sorry but I'm a very very newbie and I don't even know how to ask the right questions.
I wanted to ask if there is a possibility to create a binding for the shadow properties of a control (eg. a button)
Something that could look like this. thanks to everyone.
public class shadow
{
public string brush { get; set; } = "Black";
public string offset { get; set; } = "20,20";
public string radius { get; set; } = "10";
public string opacity { get; set; } = "0.7";
}
public class shadow
{ public string brush { get; set; } = "Black"; public string offset { get; set; } = "20,20"; public string radius { get; set; } = "10"; public string opacity { get; set; } = "0.7"; } ```

Vicente Gerardo Guzman LucioPosted Sep 2, 2024, 12:29 AM
Do you have a repository of a working example?
Naimish MakwanaPosted Aug 29, 2024, 1:06 PM
Yes, you can create bindings for the shadow properties of a control like a button in XAML. Here’s how you can do it:
Shadowclass and set it as the BindingContext.{Binding}markup extension to bind the properties of theShadowclass to the shadow properties of the button.This setup allows you to bind the shadow properties of the button to the properties defined in your
Shadowclass. You can then update the properties of theShadowinstance, and the changes will be reflected in the button’s shadow.Thanks