Share via


ModulePage.CanRefresh Property

Definition

Gets a value indicating whether the page supports refreshing.

protected:
 virtual property bool CanRefresh { bool get(); };
protected virtual bool CanRefresh { get; }
member this.CanRefresh : bool
Protected Overridable ReadOnly Property CanRefresh As Boolean

Property Value

true if refresh is supported; otherwise, false. The default is false.

Implements

Examples

The following example implements the CanRefresh method.

protected override bool CanRefresh {
    get {
        if (_busy)
            return false;
        return true;
    }
}

Remarks

If the value of the CanRefresh property is true, you must override the Refresh method to provide functioning implementation.

Applies to