Skip to end of metadata
Go to start of metadata

Remarks

UXDataLookupBox is inherited from UXDataComboBox  which represents a queryable combo box control. This means that it shares all the common features of UXDataComboBox related to data querying. You can add additional custom lookup elements to UXDataLookupBox by creating your own data template and specify it in the LookupTemplate property.

To learn more about UXDataLookupBox, see UXDataLookupBox Overview.

Definition

public class UXDataLookupBox : UXDataComboBox

Summary

The following table summarizes the members exposed in this class.

Public Constructors

UXDataLookupBox Constructor()Initializes a new instance of the UXDataLookupBox class.

Public Properties

CloseCommand 
IsLookupOpenGets or sets whether the lookup menu is currently displaying on the screen.
LookupBackgroundRepresents the brush used to draw the lookup background.
LookupBorderBrushRepresents the brush used to draw the lookup border.
LookupBorderThicknessGets or sets the lookup border thickness.
LookupBoundaryOffsetGets or set the minimum lookup boundary offset.
LookupCornerRadiusCorner Radius for input template binding.
LookupDisplayAnimationGets or sets a value that determines the lookup display animation.
LookupEffectGets or sets the System.Windows.Media.Effects.Effect to apply to the lookup element.
LookupEnableFadeInAnimationGets or sets a value that determines whether the lookup fade animation is enabled.
LookupEnableFadeOutAnimationGets or sets a value that determines whether the lookup fade animation is enabled.
LookupHeightGets or sets the height of content inside lookup container.
LookupHeightCalculatedGets or sets the height of content inside lookup container.
LookupHideAnimationGets or sets a value that determines the lookup hide animation.
LookupHorizontalOffsetGets or sets the distance between the left side of the Silverlight control and the left side of the lookup.
LookupItemGets or sets the look up item.
LookupPreferredHorizontalDirectionGets or sets the preferred lookup horizontal direction.
LookupPreferredPositionGets or sets the preferred lookup positions.
LookupPreferredVerticalDirectionGets or sets the preferred lookup vertical direction.
LookupSlideDirectionGets or sets a value that determine the lookup slide direction when slide animation is used.
LookupStaysOpenGets or sets a value that determines whether the lookup stays open regardless the hide command.
LookupTemplateRepresents the data templated used for data look up
LookupVerticalOffsetGets or sets the distance between the top of the Silverlight control and the top of the lookup.
LookupWidthGets or sets the width of content inside lookup container.
MaxLookupHeightGets or sets the maximum height of content inside lookup container.
MaxLookupWidthGets or sets the maximum width of content inside lookup container.
MinLookupHeightGets or sets the minimum height of content inside lookup container.
MinLookupWidthGets or sets the minimum width of content inside lookup container.
MinLookupWidthCalculatedGets or sets the minimum width of content inside lookup container.

Fields

CloseCommandPropertyIdentifies the CloseCommand dependency property.
IsLookupOpenPropertyIdentifies the IsLookupOpen dependency property.
LookupBackgroundPropertyIdentifies the LookupBackground dependency property.
LookupBorderBrushPropertyIdentifies the "LookupBorderBrush dependency property.
LookupBorderThicknessPropertyIdentifies the LookupBorderThickness dependency property.
LookupBoundaryOffsetPropertyIdentifies the LookupBoundaryOffset dependency property.
LookupCornerRadiusPropertyIdentifies the LookupCornerRadius dependency property.
LookupDisplayAnimationPropertyIdentifies the LookupDisplayAnimation dependency property.
LookupEffectPropertyIdentifies the LookupEffect dependency property.
LookupEnableFadeInAnimationPropertyIdentifies the LookupEnableFadeAnimation dependency property.
LookupEnableFadeOutAnimationPropertyIdentifies the LookupEnableFadeAnimation dependency property.
LookupHeightCalculatedPropertyIdentifies the LookupHeightCalculated dependency property.
LookupHeightPropertyIdentifies the LookupHeight dependency property.
LookupHideAnimationPropertyIdentifies the LookupHideAnimation dependency property.
LookupHorizontalOffsetPropertyIdentifies the LookupHorizontalOffset dependency property.
LookupItemProperty 
LookupPreferredHorizontalDirectionPropertyIdentifies the LookupPreferredPosition dependency property.
LookupPreferredPositionPropertyIdentifies the LookupPreferredPosition dependency property.
LookupPreferredVerticalDirectionPropertyIdentifies the LookupPreferredVerticalDirection dependency property.
LookupSlideDirectionPropertyIdentifies the LookupSlideDirection dependency property.
LookupStaysOpenPropertyIdentifies the LookupStaysOpen dependency property.
LookupTemplatePropertyIdentifies the LookupTemplate dependency property.
LookupVerticalOffsetPropertyIdentifies the LookupVerticalOffset dependency property.
LookupWidthPropertyIdentifies the LookupWidth dependency property.
MaxLookupHeightPropertyIdentifies the MaxLookupHeight dependency property.
MaxLookupWidthPropertyIdentifies the MaxLookupWidth dependency property.
MinLookupHeightPropertyIdentifies the MinLookupHeight dependency property.
MinLookupWidthCalculatedPropertyIdentifies the MinLookupWidthCalculated dependency property.
MinLookupWidthPropertyIdentifies the MinLookupWidth dependency property.

