<!--MyLayerControl.xaml-->
<UserControl x:Class="ClassLibrary1.MyLayerControl"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:acmgd="clr-namespace:Autodesk.AutoCAD.ApplicationServices;assembly=Acmgd"
MinHeight="100" MinWidth="100">
<Grid>
<ListView
ItemsSource="{Binding Source={x:Static acmgd:Application.UIBindings}, Path=Collections.Layers, Mode=TwoWay}"
Background="PaleGoldenrod">
<ListView.View>
<GridView>
<GridViewColumn Header="Name" Width="100">
<GridViewColumn.CellTemplate>
<DataTemplate>
<TextBox Text="{Binding Path=Name}" Background="PaleGoldenrod" />
</DataTemplate>
</GridViewColumn.CellTemplate>
</GridViewColumn>
<GridViewColumn Header="IsOff" Width="35">
<GridViewColumn.CellTemplate>
<DataTemplate>
<CheckBox IsChecked="{Binding Path=IsOff}" Background="PaleGoldenrod" />
</DataTemplate>
</GridViewColumn.CellTemplate>
</GridViewColumn>
<GridViewColumn Header="IsLocked" Width="55" >
<GridViewColumn.CellTemplate>
<DataTemplate>
<CheckBox IsChecked="{Binding Path=IsLocked}" Background="PaleGoldenrod" />
</DataTemplate>
</GridViewColumn.CellTemplate>
</GridViewColumn>
</GridView>
</ListView.View>
</ListView>
</Grid>
</UserControl>
<!--MyModalWindow.xaml-->
<Window x:Class="ClassLibrary1.MyModalWindow"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:src="clr-namespace:ClassLibrary1"
Title="Modal Window" Height="273" Width="281">
<Grid>
<Grid.RowDefinitions>
<RowDefinition Height="218*" />
<RowDefinition Height="44*" />
</Grid.RowDefinitions>
<Grid.ColumnDefinitions>
<ColumnDefinition Width="171*" />
<ColumnDefinition Width="51*" />
<ColumnDefinition Width="56*" />
</Grid.ColumnDefinitions>
<src:MyLayerControl Grid.ColumnSpan="3"/>
</Grid>
</Window>
<!--MyModelessWindow.xaml-->
<Window x:Class="ClassLibrary1.MyModalWindow"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:src="clr-namespace:ClassLibrary1"
Title="Modal Window" Height="273" Width="281">
<Grid>
<Grid.RowDefinitions>
<RowDefinition Height="218*" />
<RowDefinition Height="44*" />
</Grid.RowDefinitions>
<Grid.ColumnDefinitions>
<ColumnDefinition Width="171*" />
<ColumnDefinition Width="51*" />
<ColumnDefinition Width="56*" />
</Grid.ColumnDefinitions>
<src:MyLayerControl Grid.ColumnSpan="3"/>
</Grid>
</Window>
<Window x:Class="ClassLibrary1.MyModelessWindow"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:src="clr-namespace:ClassLibrary1"
Title="Window1" Height="300" Width="300">
<Grid>
<src:MyLayerControl Grid.ColumnSpan="3"/>
</Grid>
</Window>