UI Tookit UI Tookit
UI Tookit UI Tookit
DocFX + Singulink = ♥

Search Results for

    Property CanBePinned

    CanBePinned

    Gets a value indicating whether the view model and its associated view can be retained by a RoutePin (see PinCurrentRoute()). Defaults to the value of CanBeCached.

    Declaration
    bool CanBePinned { get; }
    Property Value
    Type Description
    bool
    Remarks

    A pinned view model is navigated to again with its state intact when its route is returned to, so it must handle repeated calls to OnNavigatedToAsync(NavigationArgs) on the same instance in the same way a cached view model does. View models that opt out of caching therefore cannot be pinned unless they explicitly override this property to return true.

    When a route is pinned, the leaf view model must be pinnable and each of its ancestors is pinned as well up to the first ancestor that is not pinnable. Ancestors from that point up follow the normal caching rules.

    © Singulink. All rights reserved.