mirror of
https://gitee.com/akwkevin/aistudio.-wpf.-diagram
synced 2026-04-12 12:16:37 +08:00
整理一下项目文件
This commit is contained in:
34
AIStudio.Wpf.DiagramHelper/Controls/PopupWindow.xaml
Normal file
34
AIStudio.Wpf.DiagramHelper/Controls/PopupWindow.xaml
Normal file
@@ -0,0 +1,34 @@
|
||||
<Window x:Class="AIStudio.Wpf.DiagramHelper.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>
|
||||
<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>
|
||||
Reference in New Issue
Block a user