Skip to content

Commit

Permalink
chore: styling
Browse files Browse the repository at this point in the history
  • Loading branch information
giard-alexandre committed Oct 1, 2024
1 parent 2f388a9 commit fc7eaaf
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 16 deletions.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion src/DynamicTreeDataGrid/Controls/ColumnEditorWindow.axaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,6 @@
xmlns:controls="clr-namespace:DynamicTreeDataGrid.Controls"
mc:Ignorable="d" SizeToContent="WidthAndHeight" WindowStartupLocation="CenterOwner"
x:Class="DynamicTreeDataGrid.Controls.ColumnEditorWindow"
Title="ColumnEditorWindow">
Title="ColumnEditorWindow" MinWidth="300">
<controls:ColumnListView />
</Window>
31 changes: 16 additions & 15 deletions src/DynamicTreeDataGrid/Controls/ColumnListView.axaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,18 +7,19 @@
mc:Ignorable="d" d:DesignWidth="800" d:DesignHeight="450"
x:Class="DynamicTreeDataGrid.Controls.ColumnListView"
x:DataType="columns:IDynamicColumns">
<ScrollViewer Name="MainContainer" HorizontalAlignment="Stretch">
<!-- Background="Transparent" is required here in order for the DragDrop stuff to work properly. -->
<ItemsRepeater ItemsSource="{Binding .}" DragDrop.AllowDrop="True" Background="Transparent">
<ItemsRepeater.Layout>
<NonVirtualizingStackLayout />
</ItemsRepeater.Layout>
<ItemsRepeater.ItemTemplate>
<DataTemplate x:DataType="columns:IDynamicColumn">
<controls:ColumnItemView ToolTip.Tip="{Binding Name}"
PointerPressed="OnPointerPressed" />
</DataTemplate>
</ItemsRepeater.ItemTemplate>
</ItemsRepeater>
</ScrollViewer>
</UserControl>
<ScrollViewer Name="MainContainer" HorizontalAlignment="Stretch">
<!-- Background="Transparent" is required here in order for the DragDrop stuff to work properly. -->
<ItemsRepeater ItemsSource="{Binding .}" DragDrop.AllowDrop="True"
Background="Transparent" Margin="10">
<ItemsRepeater.Layout>
<NonVirtualizingStackLayout />
</ItemsRepeater.Layout>
<ItemsRepeater.ItemTemplate>
<DataTemplate x:DataType="columns:IDynamicColumn">
<controls:ColumnItemView ToolTip.Tip="{Binding Name}" Padding="5"
PointerPressed="OnPointerPressed" />
</DataTemplate>
</ItemsRepeater.ItemTemplate>
</ItemsRepeater>
</ScrollViewer>
</UserControl>

0 comments on commit fc7eaaf

Please sign in to comment.