Forum Xamarin.Forms

Binding doesn't work using DynamicResource as ControlTemplate

flchauxflchaux FRMember ✭✭

When I use a DynamicResource as ControlTemplate like that:

ControlTemplate="{DynamicResource BigClientTemplate}"

My bindings in the ContentPage doesn't work anymore. They work when the ControlTemplate is a static resource.
I very simply use bindings:

<Label Text="{Binding testString}" />

The BindingContext is defined like that :

public string testString { get; set; } = "test";
public  MyPage()
        BindingContext = this;

Do you have any idea why the binding behavior switch using static or dynamic resource as ControlTemplate ?

Sign In or Register to comment.