Public Methods

AttachEventHandlers()Attach built-in event handlers to control templates. Call this method if necessary.
DetachedEventHandlers()Detach built-in event handlers from control templates. Call this method if necessary.
Dispose() 
InitializeTemplates()Initializes control templates.

Protected Methods

LookupMenuStateChanged(bool)On lookup menu state changed.
Menu_Closed(object, ISRoutedEventArgs)On drop down menu closed.
Menu_Opened(object, ISRoutedEventArgs)On drop down menu opened.
Menu_Repositioned(object, UXPopUpEventArgs)On drop down menu repositioned.
OnCornerRadiusChanged(CornerRadius)Called when the value of CornerRadius property changes.
OnKeyDown(KeyEventArgs) 
OnSelectedItemChanged(object, object) 

Public Constructors

public UXDataLookupBox()

Initializes a new instance of the UXDataLookupBox class.

Public Properties

public ICommand CloseCommand { get; set; }

 

public bool IsLookupOpen { get; set; }

Gets or sets whether the lookup menu is currently displaying on the screen.

public Brush LookupBackground { get; set; }

Represents the brush used to draw the lookup background.

public Brush LookupBorderBrush { get; set; }

Represents the brush used to draw the lookup border.

public Thickness LookupBorderThickness { get; set; }

Gets or sets the lookup border thickness.

public Thickness LookupBoundaryOffset { get; set; }

Gets or set the minimum lookup boundary offset.

public CornerRadius LookupCornerRadius { get; set; }

Corner Radius for input template binding.

public PopupAnimation LookupDisplayAnimation { get; set; }

Gets or sets a value that determines the lookup display animation.

public Effect LookupEffect { get; set; }

Gets or sets the System.Windows.Media.Effects.Effect to apply to the lookup element.

public bool LookupEnableFadeInAnimation { get; set; }

Gets or sets a value that determines whether the lookup fade animation is enabled.

public bool LookupEnableFadeOutAnimation { get; set; }

Gets or sets a value that determines whether the lookup fade animation is enabled.

public double LookupHeight { get; set; }

Gets or sets the height of content inside lookup container.

public double LookupHeightCalculated { get; set; }

Gets or sets the height of content inside lookup container.

public PopupAnimation LookupHideAnimation { get; set; }

Gets or sets a value that determines the lookup hide animation.

public double LookupHorizontalOffset { get; set; }

Gets or sets the distance between the left side of the Silverlight control and the left side of the lookup.

public object LookupItem { get; set; }

Gets or sets the look up item.

public PopupHorizontalDirection LookupPreferredHorizontalDirection { get; set; }

Gets or sets the preferred lookup horizontal direction.

public PopupPosition LookupPreferredPosition { get; set; }

Gets or sets the preferred lookup positions.

public PopupVerticalDirection LookupPreferredVerticalDirection { get; set; }

Gets or sets the preferred lookup vertical direction.

public Direction LookupSlideDirection { get; set; }

Gets or sets a value that determine the lookup slide direction when slide animation is used.

public bool LookupStaysOpen { get; set; }

Gets or sets a value that determines whether the lookup stays open regardless the hide command.

public DataTemplate LookupTemplate { get; set; }

Represents the data templated used for data look up

public double LookupVerticalOffset { get; set; }

Gets or sets the distance between the top of the Silverlight control and the top of the lookup.

public double LookupWidth { get; set; }

Gets or sets the width of content inside lookup container.

public double MaxLookupHeight { get; set; }

Gets or sets the maximum height of content inside lookup container.

public double MaxLookupWidth { get; set; }

Gets or sets the maximum width of content inside lookup container.

public double MinLookupHeight { get; set; }

Gets or sets the minimum height of content inside lookup container.

public double MinLookupWidth { get; set; }

Gets or sets the minimum width of content inside lookup container.

public double MinLookupWidthCalculated { get; set; }

