Skip to content

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

Open
iexapl wants to merge 1 commit intoaduskin:masterfrom
iexapl:feature/iexapl
Open

1、在AduSkin、AduVideoPlayer两个项目的 AssemblyInfo 中加入 XmlnsDefinition、Xmlns…#37
iexapl wants to merge 1 commit intoaduskin:masterfrom
iexapl:feature/iexapl

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