Class SfAssistViewLayout
Hosts a main content area and an AI assist pane (SfAIAssistView), provides access to the AssistView instance for integration.
Inheritance
Implements
Namespace: Syncfusion.UI.Xaml.SmartComponents
Assembly: Syncfusion.SfSmartComponents.Wpf.dll
Syntax
public class SfAssistViewLayout : ContentControl, IDisposable
Constructors
SfAssistViewLayout()
Initializes a new instance of the SfAssistViewLayout class and sets the default style key so the control template from Generic.xaml is applied.
Declaration
public SfAssistViewLayout()
Fields
HeaderProperty
Identifies the Header dependency property.
Declaration
public static readonly DependencyProperty HeaderProperty
Field Value
| Type |
|---|
| System.Windows.DependencyProperty |
HeaderTemplateProperty
Identifies the HeaderTemplate dependency property.
Declaration
public static readonly DependencyProperty HeaderTemplateProperty
Field Value
| Type |
|---|
| System.Windows.DependencyProperty |
IsAssistViewOpenProperty
Identifies the IsAssistViewOpen dependency property.
Declaration
public static readonly DependencyProperty IsAssistViewOpenProperty
Field Value
| Type |
|---|
| System.Windows.DependencyProperty |
Properties
Header
Gets or sets the custom header content. When set, this content is displayed instead of the default header text.
Declaration
public object Header { get; set; }
Property Value
| Type |
|---|
| System.Object |
HeaderTemplate
Gets or sets the System.Windows.DataTemplate used to display the value of Header.
Declaration
public DataTemplate HeaderTemplate { get; set; }
Property Value
| Type |
|---|
| System.Windows.DataTemplate |
IsAssistViewOpen
Gets or sets a value indicating whether the AIAssitView panel is open.
Declaration
public bool IsAssistViewOpen { get; set; }
Property Value
| Type | Description |
|---|---|
| System.Boolean |
|
Methods
Dispose()
Releases all resources used by the control.
Declaration
public void Dispose()
Dispose(Boolean)
Releases unmanaged resources and optionally managed resources.
Declaration
protected virtual void Dispose(bool isDisposing)
Parameters
| Type | Name | Description |
|---|---|---|
| System.Boolean | isDisposing | True to release both managed and unmanaged resources; otherwise false. |
OnApplyTemplate()
Applies the control template and caches the assist toggle template child.
Declaration
public override void OnApplyTemplate()
Events
AssistViewClosed
Occurs when the AssistView panel has closed.
Declaration
public event EventHandler AssistViewClosed
Event Type
| Type |
|---|
| System.EventHandler |
AssistViewOpened
Occurs when the AssistView panel has opened.
Declaration
public event EventHandler AssistViewOpened
Event Type
| Type |
|---|
| System.EventHandler |
ResetButtonClick
Occurs when the ResetButton is clicked.
Declaration
public event EventHandler ResetButtonClick
Event Type
| Type |
|---|
| System.EventHandler |