[]
        
(Showing Draft Content)

C1.Blazor.Core.C1View

C1View Class

Base class for views supporting standard properties.

Namespace: C1.Blazor.Core
Assembly: C1.Blazor.Core.dll
Syntax
public abstract class C1View : ComponentBase, IComponent, IHandleAfterRender, IDependencyObject, IHandleEvent, IDisposable

Constructors

Name Description
C1View()

Initializes a new instance of the C1View class.

Fields

Name Description
BackgroundProperty

Identifies the Background dependency property.

BorderBrushProperty

Identifies the BorderBrush dependency property.

BorderThicknessProperty

Identifies the BorderThickness dependency property.

CornerRadiusProperty

Identifies the CornerRadius dependency property.

FlowDirectionProperty

Identifies the FlowDirection dependency property.

FontFamilyProperty

Identifies the FontFamily dependency property.

FontSizeProperty

Identifies the FontSize dependency property.

FontStyleProperty

Identifies the FontStyle dependency property.

FontWeightProperty

Identifies the FontWeight dependency property.

ForegroundProperty

Identifies the Foreground dependency property.

InheritPropertiesProperty

Identifies the InheritProperties dependency property.

PaddingProperty

Identifies the Padding dependency property.

_background

Gets or sets the C1Color used to paint the background.

Properties

Name Description
Background

Gets or sets the C1Color used to paint the background.

BorderBrush

Gets or sets the C1Color used to paint the border.

BorderThickness

Gets or sets the C1Thickness of the border.

Class

Gets or sets the CSS class applied to the component.

CornerRadius

Gets or sets the C1CornerRadius of the border.

FlowDirection

Gets or sets the flow direction.

FontFamily

Gets or sets the font family applied to the view.

FontSize

Gets or sets the font size applied to the view.

FontStyle

Gets or sets the font style applied to the view.

FontWeight

Gets or sets the font weight applied to the view.

Foreground

Gets or sets the C1Color used to paint the foreground (text and icons).

InheritProperties

Gets or sets whether the general purpose properties like foreground or fonts are inherited to the children automatically.

IsDisposed

Gets whether this instance is disposed.

IsInitialized

Gets whether the component was already initialized.

Js

Gets the JavaScript interoperability instance.

Padding

Gets or sets the padding of the Content.

Style

Gets or sets the style applied to the component.

TabIndex

Gets or sets the CSS class applied to the component.

Tag

Gets or sets an arbitrary object that can be used to identify a specific component.

Methods

Name Description
AwaitInitialized()

Waits until the component is initialized.

Dispose()
Dispose(bool)
~C1View()

Finalizes this instance of the C1View class.

Focus()

Sets the focus in the control.

FocusAsync()

Sets the focus in the control.

FocusOutAsync()

Sets the focus in the control.

InitializeAsync()

This method is called when the component is initialized.

OnAfterRender(bool)
OnAfterRenderAsync(bool)
OnBackgroundChanged()

Called when the background changed.

OnBorderBrushChanged()

Called when the border brush changed.

OnBorderThicknessChanged()

Called when the border thickness changed.

OnCornerRadiusChanged()

Called when the corner-radius changed.

OnFlowDirectionChanged()

Called when the flow direction changed.

OnFontChanged()

Called when any of the font properties changed.

OnForegroundChanged()

Called when the foreground changed.

OnPaddingChanged()

Called when the padding changed.

OnStyleChanged()

Called when the style changed.

ShouldRender()
StateHasChanged(bool)