Gets or sets the minimum width of content inside lookup container.

Fields

public static readonly DependencyProperty CloseCommandProperty

Identifies the CloseCommand dependency property.

public static readonly DependencyProperty IsLookupOpenProperty

Identifies the IsLookupOpen dependency property.

public static readonly DependencyProperty LookupBackgroundProperty

Identifies the LookupBackground dependency property.

public static readonly DependencyProperty LookupBorderBrushProperty

Identifies the "LookupBorderBrush dependency property.

public static readonly DependencyProperty LookupBorderThicknessProperty

Identifies the LookupBorderThickness dependency property.

public static readonly DependencyProperty LookupBoundaryOffsetProperty

Identifies the LookupBoundaryOffset dependency property.

public static readonly DependencyProperty LookupCornerRadiusProperty

Identifies the LookupCornerRadius dependency property.

public static readonly DependencyProperty LookupDisplayAnimationProperty

Identifies the LookupDisplayAnimation dependency property.

public static readonly DependencyProperty LookupEffectProperty

Identifies the LookupEffect dependency property.

public static readonly DependencyProperty LookupEnableFadeInAnimationProperty

Identifies the LookupEnableFadeAnimation dependency property.

public static readonly DependencyProperty LookupEnableFadeOutAnimationProperty

Identifies the LookupEnableFadeAnimation dependency property.

public static readonly DependencyProperty LookupHeightCalculatedProperty

Identifies the LookupHeightCalculated dependency property.

public static readonly DependencyProperty LookupHeightProperty

Identifies the LookupHeight dependency property.

public static readonly DependencyProperty LookupHideAnimationProperty

Identifies the LookupHideAnimation dependency property.

public static readonly DependencyProperty LookupHorizontalOffsetProperty

Identifies the LookupHorizontalOffset dependency property.

public static readonly DependencyProperty LookupItemProperty

 

public static readonly DependencyProperty LookupPreferredHorizontalDirectionProperty

Identifies the LookupPreferredPosition dependency property.

public static readonly DependencyProperty LookupPreferredPositionProperty

Identifies the LookupPreferredPosition dependency property.

public static readonly DependencyProperty LookupPreferredVerticalDirectionProperty

Identifies the LookupPreferredVerticalDirection dependency property.

public static readonly DependencyProperty LookupSlideDirectionProperty

Identifies the LookupSlideDirection dependency property.

public static readonly DependencyProperty LookupStaysOpenProperty

Identifies the LookupStaysOpen dependency property.

public static readonly DependencyProperty LookupTemplateProperty

Identifies the LookupTemplate dependency property.

public static readonly DependencyProperty LookupVerticalOffsetProperty

Identifies the LookupVerticalOffset dependency property.

public static readonly DependencyProperty LookupWidthProperty

Identifies the LookupWidth dependency property.

public static readonly DependencyProperty MaxLookupHeightProperty

Identifies the MaxLookupHeight dependency property.

public static readonly DependencyProperty MaxLookupWidthProperty

Identifies the MaxLookupWidth dependency property.

public static readonly DependencyProperty MinLookupHeightProperty

Identifies the MinLookupHeight dependency property.

public static readonly DependencyProperty MinLookupWidthCalculatedProperty

Identifies the MinLookupWidthCalculated dependency property.

public static readonly DependencyProperty MinLookupWidthProperty

Identifies the MinLookupWidth dependency property.

Public Methods

public void AttachEventHandlers()

Attach built-in event handlers to control templates. Call this method if necessary.

public void DetachedEventHandlers()

Detach built-in event handlers from control templates. Call this method if necessary.

public void Dispose()

 

public void InitializeTemplates()

Initializes control templates.

Protected Methods

protected void LookupMenuStateChanged(bool isOpen)

On lookup menu state changed.

Parameters

isOpenA value that indicates whether the menu is being opened or closed.

 

protected void Menu_Closed(object sender, ISRoutedEventArgs e)

On drop down menu closed.

Parameters

sender 
e 

 

protected void Menu_Opened(object sender, ISRoutedEventArgs e)

On drop down menu opened.

Parameters

sender 
e 

 

protected void Menu_Repositioned(object sender, UXPopUpEventArgs e)

On drop down menu repositioned.

Parameters

sender 
e 

 

protected void OnCornerRadiusChanged(CornerRadius newRadius)

Called when the value of CornerRadius property changes.

Parameters

newRadiusThe new corner radius.

 

protected void OnKeyDown(KeyEventArgs e)

 

Parameters

e 

 

protected void OnSelectedItemChanged(object oldItem, object newItem)

 

Parameters

oldItem 
newItem 
  • No labels