Back to Devexpress

BaseColumn.WidthProperty Field

wpf-devexpress-dot-xpf-dot-grid-dot-basecolumn-903e47a0.md

latest2.6 KB
Original Source

BaseColumn.WidthProperty Field

Identifies the BaseColumn.Width dependency property.

Namespace : DevExpress.Xpf.Grid

Assembly : DevExpress.Xpf.Grid.v25.2.Core.dll

NuGet Package : DevExpress.Wpf.Grid.Core

Declaration

csharp
public static readonly DependencyProperty WidthProperty
vb
Public Shared ReadOnly WidthProperty As DependencyProperty

Field Value

TypeDescription
DependencyProperty

A dependency property identifier.

|

The following code snippet (auto-collected from DevExpress Examples) contains a reference to the WidthProperty field.

Note

The algorithm used to collect these code examples remains a work in progress. Accordingly, the links and snippets below may produce inaccurate results. If you encounter an issue with code examples below, please use the feedback form on this page to report the issue.

how-to-prevent-certain-gridcontrols-properties-from-being-serialized-t158989/CS/WpfApplication58/MainWindow.xaml.cs#L19

csharp
void OnAllowProperty(object sender, AllowPropertyEventArgs e) {
    if (e.DependencyProperty == GridColumn.WidthProperty)
        e.Allow = false;

how-to-prevent-certain-gridcontrols-properties-from-being-serialized-t158989/VB/WpfApplication58/MainWindow.xaml.vb#L23

vb
Private Sub OnAllowProperty(ByVal sender As Object, ByVal e As AllowPropertyEventArgs)
    If e.DependencyProperty Is BaseColumn.WidthProperty Then e.Allow = False
End Sub

See Also

BaseColumn Class

BaseColumn Members

DevExpress.Xpf.Grid Namespace