AutoAddComponentAssemblyReferences Property
AutoAddComponentAssemblyReferences
Gets or sets a boolean value indicating whether designer should automatically try to add assembly references after a control is added.
Declaration
public bool AutoAddComponentAssemblyReferences { get; set; }
Property Value
Type | Description |
---|---|
System.Boolean |
Implements
Remarks
By default, AutoAddComponentAssemblyReferences is set to true. You can set this property to false to skip adding assembly references related to the component or control being placed on the designed form.
Examples
Here is how to use a AutoAddComponentAssemblyReferences in the C# code:
public partial class MainWindow : Window
{
private void Window_Loaded(object sender, RoutedEventArgs e)
{
var formDesigner = new Alternet.FormDesigner.Wpf.FormDesignerControl();
formDesigner.AutoSaveToSource = false;
formDesigner.AutoAddComponentAssemblyReferences = false;
}
}
Here is how to use a AutoAddComponentAssemblyReferences in the Visual Basic code:
Partial Public Class MainWindow
Inherits Window
Private Sub Window_Loaded(ByVal sender As Object, ByVal e As RoutedEventArgs)
Dim formDesigner = New Alternet.FormDesigner.Wpf.FormDesignerControl()
formDesigner.AutoSaveToSource = False
formDesigner.AutoAddComponentAssemblyReferences = False
End Sub
End Class