当前位置:网站首页>Open source C # WPF control library --newbeecoder UI User Guide (II)

Open source C # WPF control library --newbeecoder UI User Guide (II)

2022-06-23 21:37:00 User 7152477

It's easy to use the built-in check box to display options , To keep the interface style and style consistent . Therefore, we need to reconstruct and beautify the radio boxes and check boxes to meet our needs .

Newbeecoder.UI Open source control download link :https://share.weiyun.com/MwgWJM8Y

Later I explored wpf Built in controls , Expand some common functions on the system's own components . Find out WPF It's very powerful , Newbeecoder.UI be based on .net framework 4.0 Framework development , Good compatibility with higher versions .

As long as you have good design drawings , Basically you can use Newbeecoder.UI Developed according to the design drawing , The following demonstrates the controls developed by the open source control library :

Because there are many controls , So here's the table of contents :

1. Button

2. Radio buttons

3. Check box

4. List box

5. Input box

6. Password box

7.IP Input box

8. A drop-down box

9. Date time

10. The calendar

11. switch

12. Progress bar

13. tab

14. Tree view

15. Plus and minus numbers

16. form

17. Color selector

18. Group control

19. Collapse menu

20. Message box

21. window

22. notice

23. Pagination

24. Drop down the multiple selection box

Newbeecoder.UI There are several option boxes . They are square radio boxes 、 Round radio box 、 Checkbox .

One 、 How to use square radio boxes .

<TextBlock Text="1.  Please calculate 1 Add 1 Equal to several " Margin="5"/>
<NbRadioBox Style="{DynamicResource DefaultRadioBoxStyle}" Margin="5" Content="A. 0" GroupName="Ans1"/>
<NbRadioBox Style="{DynamicResource DefaultRadioBoxStyle}" Margin="5" Content="B. 1" GroupName="Ans1"/>
<NbRadioBox Style="{DynamicResource DefaultRadioBoxStyle}" Margin="5" Content="C. 2" GroupName="Ans1"/>
<NbRadioBox Style="{DynamicResource DefaultRadioBoxStyle}" Margin="5" Content="D. 4" GroupName="Ans1"/>

Square radio box NbRadioBox, stay RadioButton Extend attributes and styles on , The radio box needs to put the same set of objects GroupName Group name set a name .

Two 、 How to use the circular radio box .

<TextBlock Text="2.  Please calculate 1 multiply 1 Equal to several " Margin="5"/>
<NbRadioBox Style="{DynamicResource RoundRadioBoxStyle}" Margin="5" Content="A. 0" GroupName="Ans2"/>
<NbRadioBox Style="{DynamicResource RoundRadioBoxStyle}" Margin="5" Content="B. 1" GroupName="Ans2"/>
<NbRadioBox Style="{DynamicResource RoundRadioBoxStyle}" Margin="5" Content="C. 2" GroupName="Ans2"/>
<NbRadioBox Style="{DynamicResource RoundRadioBoxStyle}" Margin="5" Content="D. 4" GroupName="Ans2"/>

3、 ... and 、 How to use multiple selection boxes .

<TextBlock Text="1.  Please calculate 4 The square root of " Margin="5"/>
<NbCheckBox Style="{DynamicResource DefaultCheckBoxStyle}" Margin="5" Content="A. -1"/>
<NbCheckBox Style="{DynamicResource DefaultCheckBoxStyle}" Margin="5" Content="B. -2"/>
<NbCheckBox Style="{DynamicResource DefaultCheckBoxStyle}" Margin="5" Content="C. 1"/>
<NbCheckBox Style="{DynamicResource DefaultCheckBoxStyle}" Margin="5" Content="D. 2"/>

Multi checkbox class NbCheckBox. stay ToggleButton Extend attributes and styles on .ToggleButton Members of the class IsChecked yes bool type . Implement the check or uncheck function .

Need to use Newbeecoder.UI Open source control library or customized UI Control development please send me a private letter .

原网站

版权声明
本文为[User 7152477]所创,转载请带上原文链接,感谢
https://yzsam.com/2021/12/202112221352507034.html