ad38e4d3e1
This reverts commit 00a338c202.
53 lines
2.3 KiB
XML
53 lines
2.3 KiB
XML
<EgtWPFLib5:EgtCustomWindow x:Class="EgtMessageBoxV"
|
|
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
|
|
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
|
|
xmlns:EgtWPFLib5="clr-namespace:EgtWPFLib5"
|
|
Title="{Binding sTitle}"
|
|
SizeToContent="WidthAndHeight"
|
|
WindowStartupLocation="CenterOwner"
|
|
WindowStyle="None" ResizeMode="NoResize" TitleBarHeight="32"
|
|
IsMinimizable="False" ShowInTaskbar="False"
|
|
CloseCommand="{Binding Close_Command,Mode=OneWay,UpdateSourceTrigger=PropertyChanged}">
|
|
|
|
<Grid Margin="2.5,2.5,2.5,0">
|
|
<Grid.RowDefinitions>
|
|
<RowDefinition Height="Auto"/>
|
|
<RowDefinition Height="Auto"/>
|
|
</Grid.RowDefinitions>
|
|
<Grid Margin="20,20,20,20">
|
|
<Grid.ColumnDefinitions>
|
|
<ColumnDefinition Width="Auto"/>
|
|
<ColumnDefinition Width="1*"/>
|
|
</Grid.ColumnDefinitions>
|
|
<Image Source="{Binding sIconSource}"
|
|
Margin="0,0,0,0"/>
|
|
<TextBlock Grid.Column="1"
|
|
Text="{Binding sMessage}"
|
|
Margin="5,0,5,0"
|
|
HorizontalAlignment="Center"
|
|
VerticalAlignment="Center"
|
|
FontSize="12"/>
|
|
</Grid>
|
|
<ItemsControl Grid.Row="1"
|
|
ItemsSource="{Binding ButtonList}"
|
|
HorizontalAlignment="Center">
|
|
<ItemsControl.ItemsPanel>
|
|
<ItemsPanelTemplate>
|
|
<UniformGrid Rows="1"/>
|
|
</ItemsPanelTemplate>
|
|
</ItemsControl.ItemsPanel>
|
|
<ItemsControl.ItemTemplate>
|
|
<DataTemplate>
|
|
<Button IsDefault="{Binding bIsDefault}"
|
|
Content="{Binding sMessage}"
|
|
Command="{Binding Command_Command}"
|
|
Margin="2.5,0,2.5,0"
|
|
Height="24"
|
|
Width="64"
|
|
BorderThickness="1,1,1,0"/>
|
|
</DataTemplate>
|
|
</ItemsControl.ItemTemplate>
|
|
</ItemsControl>
|
|
</Grid>
|
|
</EgtWPFLib5:EgtCustomWindow>
|