minor fixes for dialog & imagebutton
This commit is contained in:
@@ -9,17 +9,20 @@
|
|||||||
Orientation="Horizontal"
|
Orientation="Horizontal"
|
||||||
HorizontalAlignment="Center"
|
HorizontalAlignment="Center"
|
||||||
VerticalAlignment="Center"
|
VerticalAlignment="Center"
|
||||||
Spacing="6"
|
|
||||||
>
|
>
|
||||||
|
|
||||||
<Image
|
<Image
|
||||||
|
x:Name="ButtonImage"
|
||||||
|
Margin="0, 0, 0, 6"
|
||||||
VerticalAlignment="Center"
|
VerticalAlignment="Center"
|
||||||
Width="16"
|
Width="16"
|
||||||
Height="16"
|
Height="16"
|
||||||
x:Name="ButtonImage"
|
IsVisible="False"
|
||||||
/>
|
/>
|
||||||
|
|
||||||
<TextBlock
|
<TextBlock
|
||||||
VerticalAlignment="Center"
|
|
||||||
x:Name="ButtonText"
|
x:Name="ButtonText"
|
||||||
|
VerticalAlignment="Center"
|
||||||
/>
|
/>
|
||||||
</StackPanel>
|
</StackPanel>
|
||||||
</Button>
|
</Button>
|
||||||
|
|||||||
@@ -22,7 +22,11 @@ public partial class ImageButton : Button
|
|||||||
public IImage? ImageSource
|
public IImage? ImageSource
|
||||||
{
|
{
|
||||||
get => ButtonImage.Source;
|
get => ButtonImage.Source;
|
||||||
set => ButtonImage.Source = value;
|
set
|
||||||
|
{
|
||||||
|
ButtonImage.Source = value;
|
||||||
|
ButtonImage.IsVisible = value != null;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
public double ImageWidth
|
public double ImageWidth
|
||||||
|
|||||||
@@ -9,17 +9,20 @@
|
|||||||
Orientation="Horizontal"
|
Orientation="Horizontal"
|
||||||
HorizontalAlignment="Center"
|
HorizontalAlignment="Center"
|
||||||
VerticalAlignment="Center"
|
VerticalAlignment="Center"
|
||||||
Spacing="6"
|
|
||||||
>
|
>
|
||||||
|
|
||||||
<Image
|
<Image
|
||||||
|
x:Name="ButtonImage"
|
||||||
|
Margin="0, 0, 0, 6"
|
||||||
VerticalAlignment="Center"
|
VerticalAlignment="Center"
|
||||||
Width="16"
|
Width="16"
|
||||||
Height="16"
|
Height="16"
|
||||||
x:Name="ButtonImage"
|
IsVisible="False"
|
||||||
/>
|
/>
|
||||||
|
|
||||||
<TextBlock
|
<TextBlock
|
||||||
VerticalAlignment="Center"
|
|
||||||
x:Name="ButtonText"
|
x:Name="ButtonText"
|
||||||
|
VerticalAlignment="Center"
|
||||||
/>
|
/>
|
||||||
</StackPanel>
|
</StackPanel>
|
||||||
</SplitButton>
|
</SplitButton>
|
||||||
|
|||||||
@@ -22,7 +22,11 @@ public partial class ImageSplitButton : SplitButton
|
|||||||
public IImage? ImageSource
|
public IImage? ImageSource
|
||||||
{
|
{
|
||||||
get => ButtonImage.Source;
|
get => ButtonImage.Source;
|
||||||
set => ButtonImage.Source = value;
|
set
|
||||||
|
{
|
||||||
|
ButtonImage.Source = value;
|
||||||
|
ButtonImage.IsVisible = value != null;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
public double ImageWidth
|
public double ImageWidth
|
||||||
|
|||||||
@@ -5,13 +5,19 @@
|
|||||||
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"
|
||||||
mc:Ignorable="d" d:DesignWidth="800" d:DesignHeight="450"
|
mc:Ignorable="d" d:DesignWidth="800" d:DesignHeight="450"
|
||||||
|
HorizontalAlignment="Stretch"
|
||||||
|
VerticalAlignment="Stretch"
|
||||||
x:Class="Pilz.UI.AvaloniaUI.Dialogs.AvaloniaFlyoutBase">
|
x:Class="Pilz.UI.AvaloniaUI.Dialogs.AvaloniaFlyoutBase">
|
||||||
|
|
||||||
<StackPanel Orientation="Vertical">
|
<Grid
|
||||||
|
ColumnDefinitions="*"
|
||||||
|
RowDefinitions="Auto,*,Auto"
|
||||||
|
>
|
||||||
|
|
||||||
<!-- StackPanel: Header -->
|
<!-- StackPanel: Header -->
|
||||||
<StackPanel
|
<StackPanel
|
||||||
x:Name="StackPanelHeader"
|
x:Name="StackPanelHeader"
|
||||||
|
Grid.Row="0"
|
||||||
Orientation="Horizontal"
|
Orientation="Horizontal"
|
||||||
HorizontalAlignment="Stretch"
|
HorizontalAlignment="Stretch"
|
||||||
Margin="3"
|
Margin="3"
|
||||||
@@ -33,6 +39,7 @@
|
|||||||
|
|
||||||
<!-- Panel: Content -->
|
<!-- Panel: Content -->
|
||||||
<ContentPresenter
|
<ContentPresenter
|
||||||
|
Grid.Row="1"
|
||||||
HorizontalAlignment="Stretch"
|
HorizontalAlignment="Stretch"
|
||||||
VerticalAlignment="Stretch"
|
VerticalAlignment="Stretch"
|
||||||
Margin="3"
|
Margin="3"
|
||||||
@@ -42,6 +49,7 @@
|
|||||||
<!-- StackPanel: Footer -->
|
<!-- StackPanel: Footer -->
|
||||||
<Grid
|
<Grid
|
||||||
x:Name="StackPanelFooter"
|
x:Name="StackPanelFooter"
|
||||||
|
Grid.Row="2"
|
||||||
RowDefinitions="Auto"
|
RowDefinitions="Auto"
|
||||||
ColumnDefinitions="*,Auto,Auto"
|
ColumnDefinitions="*,Auto,Auto"
|
||||||
HorizontalAlignment="Stretch"
|
HorizontalAlignment="Stretch"
|
||||||
@@ -74,5 +82,5 @@
|
|||||||
Click="ButtonCancel_OnClick"
|
Click="ButtonCancel_OnClick"
|
||||||
/>
|
/>
|
||||||
</Grid>
|
</Grid>
|
||||||
</StackPanel>
|
</Grid>
|
||||||
</UserControl>
|
</UserControl>
|
||||||
|
|||||||
@@ -7,7 +7,7 @@
|
|||||||
</PropertyGroup>
|
</PropertyGroup>
|
||||||
|
|
||||||
<PropertyGroup>
|
<PropertyGroup>
|
||||||
<Version>1.2.0</Version>
|
<Version>1.2.2</Version>
|
||||||
</PropertyGroup>
|
</PropertyGroup>
|
||||||
|
|
||||||
<ItemGroup>
|
<ItemGroup>
|
||||||
|
|||||||
Reference in New Issue
Block a user