diff --git a/source/Coding4Fun.Toolkit.Controls/ValuePicker/Primitives/LoopingSelector.cs b/source/Coding4Fun.Toolkit.Controls/ValuePicker/Primitives/LoopingSelector.cs
index 2893451..b94cfba 100644
--- a/source/Coding4Fun.Toolkit.Controls/ValuePicker/Primitives/LoopingSelector.cs
+++ b/source/Coding4Fun.Toolkit.Controls/ValuePicker/Primitives/LoopingSelector.cs
@@ -136,6 +136,22 @@ private static void OnDataModelChanged(DependencyObject obj, DependencyPropertyC
picker.UpdateData();
}
+ ///
+ /// The ItemContainerStyle property
+ ///
+ public Style ItemContainerStyle
+ {
+ get { return (Style)GetValue(ItemContainerStyleProperty); }
+ set { SetValue(ItemContainerStyleProperty, value); }
+ }
+
+ ///
+ /// The ItemContainerStyle DependencyProperty
+ ///
+ public static readonly DependencyProperty ItemContainerStyleProperty =
+ DependencyProperty.Register("ItemContainerStyle", typeof(Style), typeof(LoopingSelector), new PropertyMetadata(null));
+
+
///
/// The ItemTemplate property
///
@@ -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;