Back to Devexpress

PivotLayoutAllowEventArgs Class

wpf-devexpress-dot-xpf-dot-pivotgrid-afc1ba9f.md

latest2.6 KB
Original Source

PivotLayoutAllowEventArgs Class

Provides data for the PivotGridControl.BeforeLoadLayout event.

Namespace : DevExpress.Xpf.PivotGrid

Assembly : DevExpress.Xpf.PivotGrid.v25.2.dll

NuGet Package : DevExpress.Wpf.PivotGrid

Declaration

csharp
public class PivotLayoutAllowEventArgs :
    PivotLayoutUpgradeEventArgs
vb
Public Class PivotLayoutAllowEventArgs
    Inherits PivotLayoutUpgradeEventArgs

PivotLayoutAllowEventArgs is the data class for the following events:

Remarks

The PivotGridControl.BeforeLoadLayout event occurs before a layout is restored from a storage, allowing you to cancel this action.

The PivotLayoutAllowEventArgs class provides the PivotLayoutAllowEventArgs.Allow property that allows you to cancel restoring a layout. To stop the layout from being restored, set the PivotLayoutAllowEventArgs.Allow property to false.

The PivotLayoutUpgradeEventArgs.PreviousVersion property defines the version of the layout being restored. This can be compared with the version of the current layout specified by the DevExpress.Xpf.Core.Serialization.DXSerializer.LayoutVersion attached property value set for the PivotGridControl instance. The layout restoration can be canceled, for example, if the versions do not match.

Inheritance

Object EventArgs RoutedEventArgs PivotLayoutUpgradeEventArgs PivotLayoutAllowEventArgs

See Also

PivotLayoutAllowEventArgs Members

DevExpress.Xpf.PivotGrid Namespace