WinRT界面控件Essential Studio for WinRT中如何选择模式

来源:互联网 发布:mysql 1129 编辑:程序博客网 时间:2024/06/05 14:52

今天来看看如何利用WinRT界面控件Essential Studio for WinRT选择模式。可以基于SelectionMode属性来进行选择,它主要具有以下的选项,包含了默认选项:

1.   One

2.   OneOrMore

3.   ZeroOrOne

4.   ZeroOrMore

下面来看一下这些选项:

One

    在折叠面板控件中,只可以选中一个项目。

XAML

?
1
2
3
4
<layout:SfAccordion
            DisplayMemberPath="Name"
            SelectionMode="One"
            ItemsSource="{Binding Employees}"/>

WinRT界面控件Essential Studio使用教程:选择模式

OneOrMore

    在折叠显示中,可以有一个或是多个在被选中状态,但是一个项目将会在被选中状态。

XAML

?
1
2
3
4
<layout:SfAccordion
           DisplayMemberPath="Name"
           SelectionMode="OneOrMore "
           ItemsSource="{Binding Employees}"/>

WinRT界面控件Essential Studio使用教程:选择模式

>>查看ZeroOrOne

 >>查看ZeroOrMore

 >>下载Essential Studio for WinRT(XMAL) 最新版 

原创粉丝点击