Back to Devexpress

CRXPF0004 - Outdated windows

coderushforroslyn-403948-static-code-analysis-xaml-analyzers-crxpf-0004-outdated-windows.md

latest1.2 KB
Original Source

CRXPF0004 - Outdated windows

  • Feb 14, 2023

Severity: Info

The analyzer detects that you use outdated DXWindow, DXRibbonWindow, or DXTabbedWindow elements.

Examples

Invalid Code

xaml
<dxr:DXRibbonWindow x:Class="Example.MainWindow"
...
xmlns:dxr="http://schemas.devexpress.com/winfx/2008/xaml/ribbon">

Valid Code

xaml
<dx:ThemedWindow x:Class="Example.MainWindow"
                 WindowKind="Ribbon"
...
xmlns:dx="http://schemas.devexpress.com/winfx/2008/xaml/core">

How to Fix

Use the ThemedWindow and specify its WindowKind property to integrate the Tab Control or Ribbon Control into the window.

Refer to the following help topic for more information: ThemedWindow.