Skip to content

Commit

Permalink
fix show form not size
Browse files Browse the repository at this point in the history
  • Loading branch information
chuongmep committed Feb 11, 2022
1 parent 627b758 commit 98d0a0e
Showing 1 changed file with 38 additions and 24 deletions.
62 changes: 38 additions & 24 deletions AddInManager/View/AssemblyLoader.xaml
Original file line number Diff line number Diff line change
@@ -1,14 +1,17 @@
<Window x:Class="RevitAddinManager.View.AssemblyLoader"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
mc:Ignorable="d"
ResizeMode="NoResize"
SizeToContent="WidthAndHeight"
Closing="AssemblyLoader_OnClosing"
Icon="../Resources/dev.ico"
Title="AssemblyLoader" Height="200" Width="400">
<Window
x:Class="RevitAddinManager.View.AssemblyLoader"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
Title="AssemblyLoader"
Width="400"
Height="Auto"
Closing="AssemblyLoader_OnClosing"
Icon="../Resources/dev.ico"
ResizeMode="NoResize"
SizeToContent="WidthAndHeight"
mc:Ignorable="d">
<Window.Resources>
<ResourceDictionary>
<ResourceDictionary.MergedDictionaries>
Expand All @@ -18,22 +21,22 @@
</Window.Resources>
<Grid>
<Grid.RowDefinitions>
<RowDefinition/>
<RowDefinition Height="25"/>
<RowDefinition />
<RowDefinition Height="25" />
</Grid.RowDefinitions>
<StackPanel Orientation="Vertical">
<Label Content="The following assembly name can not be resolved automatically"></Label>
<Label x:Name="tbxAssembly" Content="Assembly Name"></Label>
<Label Content=""></Label>
<Label Content="The following assembly name can not be resolved automatically" />
<Label x:Name="tbxAssembly" Content="Assembly Name" />
<Label Content="" />
<Grid>
<Grid.ColumnDefinitions>
<ColumnDefinition/>
<ColumnDefinition Width="100"/>
<ColumnDefinition />
<ColumnDefinition Width="100" />
</Grid.ColumnDefinitions>
<TextBox
x:Name="TbxAssemPath"
Grid.Row="0"
Margin="5,0,5,0"
x:Name="TbxAssemPath"
VerticalAlignment="Center">
<TextBox.Resources>
<VisualBrush
Expand All @@ -58,16 +61,27 @@
</Style>
</TextBox.Style>
</TextBox>
<Button Margin="1,1,1,1" Click="ButtonBase_OnClick" Grid.Column="1" Content="Load"></Button>
<Button
Grid.Column="1"
Margin="1,1,1,1"
Click="ButtonBase_OnClick"
Content="Load" />
</Grid>
</StackPanel>
<Grid Grid.Row="1">
<Grid.ColumnDefinitions>
<ColumnDefinition/>
<ColumnDefinition Width="100"/>
<ColumnDefinition />
<ColumnDefinition Width="100" />
</Grid.ColumnDefinitions>
<Button Margin="1,1,1,1" Content="OK" Click="OKButtonClick"></Button>
<Button Click="Close_OnClick" Margin="1,1,1,1" Grid.Column="1" Content="Cancel" ></Button>
<Button
Margin="1,1,1,1"
Click="OKButtonClick"
Content="OK" />
<Button
Grid.Column="1"
Margin="1,1,1,1"
Click="Close_OnClick"
Content="Cancel" />
</Grid>
</Grid>
</Window>

0 comments on commit 98d0a0e

Please sign in to comment.