将命名控件导入xaml
1、导入本地命名空间
<Window x:Class="DemoApplication.MainWindow"
xmlns="https://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="https://schemas.microsoft.com/winfx/2006/xaml"
xmlns:dc="clr-namespace:DemoApplication"
Title="MainWindow" Height="300" Width="300">
<Grid>
<dc:DemoControl />
</Grid>
</Window>
如xmlns:dc="clr-namespace:DemoApplication"
2、导入第三方命名空间
<Window x:Class="DemoApplication.MainWindow"
xmlns="https://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="https://schemas.microsoft.com/winfx/2006/xaml"
xmlns:dc="clr-namespace:DemoApplication"
xmlns:vc="clr-namespace:VendorControlLibrary;assembly=VendorControlLibrary"
Title="MainWindow" Height="300" Width="300">
<Grid>
<dc:DemoControl />
<vc:UserControl1 />
</Grid>
</Window>
如xmlns:vc="clr-namespace:VendorControlLibrary;assembly=VendorControlLibrary"
------------------------------------
承接
**视觉检测软件开发及调试
**工业软件开发
**上位机软件开发
wechat:luoran2024
qq:565934058
email:taoyuansu@qq.com
海量教育资源及影视资源下载
微信公众号:EFun科技
------------------------------------

浙公网安备 33010602011771号