[]
        
(Showing Draft Content)

C1.WPF.InputPanel.C1InputPanel

C1InputPanel Class

Provides easy display and edit collection from a layout.

Namespace: C1.WPF.InputPanel
Assembly: C1.WPF.InputPanel.4.6.2.dll
Syntax
[TemplatePart(Name = "Presenter", Type = typeof(C1InputPanelPresenter))]
[TemplatePart(Name = "Validation", Type = typeof(C1InputPanelValidationSummary))]
[TemplatePart(Name = "DataPager", Type = typeof(C1DataPager))]
[TemplatePart(Name = "InputPanelGrid", Type = typeof(Grid))]
[TemplatePart(Name = "ItemsScrollViewer", Type = typeof(ScrollViewer))]
[TemplateVisualState(Name = "ActionButtonsHidden", GroupName = "ReadOnlyStates")]
[TemplateVisualState(Name = "ActionButtonsShown", GroupName = "ReadOnlyStates")]
[TemplateVisualState(Name = "NavigationHidden", GroupName = "NavigationVisibilityStates")]
[TemplateVisualState(Name = "NavigationShown", GroupName = "NavigationVisibilityStates")]
[TemplateVisualState(Name = "AddButtonShown", GroupName = "AddButtonVisibilityStates")]
[TemplateVisualState(Name = "AddButtonHidden", GroupName = "AddButtonVisibilityStates")]
[TemplateVisualState(Name = "DeleteButtonShown", GroupName = "DeleteButtonVisibilityStates")]
[TemplateVisualState(Name = "DeleteButtonHidden", GroupName = "DeleteButtonVisibilityStates")]
[TemplateVisualState(Name = "AddButtonNormal", GroupName = "AddButtonEnableStateStates")]
[TemplateVisualState(Name = "AddButtonDisable", GroupName = "AddButtonEnableStateStates")]
[TemplateVisualState(Name = "DeleteButtonNormal", GroupName = "DeleteButtonEnableStateStates")]
[TemplateVisualState(Name = "DeleteButtonDisable", GroupName = "DeleteButtonEnableStateStates")]
public class C1InputPanel : Control, IAnimatable, IFrameworkInputElement, IInputElement, ISupportInitialize, IQueryAmbient

Constructors

Name Description
C1InputPanel()

Initializes a new instance of a C1InputPanel.

Fields

Name Description
AddButtonVisibilityProperty

Identifies the AddButtonVisibility dependency property.

AddNewItemCommand

Adds a new item to the C1InputPanel.

AutoCommitProperty

Identifies the AutoCommit dependency property.

AutoGenerateProperty

Identifies the AutoGenerate dependency property.

ButtonBackgroundProperty

Identifies the ButtonBackground dependency property.

ButtonForegroundProperty

Identifies the ButtonForeground dependency property.

CancelCommand

Cancels editing.

CommitCommand

Commits the edited content.

CornerRadiusProperty

Identifies the CornerRadius dependency property.

CurrentItemProperty

Identifies the CurrentItem dependency property.

DataPagerVisibilityProperty

Identifies the DataPagerVisibility dependency property.

DeleteButtonVisibilityProperty

Identifies the DeleteButtonVisibility dependency property.

DeleteCurrentItemCommand

Deletes the current item.

DisplayModeProperty

Identifies the DisplayMode dependency property.

FocusBrushProperty

Identifies the FocusBrush dependency property.

FooterBorderStyleProperty

Identifies the FooterBorderStyle dependency property.

FooterButtonBackgroundProperty

Identifies the FooterButtonBackground dependency property.

FooterButtonForegroundProperty

Identifies the FooterButtonForeground dependency property.

HeaderBackgroundProperty

Identifies the HeaderBackground dependency property.

HeaderFontFamilyProperty

Identifies the HeaderFontFamily dependency property.

HeaderFontSizeProperty

Identifies the HeaderFontSize dependency property.

HeaderFontStretchProperty

Identifies the HeaderFontStretch dependency property.

HeaderFontStyleProperty

Identifies the HeaderFontStyle dependency property.

HeaderFontWeightProperty

Identifies the HeaderFontWeight dependency property.

HeaderForegroundProperty

Identifies the HeaderForeground dependency property.

HeaderPaddingProperty

Identifies the HeaderPadding dependency property.

HeaderProperty

Identifies the Header dependency property.

HeaderTemplateProperty

Identifies the HeaderTemplate dependency property.

HorizontalHeaderAlignmentProperty

Identifies the HorizontalHeaderAlignment dependency property.

IsReadOnlyProperty

Identifies the IsReadOnly dependency property.

ItemsPanelTemplateProperty

Identifies the ItemsPanelTemplate dependency property.

ItemsSourceProperty

Identifies the ItemsSource dependency property.

ItemsTemplateProperty

Identifies the ItemsTemplate dependency property.

LabelForegroundProperty

Identifies the LabelForeground dependency property.

MouseOverBrushProperty

Identifies the MouseOverBrush dependency property.

