Class ItemPicker
Provides the possibility to pick items from a list of items.
Inheritance
Implements
Namespace: Sartorius.SAF.Presentation.Controls
Assembly: Sartorius.SAF.Presentation.Controls.dll
Syntax
[TemplatePart(Name = "PART_RemainingItems", Type = typeof(MultiSelector))]
[TemplatePart(Name = "PART_SelectedItems", Type = typeof(MultiSelector))]
[Export(typeof(IItemPicker))]
[PartCreationPolicy(CreationPolicy.NonShared)]
public class ItemPicker : Control, IAnimatable, ISupportInitialize, IFrameworkInputElement, IInputElement, IQueryAmbient, IItemPicker, IContentDialogContext, IDialogContext, IDataErrorInfo
  Remarks
Use the IItemPicker interface to show the control as a dialog.
Examples
The following example shows how to use the ItemPicker custom control by binding the available items and binding to the IsSelectedMemberPath. User ordering is enabled and the OrderMemberPath is bound. Two properties ('ID' and 'ShortDescription') of the picked items will be shown as columns in the item picker. Select/Unselect all buttons will be shown.
        <SAF:ItemPicker AllowSelectAll="True"
                    AvailableItems="{Binding Items}"
                    SelectionEmptyTitle="No Items selected"
                    SelectionEmptyMessage="Use the 'select' button in the header or double click items to select them."
                    IsSelectionOrdered="True"
                    IsSelectedMemberPath="IsSelected"
                    IsSelectedMemberConverter="{StaticResource VisibilityToBooleanConverter}"
                    OrderMemberPath="SortOrder">
        <SAF:ItemPicker.Columns>
            <SAF:ColumnDescriptor Header="Item ID" MemberName="ID" />
            <SAF:ColumnDescriptor Header="Short Description" MemberName="ShortDescription" />
        </SAF:ItemPicker.Columns>
    </SAF:ItemPicker>
  The following example shows how to use the ItemPicker custom control by binding to the available items and binding to the IsSelectedMemberPath. User sorting is not enabled and all properties of the picked items will be shown as columns in the picker. This includes the IsSelected property!
        <SAF:ItemPicker AvailableItems="{Binding Items}"
                    IsSelectedMemberPath="IsSelected"
                    IsSelectedMemberConverter="{StaticResource VisibilityToBooleanConverter}" />
  The following example shows how to bind the SelectedItems property to a property named SelectedUsers in your viewmodel.
        <SAF:ItemPicker x:Name="UserPicker"
                    AvailableItems="{Binding Items}">
        <SAF:ItemPicker.Columns>
            <SAF:ColumnDescriptor Header="Name" MemberName="Name" />
        </SAF:ItemPicker.Columns>
        <SAF:Interaction.Pipes>
            <SAF:DependencyPropertyPipe Source="{Binding SelectedItems, ElementName=UserPicker}"
                                        Target="{Binding SelectedUsers, Mode=OneWayToSource}" />
            <SAF:EventPipe EventName="SelectionChanged" Command="{Binding SelectionChangedCommand}" />
        </SAF:Interaction.Pipes>
    </SAF:ItemPicker>
  Constructors
View SourceItemPicker()
Initializes a new instance of the ItemPicker class.
Declaration
public ItemPicker()
  Fields
View SourceAllowSelectAllProperty
Identifies the System.Windows.DependencyProperty for AllowSelectAll.
Declaration
public static readonly DependencyProperty AllowSelectAllProperty
  Field Value
| Type | Description | 
|---|---|
| System.Windows.DependencyProperty | 
AllSelectedMessageProperty
Identifies the System.Windows.DependencyProperty for AllSelectedMessage.
Declaration
public static readonly DependencyProperty AllSelectedMessageProperty
  Field Value
| Type | Description | 
|---|---|
| System.Windows.DependencyProperty | 
AllSelectedTitleProperty
Identifies the System.Windows.DependencyProperty for AllSelectedTitle.
Declaration
public static readonly DependencyProperty AllSelectedTitleProperty
  Field Value
| Type | Description | 
|---|---|
| System.Windows.DependencyProperty | 
AutoMarkNextItemProperty
Identifies the System.Windows.DependencyProperty for AutoMarkNextItem.
Declaration
public static readonly DependencyProperty AutoMarkNextItemProperty
  Field Value
