优化datagrid
This commit is contained in:
1 parent
e12c419ef3
commit
233ec5d58d
8 files changed
+429
-57
No files matched your search
@@ -18,14 +18,17 @@
|
||||
mc:Ignorable="d">
|
||||
|
||||
<Grid Margin="0,0,0,0">
|
||||
<DataGrid
|
||||
<local:StyledDataGrid
|
||||
Height="Auto"
|
||||
d:ItemsSource="{d:SampleData ItemCount=10}"
|
||||
hc:DataGridAttach.ShowRowNumber="True"
|
||||
local:DataGridHelper.ShowBorder="False"
|
||||
GridLinesVisibility="All"
|
||||
ItemsSource="{Binding Data}"
|
||||
RowHeaderWidth="30"
|
||||
Style="{StaticResource DefaultDataGridStyle}">
|
||||
<DataGrid.Columns>
|
||||
SelectedRowForeground="White"
|
||||
SelectionMode="Extended"
|
||||
ShowCheckBox="True"
|
||||
ShowRowNumber="True">
|
||||
<local:StyledDataGrid.Columns>
|
||||
<DataGridTextColumn
|
||||
Width="1*"
|
||||
MinWidth="100"
|
||||
@@ -48,11 +51,11 @@
|
||||
Width="1*"
|
||||
MinWidth="100"
|
||||
Binding="{Binding Qty, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged}"
|
||||
CellStyle="{DynamicResource DefaultNumberCellStyle}"
|
||||
CellStyle="{DynamicResource StyledNumberCellStyle}"
|
||||
Header="数字"
|
||||
HeaderStyle="{DynamicResource DefaultNumberCellHeaderStyle}"
|
||||
IsReadOnly="True" />
|
||||
</DataGrid.Columns>
|
||||
</DataGrid>
|
||||
</local:StyledDataGrid.Columns>
|
||||
</local:StyledDataGrid>
|
||||
</Grid>
|
||||
</tf:WindowBase>
|
||||
Reference in new issue
Block a user