mirror of
https://gitee.com/akwkevin/aistudio.-wpf.-diagram
synced 2026-04-10 11:16:36 +08:00
popup支持设置大小
This commit is contained in:
@@ -5,7 +5,7 @@
|
||||
SizeToContent="WidthAndHeight"
|
||||
WindowStartupLocation="CenterOwner"
|
||||
x:Name="theView">
|
||||
<Grid>
|
||||
<Grid x:Name="grid">
|
||||
<Grid.RowDefinitions>
|
||||
<RowDefinition Height="*" />
|
||||
<RowDefinition Height="Auto" />
|
||||
|
||||
@@ -24,6 +24,12 @@ namespace AIStudio.Wpf.DiagramDesigner.Controls
|
||||
InitializeComponent();
|
||||
}
|
||||
|
||||
public void Init(double width, double height)
|
||||
{
|
||||
grid.Width = width;
|
||||
grid.Height = height;
|
||||
}
|
||||
|
||||
private void Ok_Click(object sender, RoutedEventArgs e)
|
||||
{
|
||||
this.DialogResult = true;
|
||||
|
||||
Reference in New Issue
Block a user