Need to refresh the whole Content Page in prism RRS feed

  • Question

  • User230799 posted

    Hi Guys,

    I want to refresh my content page in xamarin prism, please help on this to resolve me too.

    Friday, October 4, 2019 5:47 PM

All replies

  • User382871 posted

    Need to refresh the whole Content Page in prism Set the binding to the views in page.xaml. Create a view model class which inherits from BindableBase and implements the INavigationAware interface. <Label Text="{Binding Title}" /> ``` public class MainPageViewModel : BindableBase, INavigationAware { private string _title; public string Title { get { return _title; } set { SetProperty(ref _title, value); } }

    public void OnNavigatedFrom(NavigationParameters parameters){}
    public void OnNavigatedTo(NavigationParameters parameters)
        if (parameters.ContainsKey("title"))
            Title = (string)parameters["title"] + " and Prism";

    } ```

    Refer to: http://prismlibrary.github.io/docs/xamarin-forms/Getting-Started.html

    Monday, October 7, 2019 2:36 AM