腾讯云
开发者社区
文档
建议反馈
控制台
登录/注册
首页
学习
活动
专区
工具
TVP
最新优惠活动
文章/答案/技术大牛
搜索
搜索
关闭
发布
精选内容/技术社群/优惠产品,
尽在小程序
立即前往
文章
问答
(9999+)
视频
沙龙
1
回答
如
何在
自定义
DataGrid
上
设置
DataGridRow
的
样式
和
模板
、
我有一个
自定义
的
DataGrid
元素。Theme.xml中描述
的
此元素
的
Stle
和
模板
: <Style TargetType="{x:Type local:MyDataGrid}" BasedOn="{StaticResource {x:Type-- ... --> </Setter.Value>
浏览 39
提问于2020-11-02
得票数 0
1
回答
在Silverlight中重用
自定义
样式
、
、
、
、
通过修改RowStyle
的
DataGrid
,我创建了一个
自定义
网格,当鼠标悬停在行
的
上方时,它将在行
的
末尾显示一些按钮:我根据默认
样式
为
DataGridRow
创建了一个新
样式
。我不知道如何处理这个问题,因为我想从
样式
中提取
的
东西是
样式
中
的
控件(按钮)
的
集合。 到目前为止,我
的
方法是创建一个从MyDataGrid派生
的
浏览 1
提问于2009-08-19
得票数 2
1
回答
当使用带
DataGridRow
的
DataGridTemplateColumn时,TextBox不会在TextBox上选择
、
我有一个带有
模板
列
的
DataGrid
,它使用TextBoxes。这些TextBoxes具有通过
样式
分配
的
自定义
ContextMenu。问题是,当我在
模板
列TextBoxes中“右键单击”打开上下文菜单时,
DataGridRow
不会在ContextMenu打开时进行选择。不过,它适用于左键(TextBox聚焦
和
DataGridRow
选择)。>我在这
浏览 2
提问于2020-11-24
得票数 0
回答已采纳
1
回答
WPF
DataGrid
行以编程方式双击事件
、
、
我需要以编程方式创建一个
DataGrid
,并需要向其添加一个双击行事件。在C#中如何做到这一点?我找到了这个;虽然这对我不起作用,因为我将
DataGrid
.ItemsSource
浏览 1
提问于2014-04-01
得票数 39
回答已采纳
2
回答
数据行
上
的
圆角
、
、
在我
的
wpf项目中,我有以下内容:<<e
浏览 1
提问于2019-12-30
得票数 0
回答已采纳
1
回答
跨越整行
的
DataGrid
ProgressBar
、
、
、
我在一列中显示了一个工作
的
ProgressBar。但是需要它来跨越整个一行。如何才能做到这一点?这是工作
的
,ProgressBar在单列中: <SolidColorBrush x:Key="DgGridLineBrush" Color</Setter.Value> </Style> </UserControl
浏览 0
提问于2019-06-01
得票数 1
回答已采纳
1
回答
自定义
DataGrid
控件中子控件
的
默认
样式
、
、
、
、
这就像我期望
的
那样。 我不明白
的
是如何正确地声明
DataGrid
使用
的
子控件
的
默认
样式
,
如
DataGridRow
、DataGridColumn或DataGridColumnHeader。并显式地
设置
我
的
CellStyle
的
local:
DataGrid
(否则由于某种原因,它仍然使用标准
的
WPF
样式
(?)WPF
DataGrid
时
浏览 1
提问于2016-09-26
得票数 0
2
回答
当遇到某个值时,如何更改
DataGrid
行
的
颜色?
、
、
我有以下
DataGrid
: <
DataGrid
.Columns>Width="350*" </DataGridTextColumn> </
DataGrid</e
浏览 0
提问于2013-04-08
得票数 2
回答已采纳
1
回答
禁用以编程方式在xaml中创建
的
样式
触发器
、
、
我正在处理一个c# WPF项目,我使用一个
样式
触发器根据其中一个单元格值对每一行
的
背景色进行
样式
设置
。 <Style TargetType="
DataGridRow
"> </Style.Triggers>
浏览 3
提问于2013-08-16
得票数 2
回答已采纳
2
回答
WPF
DataGrid
标头
样式
、
、
、
、
我想为WPF
DataGrid
创建一个
自定义
样式
的
头,但我不知道是否有可能做我想要
的
,如果这是我应该如何做的确切方式。谢谢!
浏览 25
提问于2015-10-07
得票数 1
1
回答
如何通过MultiDataTrigger在WPF
DataGrid
上
为所选行提供备用背景色
、
、
我想要显示奇数与偶数选择
的
行与不同
的
背景颜色(灰色)在一个WPF
DataGrid
。我已经通过
DataGrid
本身使用了RowBackground="#DDD"、AlternatingRowBackground="#EEE"
和
AlternationCount=2属性来替换未选中行
的
颜色我已经在StackOverflow
上
浏览了很多线程,但是找不到为什么Style.Triggers没有效果。我使用这个attached propert
浏览 21
提问于2020-10-02
得票数 1
回答已采纳
1
回答
在触发器上格式化Wpf AlternatingRowBackground
、
、
我想改变基于AlternatingRowBackground
的
dataTrigger颜色。我从IDE中得到了一个错误,它不会生成(参见下面的xaml )。Error:无法找到类型'System.Windows.Controls.
DataGridRow
‘
上
的
样式
属性'AlternatingRowBackground’ <Style TargetType="{x:Type
DataGridRow
}"> &
浏览 3
提问于2012-01-24
得票数 2
回答已采纳
1
回答
尝试将多个
样式
应用于
DataGridRow
、
我有WPF应用程序,我在App.xaml中创建了App.xaml
样式
来应用整个应用程序。App.xaml <Setter Property="HorizontalGridLinesBrushValue="30" /> <Setter.
浏览 2
提问于2016-03-30
得票数 0
回答已采纳
1
回答
只更改选定行
的
HorizontalGridLinesBrush
、
、
、
在WPF‘
DataGrid
’中,水平网格线
的
颜色可以通过HorizontalGridLinesBrush属性进行修改。有些项
的
布尔属性
设置
为true,因此我希望将水平网格线刷
设置
为另一种颜色来突出显示。 是否可以更改水平网格线
的
颜色仅适用于塞坦行?
浏览 0
提问于2014-11-14
得票数 2
回答已采纳
1
回答
WPF:
DataGrid
的
ListViewItem等效项
、
、
、
我有一些代码可以做到 <Setter Property="XX" Value="true" />这在ListViews
上
的
效果与预期一致然而,我想用
DataGrid
替换ListView,并且很难找到与
Datagrid
对应
的
ListViewItem。起初,我希望
Datagrid
项继
浏览 0
提问于2011-10-07
得票数 0
回答已采纳
1
回答
BaseOn工作不正常
、
我试图继承
Datagrid
的
Mahapp
样式
,我已经为
Datagrid
的
行创建了如下
样式
: <Style x:Key="
DataGridRow
"> <Style TargetType="
DataGridRow
" BasedOn=
浏览 0
提问于2017-09-17
得票数 0
回答已采纳
3
回答
设置
数据绑定数据网格
的
行属性
、
我有一个绑定到对象
的
DataGrid
(使用MVVM模式)。<
DataGrid
ItemsSource="{Binding Path=RecordSet}" IsReadOnly="True" <
DataGrid
.Columns> <Dat
浏览 0
提问于2010-12-09
得票数 2
1
回答
如何为
DataGrid
和
子控件获取WPF默认
样式
和
ControlTemplates?
、
、
、
我需要对我
的
应用程序
的
所有主要ControlTemplates
的
默认
样式
和
UserControls进行几次更改。虽然获得
DataGrid
本身
的
样式
和
模板
当然很容易,但我仍然需要
DataGridRow
、DataGridRowHeader、DataGridColumnHeader、DataGridCell、.我甚至不知道所有可能
的
子元素像这样
的
工具没有列出
Da
浏览 1
提问于2015-12-16
得票数 0
回答已采纳
8
回答
如
何在
DataGrid
中
设置
选定行
的
颜色
、
、
、
DataGrid
中选定行
的
默认背景颜色太深,以至于我无法阅读它。有没有覆盖它
的
方法?我试过了 <Style TargetType="{x:Type dg:
DataGridRow
}"> </Trigge
浏览 1
提问于2009-08-03
得票数 135
回答已采纳
7
回答
WPF
DataGrid
隐藏行或取消选择行
、
我有一个
DataGrid
who's RowDetails被
设置
为在选择(RowDetailsVisibilityMode="VisibleWhenSelected").时显示现在我希望能够摆脱它!我用下面的代码在行详细信息
上
放置了一个关闭按钮: { Button button = sender as Button;
DataGr
浏览 1
提问于2010-03-18
得票数 11
回答已采纳
点击加载更多
扫码
添加站长 进交流群
领取专属
10元无门槛券
手把手带您无忧上云
相关
资讯
KingDraw绘图技巧丨各种绘图相关设置,看这一篇就足够了!
小斯想工具箱:V0.20,自定义真样式
Google Code Prettify 代码高亮插件使用小结
如何一次性生成大量结构相同、内容不同的二维码
如何优雅的使用KplerPAT进行无代码编程
热门
标签
更多标签
云服务器
ICP备案
腾讯会议
云直播
对象存储
活动推荐
运营活动
广告
关闭
领券