mirror of
https://gitee.com/chinware/atomui.git
synced 2024-11-29 18:38:16 +08:00
!2 feat: ShowCaseItem添加边框&调整间距
Merge pull request !2 from ruoyu/ruoyu/ShowCaseItem
This commit is contained in:
commit
8b0b9f5ed6
@ -47,7 +47,16 @@ public class ShowCaseItem : ContentControl
|
||||
Text = Description,
|
||||
TextWrapping = TextWrapping.Wrap
|
||||
});
|
||||
Content = mainLayout;
|
||||
|
||||
var outerBorder = new Border()
|
||||
{
|
||||
BorderBrush = new SolidColorBrush(new Color(10, 5, 5, 5)),
|
||||
BorderThickness = new Thickness(1),
|
||||
Padding = new Thickness(20),
|
||||
Child = mainLayout
|
||||
};
|
||||
|
||||
Content = outerBorder;
|
||||
}
|
||||
|
||||
protected override void OnAttachedToLogicalTree(LogicalTreeAttachmentEventArgs e)
|
||||
|
@ -33,13 +33,13 @@ public class ShowCasePanel : Control
|
||||
_leftContainer = new StackPanel()
|
||||
{
|
||||
Orientation = Orientation.Vertical,
|
||||
Spacing = 20,
|
||||
Spacing = 10,
|
||||
Margin = new Thickness(0, 0, 10, 0),
|
||||
};
|
||||
_rightContainer = new StackPanel()
|
||||
{
|
||||
Orientation = Orientation.Vertical,
|
||||
Spacing = 20,
|
||||
Spacing = 10,
|
||||
};
|
||||
mainLayout.Children.Add(_leftContainer);
|
||||
mainLayout.Children.Add(_rightContainer);
|
||||
|
@ -28,6 +28,7 @@
|
||||
Margin="0,20, 0, 0"
|
||||
Padding="8"
|
||||
FontSize="13"
|
||||
HorizontalAlignment="Center"
|
||||
Foreground="{TemplateBinding Foreground}"
|
||||
Text="{Binding IconName}" />
|
||||
</StackPanel>
|
||||
|
@ -22,7 +22,7 @@
|
||||
<Setter Property="Margin" Value="0, 30, 0, 0" />
|
||||
</Style>
|
||||
<Style Selector="showcases|ShowCaseItem">
|
||||
<Setter Property="Margin" Value="0, 0, 0, 50" />
|
||||
<Setter Property="Margin" Value="0, 0, 0, 0" />
|
||||
</Style>
|
||||
</UserControl.Styles>
|
||||
<Grid RowDefinitions="Auto, *">
|
||||
|
Loading…
Reference in New Issue
Block a user