WPF Dev 16.2版本的DXTabControl的页签标题设置
来源:互联网 发布:软件测试 阶段 编辑:程序博客网 时间:2024/06/12 01:13
前台设置:
<Window
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
xmlns:local="clr-namespace:WPF123"
xmlns:dx="http://schemas.devexpress.com/winfx/2008/xaml/core" x:Class="WPF123.MainWindow"
mc:Ignorable="d"
Title="MainWindow" Height="350" Width="525">
<Grid>
<dx:DXTabControl Margin="18,23,37,47" Name="hahahha">
<dx:DXTabControl.View>
<dx:TabControlMultiLineView HeaderLocation="Top"></dx:TabControlMultiLineView>
</dx:DXTabControl.View>
<dx:DXTabItem Header="123">
<Grid Background="AliceBlue">
<Button Height="22" Content="123"></Button>
</Grid>
</dx:DXTabItem>
<dx:DXTabItem Header="456">
<Grid Background="AliceBlue">
<Button Height="22" Content="456"></Button>
</Grid>
</dx:DXTabItem>
<dx:DXTabItem Header="789">
<Grid Background="AliceBlue">
<Button Height="22" Content="789"></Button>
</Grid>
</dx:DXTabItem>
</dx:DXTabControl>
</Grid>
</Window>
dx:TabControlMultiLineView HeaderLocation="Top”,top向上显示,right 靠右显示,none不显示
后台代码设置:
.View.HeaderLocation = DevExpress.Xpf.Core.HeaderLocation.None;
注:
namespace DevExpress.Xpf.Core
{
//
// 摘要:
// Lists values that specify the location of the Header Panel, relative to the tab
// item.
public enum HeaderLocation
{
//
// 摘要:
// The Header Panel is not displayed.
None = 0,
//
// 摘要:
// The Header Panel is located on the left side of the tab item.
Left = 1,
//
// 摘要:
// The Header Panel is located at the top of the tab item.
Top = 2,
//
// 摘要:
// The Header Panel is located on the right side of the tab item.
Right = 3,
//
// 摘要:
// The Header Panel is located at the bottom of the tab item.
Bottom = 4
}
}
- WPF Dev 16.2版本的DXTabControl的页签标题设置
- WinForm中 Dev 16.2版本的TabControl的页签标题设置
- WPF设置DataGrid列的标题格式
- Delphi PageControl的TabSheet的页签的隐藏设置
- 如何设置ecshop的wap版本首页标题
- DEV TreeList的节点设置
- wpf 倒影的设置
- 继续聊WPF——设置网格控件列标题的样式
- 继续聊WPF——设置网格控件列标题的样式
- tabpanel页签的机制
- js实现的页签
- 一个简单的页签
- 设置编辑器的标题
- DataGridView标题的设置
- 设置DataTable的标题
- 设置渐变的标题
- Ext页签Tablepanel渲染页签的初始化问题
- 【WPF】C#获取运行的窗体标题
- 图像处理基础知识系列之一:边界跟踪之内边界跟踪算法解释
- QThread的用法
- OS使用砖石布局时解决控制台输出的警告?
- 哼哼唧唧学博弈
- Day 7 linux基础命令练习四
- WPF Dev 16.2版本的DXTabControl的页签标题设置
- 高通Vuforia SDK AR
- javascript
- 用JQuery获取输入框中的光标位置
- Microsoft Visual C++ 9.0 is required
- WHUgirls
- 一个简单的alloctor类实现
- Iterator
- MUI框架中实现附近搜索功能