Search Results for

    Show / Hide Table of Contents

    Class CustomLookupTextBox

    The Lookup textbox is a usercontrol for selecting and validating data from an custom source. All sources must be inherit from IValueSelectionProver, such as the ItemBoxSelectionProvider.

    Inheritance
    System.Object
    CustomLookupTextBox
    Namespace: Simplic.PlugIn.Logistics
    Assembly: Simplic.PlugIn.Logistics.dll
    Syntax
    public sealed class CustomLookupTextBox : LookupTextBoxBase

    Constructors

    | Improve this Doc View Source

    CustomLookupTextBox()

    Create a new lookup textbox and all its components.

    Declaration
    public CustomLookupTextBox()

    Fields

    | Improve this Doc View Source

    IdentityProperty

    Dependency property which represents the identity of the current LookupTextbox. If the property is set, the find method will be called and the system try to resolve it

    Declaration
    public static readonly DependencyProperty IdentityProperty
    Field Value
    Type Description
    System.Windows.DependencyProperty
    | Improve this Doc View Source

    IsReadOnlyProperty

    Dependency property which represents the IsReadOnly-Flag of the current LookupTextbox. If the property is set, textboxes and buttons will be readonly too

    Declaration
    public static readonly DependencyProperty IsReadOnlyProperty
    Field Value
    Type Description
    System.Windows.DependencyProperty
    | Improve this Doc View Source

    MergedIsTabStopProperty

    Dependency property which represents the MergedIsTabStopProperty-Flag of the current LookupTextbox. If the property is set, textboxes and buttons will be included in tab navigation.

    Declaration
    public static readonly DependencyProperty MergedIsTabStopProperty
    Field Value
    Type Description
    System.Windows.DependencyProperty

    Properties

    | Improve this Doc View Source

    ErrorBorderBrush

    Brush of the input textfield border if the validation failed

    Declaration
    public Brush ErrorBorderBrush { get; set; }
    Property Value
    Type Description
    System.Windows.Media.Brush
    | Improve this Doc View Source

    Identity

    Identity property, call on property changed when used

    Declaration
    public object Identity { get; set; }
    Property Value
    Type Description
    System.Object
    | Improve this Doc View Source

    IsReadOnly

    IsReadOnly property for making things readable but not changeable

    Declaration
    public object IsReadOnly { get; set; }
    Property Value
    Type Description
    System.Object
    | Improve this Doc View Source

    MergedIsTabStop

    Gets or sets a value that indicates whether a control is included in tab navigation.

    Declaration
    public bool? MergedIsTabStop { get; set; }
    Property Value
    Type Description
    System.Nullable<System.Boolean>
    | Improve this Doc View Source

    Provider

    Get the current registered provider

    Declaration
    public IValueSelectionProvider Provider { get; set; }
    Property Value
    Type Description
    IValueSelectionProvider
    | Improve this Doc View Source

    Result

    Current result object

    Declaration
    public SelectorLookupResult Result { get; }
    Property Value
    Type Description
    SelectorLookupResult
    | Improve this Doc View Source

    ShowIdentityTextBox

    Defines if the scond textbox should be shown or not (Identity-TextBox)

    Declaration
    public bool ShowIdentityTextBox { get; set; }
    Property Value
    Type Description
    System.Boolean
    | Improve this Doc View Source

    ShowValueSelectorKey

    Set the key on which the selection provider should open and select a value

    Declaration
    public Key ShowValueSelectorKey { get; set; }
    Property Value
    Type Description
    System.Windows.Input.Key

    Methods

    | Improve this Doc View Source

    FocusInputBox()

    Focus the input-textbox of this control

    Declaration
    public void FocusInputBox()
    | Improve this Doc View Source

    Initialize(IValueSelectionProvider)

    Initialize a new selection provider. This must only done on setting up a new window

    Declaration
    public void Initialize(IValueSelectionProvider provider)
    Parameters
    Type Name Description
    IValueSelectionProvider provider

    Instance of a selection provider

    | Improve this Doc View Source

    OnGotFocus(RoutedEventArgs)

    Got focus redirect to textbox

    Declaration
    protected override void OnGotFocus(RoutedEventArgs e)
    Parameters
    Type Name Description
    System.Windows.RoutedEventArgs e
    | Improve this Doc View Source

    OnGotKeyboardFocus(KeyboardFocusChangedEventArgs)

    Got focus redirect to textbox

    Declaration
    protected override void OnGotKeyboardFocus(KeyboardFocusChangedEventArgs e)
    Parameters
    Type Name Description
    System.Windows.Input.KeyboardFocusChangedEventArgs e
    | Improve this Doc View Source

    SetDependentLookupTextBox(CustomLookupTextBox, Object[])

    Make this LookupTextBox depending of another lookup textbox result

    Declaration
    public void SetDependentLookupTextBox(CustomLookupTextBox dependentTextBox, params object[] parameter)
    Parameters
    Type Name Description
    CustomLookupTextBox dependentTextBox

    Instance of a lookup textbox

    System.Object[] parameter

    Parameter which will be passed to the Lookup-Interface

    | Improve this Doc View Source

    SetOnAddItem(CustomLookupTextBox.AddItem)

    Set the delegate which will be called, if an item should be added

    Declaration
    public void SetOnAddItem(CustomLookupTextBox.AddItem onAddItemDelegate)
    Parameters
    Type Name Description
    CustomLookupTextBox.AddItem onAddItemDelegate

    Pointer to the add function

    | Improve this Doc View Source

    SetValidationResult(SelectorLookupResult, Boolean)

    Set validated valies on the ui

    Declaration
    public void SetValidationResult(SelectorLookupResult result, bool setIdentityProperty = true)
    Parameters
    Type Name Description
    SelectorLookupResult result

    Object containing all information for setting the validation result

    System.Boolean setIdentityProperty

    Defines whether to set the identity property and bind

    Events

    | Improve this Doc View Source

    SelectionChanged

    Will be called if the selection changed

    Declaration
    public event CustomLookupTextBox.SelectionChangedHandler SelectionChanged
    Event Type
    Type Description
    CustomLookupTextBox.SelectionChangedHandler
    • Improve this Doc
    • View Source
    In This Article
    Back to top Copyright © 2018 SIMPLIC GmbH
    Generated by DocFx