腾讯云
开发者社区
文档
建议反馈
控制台
登录/注册
首页
学习
活动
专区
圈层
工具
MCP广场
文章/答案/技术大牛
搜索
搜索
关闭
发布
搜索
关闭
文章
问答
(9999+)
视频
开发者手册
清单
用户
专栏
沙龙
全部问答
原创问答
Stack Exchange问答
更多筛选
回答情况:
全部
有回答
回答已采纳
提问时间:
不限
一周内
一月内
三月内
一年内
问题标签:
未找到与 相关的标签
筛选
重置
1
回答
按钮“{x:Type
TargetType
=}”和
TargetType
=“按钮”有什么区别?
TargetType
="{x:Type Button}"
TargetType
="Button"
浏览 0
提问于2012-11-26
得票数 61
回答已采纳
1
回答
WPF to Silverlight,解决
TargetType
问题
看了这里的一些帖子,我似乎不能使用
TargetType
="{x:Type my:DataGridCell}",答案是简单地使用
TargetType
="my:DataGridCell",但同样不起作用。gridResults_SelectionChanged" ItemsSource="{Binding}"> <Style
TargetType
浏览 0
修改于2009-11-12
得票数 0
回答已采纳
2
回答
Silverlight:
TargetType
的多个值?
我可以在Silverlight 4中定义如下样式: <Setter Property
TargetType
是否可以有多个值,或者以某种方式将这些样式向下传播到树中?
浏览 1
修改于2012-03-15
得票数 2
回答已采纳
1
回答
x:Key &
TargetType
风格
使用此语句是否有任何差异(或优点):省略x:Key属性吗?
浏览 4
修改于2012-03-15
得票数 12
2
回答
WPF ControlTemplate
TargetType
匹配
当我将ControlTemplate
TargetType
设置为my:myComboBox时,它可以正常工作,但是VS会显示一个警告:"myComboBox ControlTemplate
TargetType
myDependencyPropProperty, value); } }XAML: <Style x:Key="myComboBox"
TargetType
/> <
浏览 0
提问于2014-09-27
得票数 0
1
回答
WPF DataGrid RowHeader样式
TargetType
? 我可以设置这个"Red“元素的样式吗? 我可以在DataGridColumnHeader,DataGridRowHeader上设置样式,但是我不知道如何在“红色”元素上设置样式。
浏览 121
修改于2019-03-20
得票数 0
回答已采纳
2
回答
样式
TargetType
属性问题
以下
TargetType
规范之间有什么区别?<Style
TargetType
="{x:Type Button}" ...<Style
TargetType
="Button" ...
浏览 0
修改于2016-02-01
得票数 3
回答已采纳
1
回答
在WPF中设置样式
TargetType
这两种设置样式的
TargetType
的方法有区别吗?<Style
TargetType
="Grid"></Style> <Style
TargetType
="{x:Type Grid}"></Style>
浏览 0
提问于2013-12-19
得票数 3
回答已采纳
1
回答
获取特定
TargetType
的样式列表
我想要获得适用于特定控件类型的样式列表。我想做一些类似以下代码的事情,但不必指定键名并获得适用资源的列表。这个是可能的吗?Style style = (Style)Application.Current.TryFindResource(key);
浏览 0
提问于2011-10-11
得票数 0
回答已采纳
7
回答
TypeConverter与
TargetType
.Parse之争
据我所知,在.NET中至少有3种转换数据类型的方法: var conv = System.ComponentModel.TypeDescriptor.GetConverter(typeof(int));使用使用目标类型的方法: 当使用哪种方法在.NET基数据类型之
浏览 7
提问于2011-08-10
得票数 50
回答已采纳
4
回答
用不同的
TargetType
设置样式?
它有一个指定目标(TextBlock)的x:
TargetType
。是否可以将此样式应用于包含TextBlock的控件,并使该控件中的所有TextBlock元素都应用该样式? 谢谢,罗伯特
浏览 6
修改于2012-03-15
得票数 0
回答已采纳
1
回答
如何在WPF中将
TargetType
设置为此?
问题是,为了指出正在开发的
TargetType
,我不知道如何设置样式的UserControl。下面是一个示例,它可能是这样的: <Style
TargetType
="this"></UserControl.Resources
浏览 2
提问于2013-07-31
得票数 3
回答已采纳
3
回答
使用<Style
TargetType
=时无法强制转换错误
我正在尝试使用资源字典和style
TargetType
属性来更改解决方案中按钮的外观。当加载第一个按钮时,我在运行时收到一个强制转换错误。xaml/presentation" <Style <em
浏览 1
修改于2013-03-01
得票数 3
回答已采纳
1
回答
app.xaml中线路的
TargetType
Bottom" Stroke="Blue" StrokeThickness="5"/> <Style x:Key="queuePortraitLine"
TargetType
浏览 1
修改于2012-12-28
得票数 0
回答已采纳
3
回答
在MultiBinding中管理绑定的
targetType
RequiresDoubleTargetConverter : IValueConverter public object Convert(object value, Type
targetType
parameter, CultureInfo culture) // I am looking for a way to manually ensure that "
targetType
if (
targetType
!return (double)value -
浏览 0
修改于2017-03-16
得票数 3
3
回答
TargetType
不匹配元素的类型
我为
TargetType
of Button定义了一个简单的Button;但是将样式设置为按钮会让人感到意外。<Window> <Style x:Key="buttonStyle"
TargetType
="{x:Type Button}">Content="1" FocusVisualStyle="{StaticResource buttonStyle}"/>
浏览 8
修改于2015-06-12
得票数 9
回答已采纳
2
回答
如何在
targetType
中使用IValueConverter参数?
IValueConverter,我想用它来做简单的数学,它有以下Convert函数: object value,有人知道如何在这个上下文中使用
targetType
参数吗?
浏览 1
修改于2020-08-18
得票数 7
回答已采纳
1
回答
TargetType
ShellContent风格毛伊岛
我的问题是我没有在我的ShellContent中看到任何
TargetType
属性<ShellContent Title="TITLE1" Route="Route2"我想要这种风格的东西在我的App.xaml <Style
TargetType
浏览 4
修改于2022-11-15
得票数 0
3
回答
在iOS中构建Moya
TargetType
我已经创建了这个
TargetType
var URLEscapedString: String { case discoverMovieDetail(moive: Movie) extension TMDb:
TargetType
浏览 1
修改于2018-12-04
得票数 0
1
回答
WPF/XAML风格的
TargetType
="MenuItem“不工作
我想在context菜单中显示/隐藏菜单标题旁边的小复选标记: 我如何通过<Style
TargetType
="MenuItem">来处理这个问题。不知怎么不管用,我也不知道为什么。-。这是我的代码: <Style
TargetType
="MenuItem"> <DataTrigger
浏览 2
提问于2015-02-11
得票数 2
第 2 页
第 3 页
第 4 页
第 5 页
第 6 页
第 7 页
第 8 页
第 9 页
第 10 页
第 11 页
点击加载更多
领券