Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -136,6 +136,22 @@ private static void OnDataModelChanged(DependencyObject obj, DependencyPropertyC
picker.UpdateData();
}

/// <summary>
/// The ItemContainerStyle property
/// </summary>
public Style ItemContainerStyle
{
get { return (Style)GetValue(ItemContainerStyleProperty); }
set { SetValue(ItemContainerStyleProperty, value); }
}

/// <summary>
/// The ItemContainerStyle DependencyProperty
/// </summary>
public static readonly DependencyProperty ItemContainerStyleProperty =
DependencyProperty.Register("ItemContainerStyle", typeof(Style), typeof(LoopingSelector), new PropertyMetadata(null));


/// <summary>
/// The ItemTemplate property
/// </summary>
Expand Down Expand Up @@ -977,10 +993,11 @@ private LoopingSelectorItem CreateAndAddItem(Panel parent, object content)
bool reuse = _temporaryItemsPool != null && _temporaryItemsPool.Count > 0;

LoopingSelectorItem wrapper = reuse ? _temporaryItemsPool.Dequeue() : new LoopingSelectorItem();

if (!reuse)
{
wrapper.ContentTemplate = this.ItemTemplate;
wrapper.Style = this.ItemContainerStyle;
wrapper.Width = ItemSize.Width;
wrapper.Height = ItemSize.Height;

Expand Down