[C#] WPF UI 套件 — HandyControl

Una
2 min readMay 28, 2020

--

Handy Control : web

1. 加入NuGet套件

[專案] → [右鍵] → [管理NuGet套件]
[瀏覽] → 輸入[HandyControl] → [安裝]

2.加入Resources

打開App.xaml

App.xaml
將此段程式碼加入<Application.Resources> 裡面
加入 Resources 後的 App.xaml

3. 加入命名空间

開啟 MainWindow.xaml加入

xmlns:hc="https://handyorg.github.io/handycontrol"

4. 加入Button 看是否成功引入。

更改按鈕顏色看看,加入Style

<Button Style="{StaticResource ButtonPrimary}" Content="測試Button"/>
更換Style後的Button

Button 其他樣式或元件,請參考官網 : Handyorg

--

--

Una
Una

Written by Una

Hello. This is my code note.

No responses yet