Table of Contents

Property AutoAddComponentAssemblyReferences

Namespace
Alternet.FormDesigner.Wpf
Assembly
Alternet.FormDesigner.Wpf.v10.dll

AutoAddComponentAssemblyReferences

Gets or sets a boolean value indicating whether designer should automatically try to add assembly references after a control is added.

public bool AutoAddComponentAssemblyReferences { get; set; }

Property Value

bool

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

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.