比例尺随级别长度变化、datagrid的biding属性
设置TargetWidth即可。
<sdk:DataGrid.Columns> <sdk:DataGridTextColumn Header="镇" Binding="{Binding Attributes[XZQH]}"></sdk:DataGridTextColumn> <sdk:DataGridTextColumn Header="名称" Binding="{Binding Attributes[SPN]}"/> <sdk:DataGridTextColumn Header="地灾类型" Binding="{Binding Attributes[JDLX]}"/> <sdk:DataGridTextColumn Header="潜在经济损失" Binding="{Binding Null}"></sdk:DataGridTextColumn> <sdk:DataGridTextColumn Header="监测人" Binding="{Binding Null}"></sdk:DataGridTextColumn> <sdk:DataGridTextColumn Header="监测人联系电话" Binding="{Binding Null}"></sdk:DataGridTextColumn> </sdk:DataGrid.Columns>
必须为每个字段biding,不然会报错