| Type | Description | 
|---|---|
| System.Windows.DependencyProperty | 
AvailableItemsProperty
Identifies the System.Windows.DependencyProperty for AvailableItems.
Declaration
public static readonly DependencyProperty AvailableItemsProperty
  Field Value
| Type | Description | 
|---|---|
| System.Windows.DependencyProperty | 
AvailableTitleProperty
Identifies the System.Windows.DependencyProperty for AvailableTitle.
Declaration
public static readonly DependencyProperty AvailableTitleProperty
  Field Value
| Type | Description | 
|---|---|
| System.Windows.DependencyProperty | 
ColumnsProperty
Identifies the System.Windows.DependencyProperty for Columns.
Declaration
public static readonly DependencyProperty ColumnsProperty
  Field Value
| Type | Description | 
|---|---|
| System.Windows.DependencyProperty | 
EmptyFilteredMessageProperty
Identifies the System.Windows.DependencyProperty for EmptyFilteredMessage.
Declaration
public static readonly DependencyProperty EmptyFilteredMessageProperty
  Field Value
| Type | Description | 
|---|---|
| System.Windows.DependencyProperty | 
EmptyFilteredTitleProperty
Identifies the System.Windows.DependencyProperty for EmptyFilteredTitle.
Declaration
public static readonly DependencyProperty EmptyFilteredTitleProperty
  Field Value
| Type | Description | 
|---|---|
| System.Windows.DependencyProperty | 
IsSelectedMemberConverterParameterProperty
Identifies the System.Windows.DependencyProperty for IsSelectedMemberConverterParameter.
Declaration
public static readonly DependencyProperty IsSelectedMemberConverterParameterProperty
  Field Value
| Type | Description | 
|---|---|
| System.Windows.DependencyProperty | 
IsSelectedMemberConverterProperty
Identifies the System.Windows.DependencyProperty for IsSelectedMemberConverter.
Declaration
public static readonly DependencyProperty IsSelectedMemberConverterProperty
  Field Value
| Type | Description | 
|---|---|
| System.Windows.DependencyProperty | 
IsSelectedMemberPathProperty
Identifies the System.Windows.DependencyProperty for IsSelectedMemberPath.
Declaration
public static readonly DependencyProperty IsSelectedMemberPathProperty
  Field Value
| Type | Description | 
|---|---|
| System.Windows.DependencyProperty | 
IsSelectionOrderedProperty
Identifies the System.Windows.DependencyProperty for IsSelectionOrdered.
Declaration
public static readonly DependencyProperty IsSelectionOrderedProperty
  Field Value
| Type | Description | 
|---|---|
| System.Windows.DependencyProperty | 
ItemDoubleClickCommandProperty
Identifies the System.Windows.DependencyProperty for ItemDoubleClickCommand.
Declaration
public static readonly DependencyProperty ItemDoubleClickCommandProperty
  Field Value
| Type | Description | 
|---|---|
| System.Windows.DependencyProperty | 
MarkAllCommandProperty
Identifies the System.Windows.DependencyProperty for MarkAllCommand.
Declaration
public static readonly DependencyProperty MarkAllCommandProperty
  Field Value
| Type | Description | 
|---|---|
| System.Windows.DependencyProperty | 
MarkAllCommandTooltipProperty
Identifies the System.Windows.DependencyProperty for a tooltip of the command MarkAllCommand.
Declaration
public static readonly DependencyProperty MarkAllCommandTooltipProperty
  Field Value
| Type | Description | 
|---|---|
| System.Windows.DependencyProperty | 
MarkedRemainingItemsProperty
Identifies the System.Windows.DependencyProperty for MarkedRemainingItems.
Declaration
public static readonly DependencyProperty MarkedRemainingItemsProperty
  Field Value
| Type | Description | 
|---|---|
| System.Windows.DependencyProperty | 
MarkedSelectedItemsProperty
Identifies the System.Windows.DependencyProperty for MarkedSelectedItems.
Declaration
public static readonly DependencyProperty MarkedSelectedItemsProperty
  Field Value
