Add a scrollview around the creator configs
This commit is contained in:
parent
7cccdd58a0
commit
35f7d98112
@ -619,65 +619,67 @@
|
|||||||
</StackPanel>
|
</StackPanel>
|
||||||
</Button>
|
</Button>
|
||||||
|
|
||||||
<ItemsControl ItemsSource="{Binding DataContext.CreatorConfigEditor.Rows, RelativeSource={RelativeSource AncestorType=Window}}">
|
<ScrollViewer MaxHeight="264">
|
||||||
<ItemsControl.ItemsPanel>
|
<ItemsControl ItemsSource="{Binding DataContext.CreatorConfigEditor.Rows, RelativeSource={RelativeSource AncestorType=Window}}">
|
||||||
<ItemsPanelTemplate>
|
<ItemsControl.ItemsPanel>
|
||||||
<StackPanel Spacing="6" />
|
<ItemsPanelTemplate>
|
||||||
</ItemsPanelTemplate>
|
<StackPanel Spacing="6" />
|
||||||
</ItemsControl.ItemsPanel>
|
</ItemsPanelTemplate>
|
||||||
<ItemsControl.ItemTemplate>
|
</ItemsControl.ItemsPanel>
|
||||||
<DataTemplate x:DataType="vm:CreatorConfigRowViewModel">
|
<ItemsControl.ItemTemplate>
|
||||||
<Border Background="#F5F8FE"
|
<DataTemplate x:DataType="vm:CreatorConfigRowViewModel">
|
||||||
BorderBrush="#D8E3F4"
|
<Border Background="#F5F8FE"
|
||||||
BorderThickness="1"
|
BorderBrush="#D8E3F4"
|
||||||
CornerRadius="8"
|
BorderThickness="1"
|
||||||
Padding="10">
|
CornerRadius="8"
|
||||||
<Grid ColumnDefinitions="*,Auto,Auto">
|
Padding="10">
|
||||||
<TextBlock Grid.Column="0"
|
<Grid ColumnDefinitions="*,Auto,Auto">
|
||||||
FontWeight="SemiBold"
|
<TextBlock Grid.Column="0"
|
||||||
Foreground="#1F2A44"
|
FontWeight="SemiBold"
|
||||||
Text="{Binding Username}"
|
Foreground="#1F2A44"
|
||||||
VerticalAlignment="Center" />
|
Text="{Binding Username}"
|
||||||
<Button Grid.Column="1"
|
VerticalAlignment="Center" />
|
||||||
Width="28"
|
<Button Grid.Column="1"
|
||||||
Height="28"
|
Width="28"
|
||||||
MinWidth="28"
|
Height="28"
|
||||||
MinHeight="28"
|
MinWidth="28"
|
||||||
Margin="0,0,6,0"
|
MinHeight="28"
|
||||||
Padding="0"
|
Margin="0,0,6,0"
|
||||||
FontSize="14"
|
Padding="0"
|
||||||
FontWeight="SemiBold"
|
FontSize="14"
|
||||||
HorizontalContentAlignment="Center"
|
FontWeight="SemiBold"
|
||||||
VerticalContentAlignment="Center"
|
HorizontalContentAlignment="Center"
|
||||||
Background="#EAF0FB"
|
VerticalContentAlignment="Center"
|
||||||
BorderBrush="#C5D4EC"
|
Background="#EAF0FB"
|
||||||
BorderThickness="1"
|
BorderBrush="#C5D4EC"
|
||||||
CornerRadius="6"
|
BorderThickness="1"
|
||||||
Content="✎"
|
CornerRadius="6"
|
||||||
ToolTip.Tip="Edit"
|
Content="✎"
|
||||||
Command="{Binding EditCommand}" />
|
ToolTip.Tip="Edit"
|
||||||
<Button Grid.Column="2"
|
Command="{Binding EditCommand}" />
|
||||||
Width="28"
|
<Button Grid.Column="2"
|
||||||
Height="28"
|
Width="28"
|
||||||
MinWidth="28"
|
Height="28"
|
||||||
MinHeight="28"
|
MinWidth="28"
|
||||||
Padding="0"
|
MinHeight="28"
|
||||||
FontSize="14"
|
Padding="0"
|
||||||
FontWeight="SemiBold"
|
FontSize="14"
|
||||||
HorizontalContentAlignment="Center"
|
FontWeight="SemiBold"
|
||||||
VerticalContentAlignment="Center"
|
HorizontalContentAlignment="Center"
|
||||||
Background="#FFE8E8"
|
VerticalContentAlignment="Center"
|
||||||
BorderBrush="#E8C5C5"
|
Background="#FFE8E8"
|
||||||
BorderThickness="1"
|
BorderBrush="#E8C5C5"
|
||||||
CornerRadius="6"
|
BorderThickness="1"
|
||||||
Content="×"
|
CornerRadius="6"
|
||||||
ToolTip.Tip="Delete"
|
Content="×"
|
||||||
Command="{Binding DeleteCommand}" />
|
ToolTip.Tip="Delete"
|
||||||
</Grid>
|
Command="{Binding DeleteCommand}" />
|
||||||
</Border>
|
</Grid>
|
||||||
</DataTemplate>
|
</Border>
|
||||||
</ItemsControl.ItemTemplate>
|
</DataTemplate>
|
||||||
</ItemsControl>
|
</ItemsControl.ItemTemplate>
|
||||||
|
</ItemsControl>
|
||||||
|
</ScrollViewer>
|
||||||
</StackPanel>
|
</StackPanel>
|
||||||
|
|
||||||
<TextBlock IsVisible="{Binding HasError}"
|
<TextBlock IsVisible="{Binding HasError}"
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user