Message 1 of 5
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
why my form not show same when run in revit.
<Window x:Class="Basic1.WPF1"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
xmlns:local="clr-namespace:Basic1"
mc:Ignorable="d"
Title="WPF RevitAPI"
WindowStartupLocation="CenterScreen"
ResizeMode="NoResize"
MaxHeight="250"
MaxWidth="400"
Height="250"
Width="400">
<Grid>
<Button
Content="OK"
VerticalAlignment="Bottom"
HorizontalAlignment="Right"
Margin="0,0,20,20"
Height="25"
Width="70" Click="Button_Click_1"/>
<Button
Content="Cancel"
VerticalAlignment="Bottom"
HorizontalAlignment="Right"
Margin="0,0,150,20"
Height="25"
Width="70" Click="Button_Click"/>
<GroupBox
VerticalAlignment="Stretch"
HorizontalAlignment="Stretch"
Header="Get List Family"
Margin="15,10,15,70"
Height="150"
Width="370"
BorderBrush="Red"
BorderThickness="2,2,2,2"/>
</Grid>
</Window>
Solved! Go to Solution.