Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

1、在AduSkin、AduVideoPlayer两个项目的 AssemblyInfo 中加入 XmlnsDefinition、Xmlns… #37

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

iexapl
Copy link

@iexapl iexapl commented Jul 6, 2023

1、在AduSkin、AduVideoPlayer两个项目的 AssemblyInfo 中加入 XmlnsDefinition、XmlnsPrefix 特征,
在 XAML 中修改为:
//引用命名空间
xmlns:adu="https://github.com/aduskin"
///使用窗口
<adu:MetroWindow x:Class="MainWindow"/>
///使用控件
<adu:AduFlatButton Content="按钮"/>
2、AduWindow、MetroWindow 重写 OnApplyTemplate 来给系统按钮绑定事件,而不用在主题代码中去写事件。

…Prefix 特征,在 XAML 中注册可以改用 xmlns:adu="https://github.com/aduskin" 的形式。

2、AduWindow、MetroWindow 重写 OnApplyTemplate 来给系统按钮绑定事件,而不用在主题代码中去写事件。
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant