码迷,mamicode.com
首页 >  
搜索关键字:datatemplate    ( 99个结果
搭建Wpf框架(8) —— 3D展示墙
源码是从3DWall改造的,忘了哪下载的了,没办法贴上原链接了。 1.将UseControl改造成Control控件,这样可以在用的地方改模板即可。(内容控件的DataTemplate) 2.将Wall显示控件改成类似与ItemSource的绑定 3.实现了横向排列和竖向排列。 4.3D部分没有改, ...
分类:Windows程序   时间:2021-05-24 06:05:33    阅读次数:0
WPF : ControlTemplate和DataTemplate的区别
ControlTemplate用于描述控件本身. 使用TemplateBinding来绑定控件自身的属性, 比如{TemplateBinding Background}DataTemplate用于描述控件的Content. 使用Binding来绑定数据对象的属性, 比如{Binding Person ...
分类:Windows程序   时间:2021-05-03 12:23:08    阅读次数:0
WPF源代码分析系列一:剖析WPF模板机制的内部实现(四)
(注:本文是《剖析WPF模板机制的内部实现》系列文章的第三篇,查看上一篇文章请点这里) 4. DataTemplate 上一篇文章我们讨论了ItemsPanelTemplate类,这一篇和下一篇将讨论DataTemplate类。 DataTemplate类型的变量非常多,主要有: ComboBox. ...
分类:Windows程序   时间:2020-12-16 11:52:50    阅读次数:7
wpf listbox分组显示
###1.Xaml部分 <Grid> <ListBox Name="lbMain" ItemsSource="{Binding CollectionModelFile}"> <ListBox.ItemTemplate> <DataTemplate> <StackPanel Height="30" O ...
分类:Windows程序   时间:2020-09-16 12:45:20    阅读次数:66
WPF button change content size
<Button Name="button" Content="Hello" Height="100" Width="200" Click="button_Click_2"> <Button.ContentTemplate> <DataTemplate> <Viewbox> <TextBlock>My ...
分类:Windows程序   时间:2020-07-21 14:12:18    阅读次数:92
【WPF】DataGrid 的CheckBox列单击不能选中,需要点击两次的问题
修改列的模板,不使用自带的CheckBox列 <DataGridTemplateColumn Width="30"> <DataGridTemplateColumn.CellTemplate> <DataTemplate> <CheckBox IsChecked="{Binding IsChecke ...
分类:Windows程序   时间:2020-07-17 11:40:23    阅读次数:117
WPF DataGrid CheckBox 多选 反选 全选
原文:WPF DataGrid CheckBox 多选 反选 全选 效果图 实现此效果的必要关键是 Style+DataTemplate 关键代码: ... ...
分类:Windows程序   时间:2020-05-06 01:49:10    阅读次数:193
WPF 使用 Expression.Controls和Expression.Drawing绘制圆形刻度盘
<ec:PathListBox x:Name="numberPathListBox" IsHitTestVisible="False"> <ec:PathListBox.ItemTemplate> <DataTemplate> <TextBlock Foreground="White" Text=" ...
分类:Windows程序   时间:2020-04-18 15:40:38    阅读次数:100
DevExpress中 的DataGrid每一行根据其类型显示控件的种类
public class ValueSelector : DataTemplateSelector { public ValueSelector() { } public override DataTemplate SelectTemplate(object item, DependencyObje ...
分类:其他好文   时间:2020-02-22 12:21:09    阅读次数:72
WPF MVVM ComboBox(in DataGrid)触发事件SelectionChanged, 通知到ViewModel.
1.View <DataGrid> <DataGrid.Resources> <DataTemplate x:Key="ComputeRuleColumnTemplate"> <ComboBox x:Name='ComputeRuleComboBox'> <i:Interaction.Trigger ...
分类:Windows程序   时间:2020-02-13 15:10:04    阅读次数:300
99条   1 2 3 4 ... 10 下一页
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!