[英]Define single DevExpress control namespace in WPF
I am using DevExpress Controls in my WPF application.so now I have below namespace defined in many of XAML files. 我在WPF应用程序中使用DevExpress控件。因此,现在我在许多XAML文件中定义了以下名称空间。
xmlns:dxg="clr-namespace:DevExpress.Xpf.Grid;assembly=DevExpress.Xpf.Grid.v13.1"
Problem is whenever I need to updated DevExpress for ex: from v13.1 to v14.2. 问题是什么时候我需要将DevExpress从例如v13.1更新到v14.2。 I have to update namespace in all of the XAML files. 我必须更新所有XAML文件中的名称空间。 This is very tedious process. 这是非常繁琐的过程。
is there anyway I can define namespace at one place and reference it in all my XAML files? 无论如何,我可以在一处定义名称空间并在所有XAML文件中引用它吗? So that I have to do change only at one place. 这样我只需要在一处进行更改。
You can use the project converter which is provided by devexpress. 您可以使用devexpress提供的项目转换器。
In Visual Studio menu: Devexpress > Project converter. 在Visual Studio菜单中:Devexpress>项目转换器。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.