chore: minor modify.
This commit is contained in:
1 parent
1439a70979
commit
43e53d98de
2 files changed
+7
-7
No files matched your search
@@ -7,9 +7,9 @@
|
|||||||
xmlns:ex="clr-namespace:HandyControlDemo.Tools.Extension"
|
xmlns:ex="clr-namespace:HandyControlDemo.Tools.Extension"
|
||||||
xmlns:hc="https://handyorg.github.io/handycontrol">
|
xmlns:hc="https://handyorg.github.io/handycontrol">
|
||||||
<hc:TransitioningContentControl>
|
<hc:TransitioningContentControl>
|
||||||
<TabControl Style="{StaticResource TabControlInLine}">
|
<TabControl Style="{StaticResource TabControlInLine}" BorderThickness="0,1,0,0">
|
||||||
<TabItem Header="{ex:Lang Key={x:Static langs:LangKeys.Common}}">
|
<TabItem Header="{ex:Lang Key={x:Static langs:LangKeys.Common}}">
|
||||||
<DataGrid hc:DataGridAttach.CanUnselectAllWithBlankArea="True" HeadersVisibility="Column" RowHeaderWidth="60" AutoGenerateColumns="False" ItemsSource="{Binding DataList}">
|
<DataGrid hc:DataGridAttach.CanUnselectAllWithBlankArea="True" HeadersVisibility="Column" RowHeaderWidth="60" AutoGenerateColumns="False" ItemsSource="{Binding DataList}" Margin="8">
|
||||||
<DataGrid.RowHeaderTemplate>
|
<DataGrid.RowHeaderTemplate>
|
||||||
<DataTemplate>
|
<DataTemplate>
|
||||||
<CheckBox IsChecked="{Binding IsSelected,RelativeSource={RelativeSource AncestorType=DataGridRow}}"/>
|
<CheckBox IsChecked="{Binding IsSelected,RelativeSource={RelativeSource AncestorType=DataGridRow}}"/>
|
||||||
@@ -32,7 +32,7 @@
|
|||||||
</DataGrid>
|
</DataGrid>
|
||||||
</TabItem>
|
</TabItem>
|
||||||
<TabItem Header="{ex:Lang Key={x:Static langs:LangKeys.ShowRowNumber}}">
|
<TabItem Header="{ex:Lang Key={x:Static langs:LangKeys.ShowRowNumber}}">
|
||||||
<DataGrid HeadersVisibility="All" RowHeaderWidth="60" AutoGenerateColumns="False" ItemsSource="{Binding DataList}" hc:DataGridAttach.ShowRowNumber="True">
|
<DataGrid HeadersVisibility="All" RowHeaderWidth="60" AutoGenerateColumns="False" ItemsSource="{Binding DataList}" hc:DataGridAttach.ShowRowNumber="True" Margin="8">
|
||||||
<DataGrid.Columns>
|
<DataGrid.Columns>
|
||||||
<DataGridTemplateColumn Width="60" CanUserResize="False">
|
<DataGridTemplateColumn Width="60" CanUserResize="False">
|
||||||
<DataGridTemplateColumn.CellTemplate>
|
<DataGridTemplateColumn.CellTemplate>
|
||||||
@@ -49,7 +49,7 @@
|
|||||||
</DataGrid>
|
</DataGrid>
|
||||||
</TabItem>
|
</TabItem>
|
||||||
<TabItem Header="Small">
|
<TabItem Header="Small">
|
||||||
<DataGrid Style="{StaticResource DataGrid.Small}" HeadersVisibility="All" RowHeaderWidth="60" AutoGenerateColumns="False" ItemsSource="{Binding DataList}" hc:DataGridAttach.ShowRowNumber="True">
|
<DataGrid Style="{StaticResource DataGrid.Small}" HeadersVisibility="All" RowHeaderWidth="60" AutoGenerateColumns="False" ItemsSource="{Binding DataList}" hc:DataGridAttach.ShowRowNumber="True" Margin="8">
|
||||||
<DataGrid.Columns>
|
<DataGrid.Columns>
|
||||||
<DataGridTemplateColumn Width="60" CanUserResize="False">
|
<DataGridTemplateColumn Width="60" CanUserResize="False">
|
||||||
<DataGridTemplateColumn.CellTemplate>
|
<DataGridTemplateColumn.CellTemplate>
|
||||||
|
|||||||
@@ -6,9 +6,9 @@
|
|||||||
xmlns:ex="clr-namespace:HandyControlDemo.Tools.Extension"
|
xmlns:ex="clr-namespace:HandyControlDemo.Tools.Extension"
|
||||||
Background="{DynamicResource RegionBrush}">
|
Background="{DynamicResource RegionBrush}">
|
||||||
<hc:TransitioningContentControl>
|
<hc:TransitioningContentControl>
|
||||||
<TabControl Style="{StaticResource TabControlInLine}">
|
<TabControl Style="{StaticResource TabControlInLine}" BorderThickness="0,1,0,0">
|
||||||
<TabItem Header="Default">
|
<TabItem Header="Default">
|
||||||
<ListView ItemsSource="{Binding DataList}">
|
<ListView ItemsSource="{Binding DataList}" Margin="8">
|
||||||
<ListView.View>
|
<ListView.View>
|
||||||
<GridView>
|
<GridView>
|
||||||
<GridViewColumn Width="80" Header="{ex:Lang Key={x:Static langs:LangKeys.Index}}" DisplayMemberBinding="{Binding Index}" />
|
<GridViewColumn Width="80" Header="{ex:Lang Key={x:Static langs:LangKeys.Index}}" DisplayMemberBinding="{Binding Index}" />
|
||||||
@@ -19,7 +19,7 @@
|
|||||||
</ListView>
|
</ListView>
|
||||||
</TabItem>
|
</TabItem>
|
||||||
<TabItem Header="Small">
|
<TabItem Header="Small">
|
||||||
<ListView ItemsSource="{Binding DataList}" Style="{StaticResource ListView.Small}">
|
<ListView ItemsSource="{Binding DataList}" Style="{StaticResource ListView.Small}" Margin="8">
|
||||||
<ListView.View>
|
<ListView.View>
|
||||||
<GridView>
|
<GridView>
|
||||||
<GridViewColumn Width="80" Header="{ex:Lang Key={x:Static langs:LangKeys.Index}}" DisplayMemberBinding="{Binding Index}" />
|
<GridViewColumn Width="80" Header="{ex:Lang Key={x:Static langs:LangKeys.Index}}" DisplayMemberBinding="{Binding Index}" />
|
||||||
|
|||||||
Reference in new issue
Block a user