Table of Contents

Method DeferRefresh

Namespace
Alternet.UI
Assembly
Alternet.UI.dll

DeferRefresh()

Enter a Defer Cycle. Defer cycles are used to coalesce property changes, any automatic Refresh is delayed until the Defer Cycle is exited.

public virtual IDisposable DeferRefresh()

Returns

IDisposable

Remarks

most typical usage is with a using block to set multiple proporties without the automatic Refresh to occur

XmlDataProvider xdv = new XmlDataProvider();
using(xdv.DeferRefresh()) {
    xdv.Source = "http://foo.com/bar.xml";
    xdv.XPath = "/Bla/Baz[@Boo='xyz']";
}