| Type | Description | 
|---|---|
| System.Windows.DependencyProperty | 
MaxNumberOfSelectableRemainingItemsProperty
Identifies the System.Windows.DependencyProperty for MaxNumberOfSelectableRemainingItems.
Declaration
public static readonly DependencyProperty MaxNumberOfSelectableRemainingItemsProperty
  Field Value
| Type | Description | 
|---|---|
| System.Windows.DependencyProperty | 
MaxSelectedItemCountProperty
Identifies the System.Windows.DependencyProperty for MaxSelectedItemCount.
Declaration
public static readonly DependencyProperty MaxSelectedItemCountProperty
  Field Value
| Type | Description | 
|---|---|
| System.Windows.DependencyProperty | 
MoveDownCommandProperty
Identifies the System.Windows.DependencyProperty for MoveDownCommand.
Declaration
public static readonly DependencyProperty MoveDownCommandProperty
  Field Value
| Type | Description | 
|---|---|
| System.Windows.DependencyProperty | 
MoveDownCommandTooltipProperty
Identifies the System.Windows.DependencyProperty for a tooltip of the command MoveDownCommand.
Declaration
public static readonly DependencyProperty MoveDownCommandTooltipProperty
  Field Value
| Type | Description | 
|---|---|
| System.Windows.DependencyProperty | 
MoveUpCommandProperty
Identifies the System.Windows.DependencyProperty for MoveUpCommand.
Declaration
public static readonly DependencyProperty MoveUpCommandProperty
  Field Value
| Type | Description | 
|---|---|
| System.Windows.DependencyProperty | 
MoveUpCommandTooltipProperty
Identifies the System.Windows.DependencyProperty for a tooltip of the command MoveUpCommand.
Declaration
public static readonly DependencyProperty MoveUpCommandTooltipProperty
  Field Value
| Type | Description | 
|---|---|
| System.Windows.DependencyProperty | 
OrderMemberConverterParameterProperty
Identifies the System.Windows.DependencyProperty for OrderMemberConverter.
Declaration
public static readonly DependencyProperty OrderMemberConverterParameterProperty
  Field Value
| Type | Description | 
|---|---|
| System.Windows.DependencyProperty | 
OrderMemberConverterProperty
Identifies the System.Windows.DependencyProperty for OrderMemberConverter.
Declaration
public static readonly DependencyProperty OrderMemberConverterProperty
  Field Value
| Type | Description | 
|---|---|
| System.Windows.DependencyProperty | 
OrderMemberPathProperty
Identifies the System.Windows.DependencyProperty for OrderMemberPath.
Declaration
public static readonly DependencyProperty OrderMemberPathProperty
  Field Value
| Type | Description | 
|---|---|
| System.Windows.DependencyProperty | 
RemainingItemsViewProperty
Identifies the System.Windows.DependencyProperty for RemainingItemsView.
Declaration
public static readonly DependencyProperty RemainingItemsViewProperty
  Field Value
| Type | Description | 
|---|---|
| System.Windows.DependencyProperty | 
SelectedItemsProperty
Identifies the System.Windows.DependencyProperty for the SelectedItems.
Declaration
public static readonly DependencyProperty SelectedItemsProperty
  Field Value
| Type | Description | 
|---|---|
| System.Windows.DependencyProperty | 
SelectedItemsViewProperty
Identifies the System.Windows.DependencyProperty for SelectedItemsView.
Declaration
public static readonly DependencyProperty SelectedItemsViewProperty
  Field Value
| Type | Description | 
|---|---|
| System.Windows.DependencyProperty | 
SelectedTitleProperty
Identifies the System.Windows.DependencyProperty for SelectedTitle.
Declaration
public static readonly DependencyProperty SelectedTitleProperty
  Field Value
| Type | Description | 
|---|---|
| System.Windows.DependencyProperty | 
SelectionCountFormatProperty
Identifies the System.Windows.DependencyProperty for SelectedTitle.
Declaration
public static readonly DependencyProperty SelectionCountFormatProperty
  Field Value
| Type | Description | 
|---|---|
| System.Windows.DependencyProperty | 
SelectionEmptyMessageProperty
Identifies the System.Windows.DependencyProperty for SelectionEmptyMessage.
Declaration
public static readonly DependencyProperty SelectionEmptyMessageProperty
  Field Value
