本文整理汇总了C#中System.Windows.Controls.ItemsControl.SetValue方法的典型用法代码示例。如果您正苦于以下问题:C# ItemsControl.SetValue方法的具体用法?C# ItemsControl.SetValue怎么用?C# ItemsControl.SetValue使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类System.Windows.Controls.ItemsControl
的用法示例。
在下文中一共展示了ItemsControl.SetValue方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: SetItemsDoubleClick
public static void SetItemsDoubleClick(ItemsControl element, bool value)
{
element.SetValue(ItemsDoubleClickProperty, value);
if (value)
{
element.PreviewMouseDoubleClick += new MouseButtonEventHandler(element_PreviewMouseDoubleClick);
}
}
示例2: EnsureInstance
/// <summary>
/// Get the instance of TextSearch attached to the given ItemsControl or make one and attach it if it's not.
/// </summary>
/// <param name="itemsControl"></param>
/// <returns></returns>
internal static TextSearch EnsureInstance(ItemsControl itemsControl)
{
TextSearch instance = (TextSearch)itemsControl.GetValue(TextSearchInstanceProperty);
if (instance == null)
{
instance = new TextSearch(itemsControl);
itemsControl.SetValue(TextSearchInstancePropertyKey, instance);
}
return instance;
}
示例3: SetColumnDefinitionsSource
public static void SetColumnDefinitionsSource(ItemsControl obj, IEnumerable<ColumnDefinition> value)
{
obj.SetValue(ColumnDefinitionsSourceProperty, value);
}
示例4: SetItemContainersGeneratedCommand
public static void SetItemContainersGeneratedCommand(ItemsControl ItemsControl, ICommand Value)
{
ItemsControl.SetValue(ItemContainersGeneratedCommandProperty, Value);
}
示例5: SetAutoUniformWidth
public static void SetAutoUniformWidth(ItemsControl obj, bool value)
{
obj.SetValue(UseAutoUniformWidthProperty, value);
}
示例6: SetItemsControlManager
private static void SetItemsControlManager(ItemsControl itemsControl, ItemsControlManager value)
{
itemsControl.SetValue(ItemsControlManagerProperty, value);
}
示例7: GetOrCreateItemsControlDropBehavior
private static ItemsControlDropCommandBehavior GetOrCreateItemsControlDropBehavior(ItemsControl itemsControl)
{
var behavior = itemsControl.GetValue(ItemsControlDropCommandBehaviorProperty) as ItemsControlDropCommandBehavior;
if (behavior == null)
{
behavior = new ItemsControlDropCommandBehavior(itemsControl);
itemsControl.SetValue(ItemsControlDropCommandBehaviorProperty, behavior);
}
return behavior;
}
示例8: SetAnimationDuration
/// <summary>
/// Sets the duration of the animation.
/// </summary>
/// <param name="itemsControl">The items control.</param>
/// <param name="value">The value.</param>
public static void SetAnimationDuration(ItemsControl itemsControl, TimeSpan value)
{
itemsControl.SetValue(AnimationDurationProperty, value);
}
示例9: DropBehavior
internal DropBehavior(ItemsControl element)
{
_element = element;
_element.SetValue(BehaviorProperty,this);
RegisterEvent();
}
示例10: SetItemContainersGeneratedCommandWeakEventListener
private static void SetItemContainersGeneratedCommandWeakEventListener(ItemsControl Element, IWeakEventListener Value)
{
Element.SetValue(ItemContainersGeneratedCommandWeakEventListenerProperty, Value);
}
示例11: SetScrollToNewItemWeakEventListener
private static void SetScrollToNewItemWeakEventListener(ItemsControl Element, IWeakEventListener Value)
{
Element.SetValue(ScrollToNewItemWeakEventListenerProperty, Value);
}
示例12: SetScrollToNewItemFocusSpecificElementName
public static void SetScrollToNewItemFocusSpecificElementName(ItemsControl ItemsControl, string Value)
{
ItemsControl.SetValue(ScrollToNewItemFocusSpecificElementNameProperty, Value);
}
示例13: SetScrollToNewItem
public static void SetScrollToNewItem(ItemsControl ItemsControl, bool Value)
{
ItemsControl.SetValue(ScrollToNewItemProperty, Value);
}
示例14: SetItemContainersGeneratedCommandParameter
public static void SetItemContainersGeneratedCommandParameter(ItemsControl ItemsControl, object Value)
{
ItemsControl.SetValue(ItemContainersGeneratedCommandParameterProperty, Value);
}
示例15: SetGroupStyles
/// <summary>
/// Sets the group styles.
/// </summary>
/// <param name="itemsControl">The items control.</param>
/// <param name="value">The value.</param>
public static void SetGroupStyles(ItemsControl itemsControl, GroupStyleCollection value)
{
itemsControl.SetValue(GroupStylesProperty, value);
}