add missing spacing
This commit is contained in:
@@ -1,89 +1,81 @@
|
|||||||
<UserControl xmlns="https://github.com/avaloniaui"
|
<UserControl xmlns="https://github.com/avaloniaui"
|
||||||
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
|
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
|
||||||
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
|
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
|
||||||
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
|
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
|
||||||
xmlns:controls="https://git.pilzinsel64.de/pilz-framework/pilz"
|
xmlns:controls="https://git.pilzinsel64.de/pilz-framework/pilz"
|
||||||
xmlns:dialogs="clr-namespace:Pilz.UI.AvaloniaUI.Dialogs"
|
xmlns:dialogs="clr-namespace:Pilz.UI.AvaloniaUI.Dialogs"
|
||||||
xmlns:symbols="clr-namespace:Pilz.UI.Symbols;assembly=Pilz.UI"
|
xmlns:symbols="clr-namespace:Pilz.UI.Symbols;assembly=Pilz.UI"
|
||||||
mc:Ignorable="d" d:DesignWidth="800" d:DesignHeight="450"
|
mc:Ignorable="d" d:DesignWidth="800" d:DesignHeight="450"
|
||||||
HorizontalAlignment="Stretch"
|
HorizontalAlignment="Stretch"
|
||||||
VerticalAlignment="Stretch"
|
VerticalAlignment="Stretch"
|
||||||
x:Class="Pilz.UI.AvaloniaUI.Dialogs.AvaloniaFlyoutBase">
|
x:Class="Pilz.UI.AvaloniaUI.Dialogs.AvaloniaFlyoutBase">
|
||||||
|
|
||||||
|
<Grid
|
||||||
|
ColumnDefinitions="*"
|
||||||
|
RowDefinitions="Auto,*,Auto">
|
||||||
|
|
||||||
|
<!-- StackPanel: Header -->
|
||||||
|
<StackPanel
|
||||||
|
x:Name="StackPanelHeader"
|
||||||
|
Grid.Row="0"
|
||||||
|
Orientation="Horizontal"
|
||||||
|
HorizontalAlignment="Stretch"
|
||||||
|
Margin="3"
|
||||||
|
Spacing="6"
|
||||||
|
IsVisible="False">
|
||||||
|
|
||||||
|
<Image
|
||||||
|
x:Name="ImageTitle"
|
||||||
|
HorizontalAlignment="Left"
|
||||||
|
VerticalAlignment="Center"
|
||||||
|
Width="{x:Static symbols:SymbolGlobals.DefaultImageSmallSize}"
|
||||||
|
Height="{x:Static symbols:SymbolGlobals.DefaultImageSmallSize}"/>
|
||||||
|
|
||||||
|
<TextBlock
|
||||||
|
HorizontalAlignment="Left"
|
||||||
|
VerticalAlignment="Center"
|
||||||
|
x:Name="LabelTitle"/>
|
||||||
|
</StackPanel>
|
||||||
|
|
||||||
|
<!-- Panel: Content -->
|
||||||
|
<ContentPresenter
|
||||||
|
Grid.Row="1"
|
||||||
|
HorizontalAlignment="Stretch"
|
||||||
|
VerticalAlignment="Stretch"
|
||||||
|
Margin="3"
|
||||||
|
Content="{Binding MainContent, RelativeSource={RelativeSource AncestorType=dialogs:AvaloniaFlyoutBase}}"/>
|
||||||
|
|
||||||
|
<!-- StackPanel: Footer -->
|
||||||
<Grid
|
<Grid
|
||||||
ColumnDefinitions="*"
|
x:Name="StackPanelFooter"
|
||||||
RowDefinitions="Auto,*,Auto"
|
Grid.Row="2"
|
||||||
>
|
RowDefinitions="Auto"
|
||||||
|
ColumnDefinitions="*,Auto,Auto"
|
||||||
|
HorizontalAlignment="Stretch">
|
||||||
|
<ContentPresenter
|
||||||
|
Grid.Column="0"
|
||||||
|
HorizontalAlignment="Stretch"
|
||||||
|
VerticalAlignment="Stretch"
|
||||||
|
Margin="3"
|
||||||
|
Content="{Binding FooterContent, RelativeSource={RelativeSource AncestorType=dialogs:AvaloniaFlyoutBase}}"/>
|
||||||
|
|
||||||
<!-- StackPanel: Header -->
|
<!-- Button: Okay -->
|
||||||
<StackPanel
|
<controls:ImageButton
|
||||||
x:Name="StackPanelHeader"
|
Grid.Column="1"
|
||||||
Grid.Row="0"
|
x:Name="ButtonOkay"
|
||||||
Orientation="Horizontal"
|
HorizontalAlignment="Right"
|
||||||
HorizontalAlignment="Stretch"
|
Margin="3"
|
||||||
Margin="3"
|
Text="Okay"
|
||||||
IsVisible="False"
|
Click="ButtonOkay_OnClick"/>
|
||||||
>
|
|
||||||
|
|
||||||
<Image
|
<!-- Button: Cancel -->
|
||||||
x:Name="ImageTitle"
|
<controls:ImageButton
|
||||||
HorizontalAlignment="Left"
|
Grid.Column="2"
|
||||||
VerticalAlignment="Center"
|
x:Name="ButtonCancel"
|
||||||
Width="{x:Static symbols:SymbolGlobals.DefaultImageSmallSize}"
|
HorizontalAlignment="Right"
|
||||||
Height="{x:Static symbols:SymbolGlobals.DefaultImageSmallSize}"
|
Margin="3"
|
||||||
/>
|
Text="Cancel"
|
||||||
|
Click="ButtonCancel_OnClick"/>
|
||||||
<TextBlock
|
|
||||||
HorizontalAlignment="Left"
|
|
||||||
VerticalAlignment="Center"
|
|
||||||
x:Name="LabelTitle"
|
|
||||||
/>
|
|
||||||
</StackPanel>
|
|
||||||
|
|
||||||
<!-- Panel: Content -->
|
|
||||||
<ContentPresenter
|
|
||||||
Grid.Row="1"
|
|
||||||
HorizontalAlignment="Stretch"
|
|
||||||
VerticalAlignment="Stretch"
|
|
||||||
Margin="3"
|
|
||||||
Content="{Binding MainContent, RelativeSource={RelativeSource AncestorType=dialogs:AvaloniaFlyoutBase}}"
|
|
||||||
/>
|
|
||||||
|
|
||||||
<!-- StackPanel: Footer -->
|
|
||||||
<Grid
|
|
||||||
x:Name="StackPanelFooter"
|
|
||||||
Grid.Row="2"
|
|
||||||
RowDefinitions="Auto"
|
|
||||||
ColumnDefinitions="*,Auto,Auto"
|
|
||||||
HorizontalAlignment="Stretch"
|
|
||||||
>
|
|
||||||
<ContentPresenter
|
|
||||||
Grid.Column="0"
|
|
||||||
HorizontalAlignment="Stretch"
|
|
||||||
VerticalAlignment="Stretch"
|
|
||||||
Margin="3"
|
|
||||||
Content="{Binding FooterContent, RelativeSource={RelativeSource AncestorType=dialogs:AvaloniaFlyoutBase}}"
|
|
||||||
/>
|
|
||||||
|
|
||||||
<!-- Button: Okay -->
|
|
||||||
<controls:ImageButton
|
|
||||||
Grid.Column="1"
|
|
||||||
x:Name="ButtonOkay"
|
|
||||||
HorizontalAlignment="Right"
|
|
||||||
Margin="3"
|
|
||||||
Text="Okay"
|
|
||||||
Click="ButtonOkay_OnClick"
|
|
||||||
/>
|
|
||||||
|
|
||||||
<!-- Button: Cancel -->
|
|
||||||
<controls:ImageButton
|
|
||||||
Grid.Column="2"
|
|
||||||
x:Name="ButtonCancel"
|
|
||||||
HorizontalAlignment="Right"
|
|
||||||
Margin="3"
|
|
||||||
Text="Cancel"
|
|
||||||
Click="ButtonCancel_OnClick"
|
|
||||||
/>
|
|
||||||
</Grid>
|
|
||||||
</Grid>
|
</Grid>
|
||||||
|
</Grid>
|
||||||
</UserControl>
|
</UserControl>
|
||||||
Reference in New Issue
Block a user