| Type | Description | 
|---|---|
| System.Windows.DependencyProperty | 
SelectionEmptyTitleProperty
Identifies the System.Windows.DependencyProperty for SelectionEmptyTitle.
Declaration
public static readonly DependencyProperty SelectionEmptyTitleProperty
  Field Value
| Type | Description | 
|---|---|
| System.Windows.DependencyProperty | 
UnmarkAllCommandProperty
Identifies the System.Windows.DependencyProperty for UnmarkAllCommand.
Declaration
public static readonly DependencyProperty UnmarkAllCommandProperty
  Field Value
| Type | Description | 
|---|---|
| System.Windows.DependencyProperty | 
UnmarkAllCommandTooltipProperty
Identifies the System.Windows.DependencyProperty for a tooltip of the command UnmarkAllCommand.
Declaration
public static readonly DependencyProperty UnmarkAllCommandTooltipProperty
  Field Value
| Type | Description | 
|---|---|
| System.Windows.DependencyProperty | 
Properties
View SourceAllowSelectAll
Gets or sets a value indicating whether the user can select/deselect all items in a box with the select all/none button.
Declaration
public bool AllowSelectAll { get; set; }
  Property Value
| Type | Description | 
|---|---|
| System.Boolean | 
  | 
      
AllSelectedMessage
Gets or sets the message shown when all available items have been selected.
Declaration
public string AllSelectedMessage { get; set; }
  Property Value
| Type | Description | 
|---|---|
| System.String | The message shown when all available items have been selected.  | 
      
AllSelectedTitle
Gets or sets the title of the message shown when all available items have been selected.
Declaration
public string AllSelectedTitle { get; set; }
  Property Value
| Type | Description | 
|---|---|
| System.String | The title of the message shown when all available items have been selected.  | 
      
AutoMarkNextItem
Gets or sets a value indicating whether the auto mark next item
Declaration
public bool AutoMarkNextItem { get; set; }
  Property Value
| Type | Description | 
|---|---|
| System.Boolean | 
AvailableItems
Gets or sets the available items.
Declaration
public IEnumerable AvailableItems { get; set; }
  Property Value
| Type | Description | 
|---|---|
| System.Collections.IEnumerable | 
AvailableTitle
Gets or sets the title for the available selection box.
Declaration
public string AvailableTitle { get; set; }
  Property Value
| Type | Description | 
|---|---|
| System.String | 
Columns
Gets or sets the columns visible in the selection grids.
Declaration
public ColumnDescriptorCollection Columns { get; set; }
  Property Value
| Type | Description | 
|---|---|
| ColumnDescriptorCollection | 
EmptyFilteredMessage
Gets or sets the message shown when a list has been filtered empty.
Declaration
public string EmptyFilteredMessage { get; set; }
  Property Value
| Type | Description | 
|---|---|
| System.String | The message shown when a list has been filtered empty.  | 
      
EmptyFilteredTitle
Gets or sets the title shown when a list has been filtered empty.
Declaration
public string EmptyFilteredTitle { get; set; }
  Property Value
| Type | Description | 
|---|---|
| System.String | The title shown when a list has been filtered empty.  | 
      
FirstButtonCaption
The caption of the first button
Declaration
public string FirstButtonCaption { get; set; }
  Property Value
| Type | Description | 
|---|---|
| System.String | 
FirstCommand
Command for first button
Declaration
public ICommand FirstCommand { get; }
  Property Value
| Type | Description | 
|---|---|
| System.Windows.Input.ICommand | 
Info
An information message.
Declaration
public string Info { get; set; }
  Property Value
| Type | Description | 
|---|---|
| System.String | 
IsSelectedMemberConverter
Gets or sets the System.Windows.Data.IValueConverter that is used to convert the value defined by IsSelectedMemberPath to a System.Boolean.
Declaration
public IValueConverter IsSelectedMemberConverter { get; set; }
  Property Value
| Type | Description | 
|---|---|
| System.Windows.Data.IValueConverter | The System.Windows.Data.IValueConverter needed to convert the value defined by IsSelectedMemberPath to a System.Boolean  | 
      
IsSelectedMemberConverterParameter
Gets or sets the parameter used for the IsSelectedMemberConverter.
Declaration
public object IsSelectedMemberConverterParameter { get; set; }
  Property Value
