如何在XAML代码中开发自定义命名空间 [英] How can I develop a custom namespace in XAML codes

查看:66
本文介绍了如何在XAML代码中开发自定义命名空间的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想要正确的代码在XAML中使用C#创建自定义命名空间



我尝试过:



< page xmlns =http://schemas.microsoft.com/winfx/2006/xaml/presentationxmlns:x =http://schemas.microsoft.com/ winfx / 2006 / xaml><:MyControl x:Name =numericctrl1 =Width =100 =Height =60 =/>< / Page>< / xml>>

I want the correct codes to create a custom namespace in XAML using C#

What I have tried:

<page xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" > <:MyControl x:Name=" numericctrl1=" Width=" 100=" Height=" 60="/> </Page></xml>">

推荐答案

此链接有助于你的朋友。

Cleananer XAML Guide with Custom Namespaces and Prefixes(WPF / Silverlight) [ ^ ]
This link help to you friend.
A Guide to Cleaner XAML with Custom Namespaces and Prefixes (WPF/Silverlight)[^]


这篇关于如何在XAML代码中开发自定义命名空间的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