Back to Devexpress

DataViewBase.IsFocusedView Property

wpf-devexpress-dot-xpf-dot-grid-dot-dataviewbase-4892af7b.md

latest2.5 KB
Original Source

DataViewBase.IsFocusedView Property

Gets whether a view is focused.

Namespace : DevExpress.Xpf.Grid

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

NuGet Package : DevExpress.Wpf.Grid.Core

Declaration

csharp
public bool IsFocusedView { get; }
vb
Public ReadOnly Property IsFocusedView As Boolean

Property Value

TypeDescription
Boolean

true if the View is focused; otherwise, false.

|

The following code snippet (auto-collected from DevExpress Examples) contains a reference to the IsFocusedView 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-data-grid-expand-and-collapse-master-rows/CS/WpfApplication21/MainWindow.xaml.cs#L19

csharp
// Avoid key processing when focus is within detail views or when a group row is focused:
if (!view.IsFocusedView || view.FocusedRowHandle < 0)
    return;

wpf-data-grid-expand-and-collapse-master-rows/VB/WpfApplication21/MainWindow.xaml.vb#L20

vb
' Avoid key processing when focus is within detail views or when a group row is focused:
If Not view.IsFocusedView OrElse view.FocusedRowHandle < 0 Then Return
' Process CTRL+* key combination:

See Also

IsKeyboardFocusWithinView

DataViewBase Class

DataViewBase Members

DevExpress.Xpf.Grid Namespace