Forum Xamarin.Forms

Refresh ContentView

HkncoreHkncore ATMember ✭✭

I have a contentview which is using a ControlTemplate. However the ControlTemplate has labels which have bindings. These labels values change. The ContentView however doesn't change. I need a way to refresh my ContentView.

            <ContentView ControlTemplate="{StaticResource SelectTransportZiel}"/>
Tagged:

Best Answer

  • HkncoreHkncore AT ✭✭
    Accepted Answer

    This did the trick:

    BindingContext="{TemplateBinding BindingContext}"

Answers

  • HkncoreHkncore ATMember ✭✭
    Accepted Answer

    This did the trick:

    BindingContext="{TemplateBinding BindingContext}"

  • DeepakDYDeepakDY INMember ✭✭✭
    edited June 2019

    Hello @Hkncore

    Can you show full source code?

  • Ashish_sharmaAshish_sharma INMember ✭✭✭

    have any sample code for this

  • HkncoreHkncore ATMember ✭✭

    @DeepakDY said:
    Hello @Hkncore

    Can you show full source code?

    Full Source Code????
    Are you out of your mind ?

  • HkncoreHkncore ATMember ✭✭

    @Ashish_sharma said:
    have any sample code for this

    It's a pretty old question. I don't remember any code sniplets . Sry

  • DeepakDYDeepakDY INMember ✭✭✭

    Hello @Hkncore

    I means binding concept of content view. not full source code.

  • HkncoreHkncore ATMember ✭✭

    @DeepakDY said:
    Hello @Hkncore

    I means binding concept of content view. not full source code.

    Okay, as I explained above this question is pretty old and I dont have the source nor remember anything unfortunately.
    Good Luck tho

Sign In or Register to comment.