| Type | Description | 
|---|---|
| System.Object | The is selected member converter parameter.  | 
      
IsSelectedMemberPath
Gets or sets a path to a value on the source object that defines whether the object is selected.
Declaration
public string IsSelectedMemberPath { get; set; }
  Property Value
| Type | Description | 
|---|---|
| System.String | The path to a value on the source object. This can be any path, or an XPath such as "@IsSelected". The default is an empty string.  | 
      
IsSelectionOrdered
Gets or sets a value indicating whether the selection is ordered.
Declaration
public bool IsSelectionOrdered { get; set; }
  Property Value
| Type | Description | 
|---|---|
| System.Boolean | 
  | 
      
Remarks
If the selection is ordered the user can order it in the item picker.
ItemDoubleClickCommand
Gets or sets the command that should be executed when an item has been double clicked.
Declaration
public ICommand ItemDoubleClickCommand { get; }
  Property Value
| Type | Description | 
|---|---|
| System.Windows.Input.ICommand | The item double click command.  | 
      
MarkAllCommand
Gets or sets a command selecting all remaining items.
Declaration
public ICommand MarkAllCommand { get; set; }
  Property Value
| Type | Description | 
|---|---|
| System.Windows.Input.ICommand | A command selecting all remaining items  | 
      
Remarks
Provide the System.Windows.Controls.Primitives.MultiSelector defined by 'PART_RemainingItems' or 'PART_SelectedItems' as CommandParameter
MarkAllCommandTooltip
Gets or sets a tooltip for the command MarkAllCommand.
Declaration
public string MarkAllCommandTooltip { get; set; }
  Property Value
| Type | Description | 
|---|---|
| System.String | 
MarkedRemainingItems
Gets or sets the remaining items that are currently selected in the System.Windows.Controls.Primitives.MultiSelector identified by Sartorius.SAF.Presentation.Controls.ItemPicker.PartNameAvailableItemsSelector.
Declaration
public IList MarkedRemainingItems { get; set; }
  Property Value
| Type | Description | 
|---|---|
| System.Collections.IList | The remaining items that are currently selected in the remaining items selector.  | 
      
MarkedSelectedItems
Gets or sets the selected items that are currently selected in the System.Windows.Controls.Primitives.MultiSelector identified by Sartorius.SAF.Presentation.Controls.ItemPicker.PartNameSelectedItemsSelector.
Declaration
public IList MarkedSelectedItems { get; set; }
  Property Value
| Type | Description | 
|---|---|
| System.Collections.IList | The selected items that are currently selected in the selected items selector.  | 
      
MaxNumberOfSelectableRemainingItems
Gets or sets the maximum number of remaining items that can still be selected.
Declaration
public int MaxNumberOfSelectableRemainingItems { get; }
  Property Value
| Type | Description | 
|---|---|
| System.Int32 | The maximum number of remaining items that can still be selected.  | 
      
MaxSelectedItemCount
Gets or sets the maximum selected item count.
Declaration
public int? MaxSelectedItemCount { get; set; }
  Property Value
| Type | Description | 
|---|---|
| System.Nullable<System.Int32> | The maximum selected item count.  | 
      
MoveDownCommand
Gets or sets a command triggering an down move of the currently selected item.
Declaration
public ICommand MoveDownCommand { get; set; }
  Property Value
| Type | Description | 
|---|---|
| System.Windows.Input.ICommand | A command triggering an down move of the currently selected item.  | 
      
MoveDownCommandTooltip
Gets or sets a tooltip for the command MoveDownCommand.
Declaration
public string MoveDownCommandTooltip { get; set; }
  Property Value
| Type | Description | 
|---|---|
| System.String | A tooltip of the command MoveDownCommand.  | 
      
MoveUpCommand
Gets or sets a command triggering an upward move of the currently selected item.
Declaration
public ICommand MoveUpCommand { get; set; }
  Property Value
| Type | Description | 
|---|---|
| System.Windows.Input.ICommand | A command triggering an upward move of the currently selected item.  | 
      
MoveUpCommandTooltip
Gets or sets a tooltip for the command MoveUpCommand.
Declaration
public string MoveUpCommandTooltip { get; set; }
  Property Value
| Type | Description | 
|---|---|
| System.String | A tooltip of the command MoveUpCommand.  | 
      
