本文整理汇总了C#中System.Windows.Controls.DataGridRow.SetValue方法的典型用法代码示例。如果您正苦于以下问题:C# DataGridRow.SetValue方法的具体用法?C# DataGridRow.SetValue怎么用?C# DataGridRow.SetValue使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类System.Windows.Controls.DataGridRow
的用法示例。
在下文中一共展示了DataGridRow.SetValue方法的5个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: SetMoveDragFormat
/// <summary>
/// Sets the drag format when this instance is being dragged above or below another row.
/// </summary>
/// <param name="dataGridRow">The data grid row.</param>
/// <param name="format">The drag format used when this instance is being dragged above or below another row.</param>
public static void SetMoveDragFormat(DataGridRow dataGridRow, string format)
{
dataGridRow.SetValue(MoveDragFormatProperty, format);
}
示例2: SetMoveDragContentTemplate
/// <summary>
/// Sets the content template when this instance is being dragged above or below another row.
/// </summary>
/// <param name="dataGridRow">The data grid row.</param>
/// <param name="value">A data template used when this instance is being dragged above or below another row.</param>
public static void SetMoveDragContentTemplate(DataGridRow dataGridRow, DataTemplate value)
{
dataGridRow.SetValue(MoveDragContentTemplateProperty, value);
}
示例3: SetIsReadOnly
/// <summary>
/// Sets the is read only flag for the row.
/// </summary>
/// <param name="dataGridRow">The data grid row.</param>
/// <param name="value">if set to <c>true</c> the row is read only.</param>
public static void SetIsReadOnly(DataGridRow dataGridRow, bool value)
{
dataGridRow.SetValue(IsReadOnlyProperty, value);
}
示例4: SetMoveBelowCommand
/// <summary>
/// Sets the command used to move another row below this one using drag and drop.
/// </summary>
/// <param name="dataGridRow">The data grid row.</param>
/// <param name="command">The command to move a row below this instance.</param>
public static void SetMoveBelowCommand(DataGridRow dataGridRow, ICommand command)
{
dataGridRow.SetValue(MoveBelowCommandProperty, command);
}
示例5: SetIsDeselectionEnabled
/// <summary>
/// Sets the deselection enabled property. If enabled, and the row is clicked while selected, the row is deselected.
/// </summary>
/// <param name="dataGridRow">The data grid row.</param>
/// <param name="value">if set to <c>true</c> deselects the row when selected and clicked.</param>
public static void SetIsDeselectionEnabled(DataGridRow dataGridRow, bool value)
{
dataGridRow.SetValue(IsDeselectionEnabledProperty, value);
}