NavigationBackgroundProperty

Identifies the NavigationBackground dependency property.

NavigationButtonStyleProperty

Identifies the NavigationButtonStyle dependency property.

PressedBrushProperty

Identifies the PressedBrush dependency property.

ValidationBackgroundProperty

Identifies the ValidationBackground dependency property.

ValidationContentForegroundProperty

Identifies the ValidationContentForeground dependency property.

ValidationHeaderForegroundProperty

Identifies the ValidationHeaderForeground dependency property.

VerticalHeaderAlignmentProperty

Identifies the VerticalHeaderAlignment dependency property.

Properties

Name Description
AddButtonVisibility

Gets or sets a value that determines whether the Add button is shown.

AutoCommit

Gets or sets a value that indicates whether the input data is committed automatically.

AutoGenerate

Gets or sets a value that indicates whether the input controls are created automatically.

ButtonBackground

Gets or sets the Brush that will be assigned to the Background of the buttons inside the control.

ButtonForeground

Gets or sets the Brush that will be assigned to the Foreground of the buttons inside the control.

CornerRadius

Gets or sets a value that represents the degree to which the corners of the element are rounded.

CurrentItem

Gets or sets an item which is currently visible in C1InputPanel.

DataPagerVisibility

Gets or sets a value that determines whether C1DataPager is shown.

DeleteButtonVisibility

Gets or sets a value that determines whether the Delete button is shown.

DisplayMode

Gets or sets a value that indicates how the C1DataPager will render.

FocusBrush

Gets or sets the Brush used to highlight the focused control.

FooterBorderStyle

Gets or sets the style used for inner footer border.

FooterButtonBackground

Gets or sets the background used for the inner footer buttons.

FooterButtonForeground

Gets or sets the foreground used for the inner footer buttons.

Header

Gets or sets the header of C1InputPanel.

HeaderBackground

Gets or sets the background brush of the header.

HeaderFontFamily

Gets or sets the font family of the header.

HeaderFontSize

Gets or sets the font size of the header.

HeaderFontStretch

Gets or sets the font stretch of the header.

HeaderFontStyle

Gets or sets the font style of the header.

HeaderFontWeight

Gets or sets the font weight of the header.

HeaderForeground

Gets or sets the foreground brush of the header.

HeaderPadding

Gets or sets the padding of the header.

HeaderTemplate

Gets or sets the data template used to display the header.

HorizontalHeaderAlignment

Gets or sets the HorizontalContentAlignment of the header.

IsReadOnly

Gets or sets a value that determines if the C1InputPanel is read-only.

ItemsPanelTemplate

Gets or sets a template that defines the C1InputPanel that controls the layout of items.

ItemsSource

Gets or sets a collection of items that will be shown.

ItemsTemplate

Gets or sets a template applied to C1InputPanel.

LabelForeground

Gets or sets the background of label.

MouseOverBrush

Gets or sets the Brush used to highlight the control when it has the mouse over.

NavigationBackground

Gets or sets the background of navigation bar.

NavigationButtonStyle

Gets or sets the style that will be used for C1DataPager navigation buttons.

PressedBrush

Gets or sets the Brush used to paint a button when it is pressed.

ValidationBackground

Gets or sets the background of C1InputPanelValidationSummary.

ValidationContentForeground

Gets or sets the foreground of error information content.

ValidationErrors

Indicates the list of validation errors.

ValidationHeaderForeground

Gets or sets the foreground of error information header.

VerticalHeaderAlignment

Gets or sets the VerticalContentAlignment of the header.

Methods

Name Description
ChangeVisualStateAddButtonEnableState(bool)

Updates the current visual state of the AddButtonEnableState visual state group to match the object's properties.

ChangeVisualStateAddButtonVisibility(bool)

Updates the current visual state of the AddButtonVisibility visual state group to match the object's properties.

ChangeVisualStateDeleteButtonEnableState(bool)

Updates the current visual state of the DeleteButtonEnableState visual state group to match the object's properties.

ChangeVisualStateDeleteButtonVisibility(bool)

Updates the current visual state of the DeleteButtonVisibility visual state group to match the object's properties.

ChangeVisualStateNavigationVisibility(bool)

Updates the current visual state of the NavigationVisibility visual state group to match the object's properties.

ChangeVisualStateReadOnly(bool)

Updates the current visual state of the ReadOnly visual state group to match the object's properties.

OnApplyTemplate()

Builds the visual tree for the C1InputPanel control when a new template is applied.

Events

Name Description
AddedNewItem

Occurs after new item was added.

AddingNewItem

Occurs before adding a new item.

CancelledCurrentItem

Occurs after current item was cancelled.

CurrentItemChanged

Event raised when the CurrentItem property has changed.

DeletedCurrentItem

Occurs after current item was deleted.

DeletingItem

Occurs before deleting an item.

EditedCurrentItem

Occurs after current item was edited.

GeneratingInput

EventHandler before create editor.

ValidateCurrentItem

Occurs before validation of the current item.