OrderMemberConverter
Gets or sets the System.Windows.Data.IValueConverter used to convert the value defined by the OrderMemberPath to an System.Int32.
Declaration
public IValueConverter OrderMemberConverter { get; set; }
  Property Value
| Type | Description | 
|---|---|
| System.Windows.Data.IValueConverter | The System.Windows.Data.IValueConverter needed to convert the value defined by IsSelectedMemberPath to a System.Boolean  | 
      
OrderMemberConverterParameter
Gets or sets the parameter used for the OrderMemberConverter.
Declaration
public object OrderMemberConverterParameter { get; set; }
  Property Value
| Type | Description | 
|---|---|
| System.Object | The order member converter parameter.  | 
      
OrderMemberPath
Gets or sets a path to a value on the source object that defines the order of the item.
Declaration
public string OrderMemberPath { get; set; }
  Property Value
| Type | Description | 
|---|---|
| System.String | The path to a value on the source object. This can be any path, or an XPath such as "@Order". The default is an empty string.  | 
      
RemainingItemsView
Gets a System.ComponentModel.ICollectionView of all remaining items that have not been selected yet.
Declaration
public ICollectionView RemainingItemsView { get; }
  Property Value
| Type | Description | 
|---|---|
| System.ComponentModel.ICollectionView | A System.ComponentModel.ICollectionView of all remaining items that have not been selected yet.  | 
      
SecondButtonCaption
The caption of the second button
Declaration
public string SecondButtonCaption { get; set; }
  Property Value
| Type | Description | 
|---|---|
| System.String | 
SecondCommand
Command for second button
Declaration
public ICommand SecondCommand { get; }
  Property Value
| Type | Description | 
|---|---|
| System.Windows.Input.ICommand | 
SelectCommandTooltip
Gets or sets a tooltip for the command Sartorius.SAF.Presentation.Controls.ItemPicker.SelectCommand.
Declaration
public string SelectCommandTooltip { get; set; }
  Property Value
| Type | Description | 
|---|---|
| System.String | A tooltip of the command Sartorius.SAF.Presentation.Controls.ItemPicker.SelectCommand.  | 
      
SelectedItems
Gets the items that are selected in the ItemPicker.
Declaration
[Bindable(true)]
public IList SelectedItems { get; }
  Property Value
| Type | Description | 
|---|---|
| System.Collections.IList | The items that are selected in the ItemPicker.  | 
      
SelectedItemsView
Gets a System.Windows.Data.ListCollectionView of all items currently selected.
Declaration
public ListCollectionView SelectedItemsView { get; }
  Property Value
| Type | Description | 
|---|---|
| System.Windows.Data.ListCollectionView | A System.Windows.Data.ListCollectionView of all items currently selected.  | 
      
SelectedTitle
Gets or sets the title for the selected selection box.
Declaration
public string SelectedTitle { get; set; }
  Property Value
| Type | Description | 
|---|---|
| System.String | 
SelectionCountFormat
Gets or sets the string used to format the current selection count (e.g. 3/10).
Declaration
public string SelectionCountFormat { get; set; }
  Property Value
| Type | Description | 
|---|---|
| System.String | 
Remarks
The default is ({0}/{1}).
SelectionEmptyMessage
Gets or sets the message shown when no items have been selected (yet).
Declaration
public string SelectionEmptyMessage { get; set; }
  Property Value
| Type | Description | 
|---|---|
| System.String | The message shown when no items have been selected (yet).  | 
      
SelectionEmptyTitle
Gets or sets the title for the message shown when no items have been selected (yet).
Declaration
public string SelectionEmptyTitle { get; set; }
  Property Value
| Type | Description | 
|---|---|
| System.String | The title for the message shown when no items have been selected (yet).  | 
      
ServiceFactory
Gets the service factory.
Declaration
protected IServiceFactory ServiceFactory { get; }
  Property Value
| Type | Description | 
|---|---|
| IServiceFactory | The service factory.  | 
      
UnmarkAllCommand
Gets or sets a command that marks all remaining items for selection.
Declaration
public ICommand UnmarkAllCommand { get; set; }
  Property Value
| Type | Description | 
|---|---|
| System.Windows.Input.ICommand | A command that marks all remaining items for selection  | 
      
