mirror of
https://gitee.com/akwkevin/aistudio.-wpf.-diagram
synced 2026-03-02 15:50:51 +08:00
35 lines
1.3 KiB
XML
35 lines
1.3 KiB
XML
<Window x:Class="AIStudio.Wpf.DiagramDesigner.Controls.PopupWindow"
|
|
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
|
|
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
|
|
Title="{Binding Title}"
|
|
SizeToContent="WidthAndHeight"
|
|
WindowStartupLocation="CenterOwner"
|
|
x:Name="theView">
|
|
<Grid x:Name="grid">
|
|
<Grid.RowDefinitions>
|
|
<RowDefinition Height="*" />
|
|
<RowDefinition Height="Auto" />
|
|
</Grid.RowDefinitions>
|
|
|
|
<ContentControl Grid.Row="0"
|
|
HorizontalAlignment="Stretch"
|
|
VerticalAlignment="Stretch"
|
|
Content="{Binding ElementName=theView, Path=DataContext}" />
|
|
<StackPanel Grid.Row="1"
|
|
Orientation="Horizontal"
|
|
HorizontalAlignment="Right">
|
|
<Button Content="Ok"
|
|
IsDefault="True"
|
|
Click="Ok_Click"
|
|
Margin="5"
|
|
Width="100"
|
|
Height="30" />
|
|
<Button Content="Cancel"
|
|
IsCancel="True"
|
|
Margin="5"
|
|
Width="100"
|
|
Height="30" />
|
|
</StackPanel>
|
|
</Grid>
|
|
</Window>
|