/// <summary>
 /// Provides a secure method for setting the LayoutItem property.  
 /// This dependency property indicates the LayoutItem attached to this tag item.
 /// </summary>
 /// <param name="value">The new value for the property.</param>
 protected void SetLayoutItem(LayoutItem value)
 {
     SetValue(LayoutItemPropertyKey, value);
 }
Esempio n. 2
0
 void ApplyStyleToLayoutItem(LayoutItem layoutItem)
 {
     layoutItem._ClearDefaultBindings();
     if (LayoutItemContainerStyle != null)
         layoutItem.Style = LayoutItemContainerStyle;
     else if (LayoutItemContainerStyleSelector != null)
         layoutItem.Style = LayoutItemContainerStyleSelector.SelectStyle(layoutItem.Model, layoutItem);
     layoutItem._SetDefaultBindings();
 }