Back to Devexpress

CollectionButtonsVisibilityEventArgs.IsVisible Property

wpf-devexpress-dot-xpf-dot-propertygrid-dot-collectionbuttonsvisibilityeventargs.md

latest2.7 KB
Original Source

CollectionButtonsVisibilityEventArgs.IsVisible Property

Gets or sets whether to display the collection button.

Namespace : DevExpress.Xpf.PropertyGrid

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

NuGet Package : DevExpress.Wpf.PropertyGrid

Declaration

csharp
public bool IsVisible { get; set; }
vb
Public Property IsVisible As Boolean

Property Value

TypeDescription
Boolean

true to display the collection button; otherwise, false.

|

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

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.

wpf-property-grid-specify-custom-collection-edit-actions/CS/MainWindow.xaml.cs#L27

csharp
if (issue != null && issueView != null && !string.Equals(issue.Owner, issueView.UserName))
        e.IsVisible = false;
}

wpf-property-grid-specify-custom-collection-edit-actions/VB/MainWindow.xaml.vb#L20

vb
Dim issue = TryCast(e.Value, Issue)
    If issue IsNot Nothing AndAlso issueView IsNot Nothing AndAlso Not String.Equals(issue.Owner, issueView.UserName) Then e.IsVisible = False
End If

See Also

CollectionButtonsVisibilityEventArgs Class

CollectionButtonsVisibilityEventArgs Members

DevExpress.Xpf.PropertyGrid Namespace