HideContentsWhenNoFormDesignerIsSet Property
HideContentsWhenNoFormDesignerIsSet
Gets or sets a value indicating whether toolbox content should be hidden if designer is not set.
Declaration
public bool HideContentsWhenNoFormDesignerIsSet { get; set; }
Property Value
Type | Description |
---|---|
System.Boolean |
Remarks
Setting this value to true causes ToolboxControl to hide its content when the FormDesigner property is not set.
The default value of the HideContentsWhenNoFormDesignerIsSet is false.
Examples
Here is how to use a HideContentsWhenNoFormDesignerIsSet in the C# code:
using Alternet.FormDesigner.Wpf;
using Alternet.FormDesigner.Wpf.Toolbox;
using System;
public partial class MainWindow : Window
{
private void Window_Loaded(object sender, RoutedEventArgs e)
{
var formDesigner = new FormDesignerControl();
formDesigner.AutoSaveToSource = false;
var toolboxControl = new ToolboxControl();
toolboxControl.FormDesigner = formDesigner;
toolboxControl.HideContentsWhenNoFormDesignerIsSet = true;
}
}
Here is how to use a HideContentsWhenNoFormDesignerIsSet in the Visual Basic code:
Imports Alternet.FormDesigner.Wpf
Imports Alternet.FormDesigner.Wpf.Toolbox
Imports System
Partial Public Class MainWindow
Inherits Window
Private Sub Window_Loaded(ByVal sender As Object, ByVal e As RoutedEventArgs)
Dim formDesigner = New FormDesignerControl()
formDesigner.AutoSaveToSource = False
Dim toolboxControl = New ToolboxControl()
toolboxControl.FormDesigner = formDesigner
toolboxControl.HideContentsWhenNoFormDesignerIsSet = True
End Sub
End Class