概述
Tab页面是一个很常用的控件,针对页面固定的场景,直接给Item进行数据绑定就行,如下所示:
<dx:DXTabControl cal:Message.Attach="[Event Loaded]=[TabControl_Loaded($source,$eventArgs)]">
<dx:DXTabItem Header="{Binding Region[0]}" Visibility="{Binding TabPageDispaly[0]}">
<ContentControl cal:View.Model="{Binding ParamPage}" />
</dx:DXTabItem>
<dx:DXTabItem Header="{Binding Region[1]}" Visibility="{Binding TabPageDispaly[1]}">
<ContentControl cal:View.Model="{Binding ParamPage}"/>
</dx:DXTabItem>
<dx:DXTabItem Header="{Binding Region[2]}" Visibility="{Binding TabPageDispaly[2]}">
<ContentControl cal:View.Model="{Binding ParamPage}"/>