WPF

https://msdn.microsoft.com/en-us/library/ms752347(v=vs.110).aspx

 

https://familyshow.codeplex.com/SourceControl/latest

 

1. WPF中auto和*区别 reference: http://blog.csdn.net/jacky_zh/article/details/52669941

  a. auto表示自适应显示内容的宽度,如自适应文本的宽度,文本有多长,控件就显示多长

 b. *表示按比例分配宽度,这些数字可以是小数,如果没有数字,默认是1, ps:auto和*可以混合使用~~~

<ColumnDefinition Width="3*" />
<ColumnDefinition Width="7*" />

 

enter image description here

 

 

这些数字可以是小数.
如果数字缺省,则默认是1.
在这个例子中, 列2的宽度是列1的1.5倍.

 

2. DataTemplate

https://msdn.microsoft.com/en-us/library/ms742521.aspx

 

3. datagridcomboboxcolumn, how to bind itemssource?

https://blogs.msdn.microsoft.com/vinsibal/2008/12/17/wpf-datagrid-dynamically-updating-datagridcomboboxcolumn/

http://stackoverflow.com/questions/5409259/binding-itemssource-of-a-comboboxcolumn-in-wpf-datagrid/5409984#5409984

 

4. tooltips

http://www.wpf-tutorial.com/control-concepts/tooltips/

 

5. scroll viewer

http://stackoverflow.com/questions/2922303/mouse-scroll-not-working-in-a-scroll-viewer-with-a-wpf-datagrid-and-additional-u

 

6. wpf msdn

https://msdn.microsoft.com/en-us/library/ms754130(v=vs.110).aspx

https://msdn.microsoft.com/en-us/library/mt149842.aspx

 

posted @ 2017-01-04 16:47  chu夏  阅读(156)  评论(1编辑  收藏  举报