Remarks
Provide the System.Windows.Controls.Primitives.MultiSelector defined by 'PART_RemainingItems' or 'PART_SelectedItems' as CommandParameter
UnmarkAllCommandTooltip
Gets or sets a tooltip for the command UnmarkAllCommand.
Declaration
public string UnmarkAllCommandTooltip { get; set; }
  Property Value
| Type | Description | 
|---|---|
| System.String | A tooltip of the command UnmarkAllCommand.  | 
      
UnselectCommandTooltip
Gets or sets a tooltip for the command Sartorius.SAF.Presentation.Controls.ItemPicker.UnselectCommand.
Declaration
public string UnselectCommandTooltip { get; set; }
  Property Value
| Type | Description | 
|---|---|
| System.String | A tooltip of the command Sartorius.SAF.Presentation.Controls.ItemPicker.UnselectCommand.  | 
      
Methods
View SourceOnClose(MessageBoxResult)
Raises CloseDialog and Closed events.
Declaration
protected void OnClose(MessageBoxResult result)
  Parameters
| Type | Name | Description | 
|---|---|---|
| System.Windows.MessageBoxResult | result | The result.  | 
      
OnKeyUp(KeyEventArgs)
Declaration
protected override void OnKeyUp(KeyEventArgs e)
  Parameters
| Type | Name | Description | 
|---|---|---|
| System.Windows.Input.KeyEventArgs | e | 
Overrides
Explicit Interface Implementations
View SourceIContentDialogContext.ThirdButtonCaption
The caption of the third button
Declaration
string IContentDialogContext.ThirdButtonCaption { get; set; }
  Returns
| Type | Description | 
|---|---|
| System.String | 
IContentDialogContext.ThirdCommand
Command for third button
Declaration
ICommand IContentDialogContext.ThirdCommand { get; }
  Returns
| Type | Description | 
|---|---|
| System.Windows.Input.ICommand | 
IDialogContext.CloseDialog
Declaration
event EventHandler IDialogContext.CloseDialog
  Returns
| Type | Description | 
|---|---|
| System.EventHandler | 
IDialogContext.ShowHelpCommand
Command to show Help
Declaration
ICommand IDialogContext.ShowHelpCommand { get; }
  Returns
| Type | Description | 
|---|---|
| System.Windows.Input.ICommand | 
IItemPicker.Closed
Occurs when the item picker dialog is closed.
Declaration
event EventHandler<ItemPickerClosedEventArgs> IItemPicker.Closed
  Returns
| Type | Description | 
|---|---|
| System.EventHandler<ItemPickerClosedEventArgs> | 
IItemPicker.Show(ItemPickerDialogArgs)
Shows the dialog.
Declaration
void IItemPicker.Show(ItemPickerDialogArgs args)
  Parameters
| Type | Name | Description | 
|---|---|---|
| ItemPickerDialogArgs | args | The arguments to configure the dialog.  | 
      
Remarks
Use the Closed event to get the result.
IItemPicker.ShowDialog(ItemPickerDialogArgs)
Shows the dialog modal.
Declaration
MessageBoxResult IItemPicker.ShowDialog(ItemPickerDialogArgs args)
  Parameters
| Type | Name | Description | 
|---|---|---|
| ItemPickerDialogArgs | args | The arguments.  | 
      
Returns
| Type | Description | 
|---|---|
| System.Windows.MessageBoxResult | System.Windows.MessageBoxResult.OK if the user acknowledged his selection, System.Windows.MessageBoxResult.Cancel otherwise.  | 
      
Remarks
args will contain the current selection of the user.
IDataErrorInfo.Error
Gets an error message indicating what is wrong with this object.
Declaration
string IDataErrorInfo.Error { get; }
  Returns
| Type | Description | 
|---|---|
| System.String | An error message indicating what is wrong with this object. The default is an empty string ("").  | 
      
IDataErrorInfo.Item[String]
Gets the error message for the property with the given name.
Declaration
string IDataErrorInfo.this[string columnName] { get; }
  Parameters
| Type | Name | Description | 
|---|---|---|
| System.String | columnName | The name of the property whose error message to get.  | 
      
Returns
| Type | Description | 
|---|---|
| System.String | The error message for the property. The default is an empty string ("").  |