From 95a8241bb00b2cb35d9b6730887cf3711bb2e3c8 Mon Sep 17 00:00:00 2001
From: guanguanchuangyu <3246907890@qq.com>
Date: Sun, 4 Aug 2019 16:10:55 +0800
Subject: [PATCH] ggcy-add warning info of DataGrid
---
.../native_controls/dataGrid/index.md | 45 +++++++++++++++++-
.../images/DataGrid-Warning01.png | Bin 0 -> 4238 bytes
2 files changed, 44 insertions(+), 1 deletion(-)
create mode 100644 doc/source/handycontrol/native_controls/images/DataGrid-Warning01.png
diff --git a/doc/source/handycontrol/native_controls/dataGrid/index.md b/doc/source/handycontrol/native_controls/dataGrid/index.md
index 7ea36f18..6733d645 100644
--- a/doc/source/handycontrol/native_controls/dataGrid/index.md
+++ b/doc/source/handycontrol/native_controls/dataGrid/index.md
@@ -2,6 +2,19 @@
title: DataGrid 数据表格
---
+**HandyControl中自带DataGrid相关样式**
+
+| style名称 | 所属类型 | 用途描述 |
+| :------------------------ | :------------------------------------------ | :----------------------------------------------------- |
+| RowHeaderGripperStyle | Thumb | RowHeader的可拖拽样式 |
+| ColumnHeaderGripperStyle | Thumb | ColumnHeader可拖拽样式 |
+| DataGridCellStyle | DataGridCell | DataGrid数据列样式 |
+| DataGridRowStyle | DataGridRow | DataGrid数据行样式 |
+| DataGridColumnHeaderStyle | DataGridColumnHeader | DataGrid列头样式 |
+| DataGridRowHeaderStyle | DataGridRowHeader | DataGrid行头样式 |
+| TextBlockComboBoxStyle | controls:DataGridAttach.ComboBoxColumnStyle | DataGrid附加属性文本框下拉列的非编辑模式下文本显示样式 |
+| DataGridTextColumnStyle | TextBlock | DataGrid文本列样式 |
+
{% note info no-icon %}
用例:
@@ -29,4 +42,34 @@ title: DataGrid 数据表格
{% endcode %}
![ContextMenu](https://raw.githubusercontent.com/NaBian/HandyControl/master/Resources/DataGrid.png)
-{% endnote %}
\ No newline at end of file
+{% endnote %}
+
+**常见问题:**
+{% note warning no-icon%}
+对于文本显示列`DataGridTextColumn`需要设定文本内容`水平居中`或者`水平居右`,而不是HandyControl中设定的样式默认显示为`居左`时,需要继承`DataGridCellStyle`重写`HorizontalContentAlignment` 属性为`Center` 或`Right` 需要注意的是,此方式仅仅使用与引入了HandControl资源样式的项目,普通原生DataGrid使用该方式无效。
+
+用例如下:
+
+{% code %}
+
+样式:
+
+
+xaml中的使用:
+
+
+
+
+
+
+
+
+{% endcode %}
+
+效果如下:
+
+![DataGridWarning01](../images/DataGrid-Warning01.png)
+
+{% endnote %}
diff --git a/doc/source/handycontrol/native_controls/images/DataGrid-Warning01.png b/doc/source/handycontrol/native_controls/images/DataGrid-Warning01.png
new file mode 100644
index 0000000000000000000000000000000000000000..f1d39abe8f5d84797393de30bcbd9a7de33ff718
GIT binary patch
literal 4238
zcmbW5c|276|Hn_Hrje+Gv?!F3ER`*lv6LlYvQ5`E(G?}TNtT&0t~DW9??sG#`J%!M
zGsYgGNMUS4!q-05G0ZT2=X-DWaUZ|mGt~
z9$Hf6Ikzf-pAWxN5>14~;N0QeOROMV+pkw1o$TKB`u9%AFI`uiyH2*PUC*5E?kQrA
zN$h%jN~+$S<9^)f9>9rml!2^;Jd1H2;Ebh@j}LCxypYodhk7YEJ>q8WUfhrc8jOsn
z3$YgNC-hT!1|HjM2m^@{;tGS7k9AWKzy;epE3Bf~2Zx{R7LEcy;vtBLtyT#A)pU&{JMWIlwY%Uke>bLQz>F@8CHsOP%ezIkaZwUwp*m7X9QO3$~
zFJAmit;TT{)mTg#s?D7Pjuj%}S-n#Mbl$uRZxPj=<4ydelK0XH2?@tJs%mO&n$vwq
z6dHwLT3(icOg47fvtBJ~n5wC$R2BK~s7iU<;1l4d?s7S0MMaP3*dZC)b!emnb`$@a
zhxo4)D&rhA{-|2edgFeHNmeMnKA!fvi8O|#FueTyNSx(n!Ns>c+I*0KV(%IT-pp$G
zwN4_`G+@v3>=Q9&DV=D+#CJD!##v)HKabj#@Fg~Pd##(OX+2&*N>=t2mPd?4;Y%Op
z(5M^!gZ_M3_l_LkqiYMdR52{a3(QGruL0t_7<<-7+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