当前位置: 首页>>代码示例>>C#>>正文


C# DependencyObject.GetAttachedPropertyValue方法代码示例

本文整理汇总了C#中DependencyObject.GetAttachedPropertyValue方法的典型用法代码示例。如果您正苦于以下问题:C# DependencyObject.GetAttachedPropertyValue方法的具体用法?C# DependencyObject.GetAttachedPropertyValue怎么用?C# DependencyObject.GetAttachedPropertyValue使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在DependencyObject的用法示例。


在下文中一共展示了DependencyObject.GetAttachedPropertyValue方法的10个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。

示例1: GetDock

 /// <summary>
 /// Getter method for the attached property <c>Dock</c>.
 /// </summary>
 /// <param name="targetObject">The object whose property value will
 /// be returned.</param>
 /// <returns>Value of the <c>Dock</c> property on the
 /// <paramref name="targetObject"/>.</returns>
 public static Dock GetDock(DependencyObject targetObject)
 {
   return targetObject.GetAttachedPropertyValue<Dock>(DOCK_ATTACHED_PROPERTY, Dock.Left);
 }
开发者ID:chekiI,项目名称:MediaPortal-2,代码行数:11,代码来源:DockPanel.cs

示例2: GetSetterData

 protected SetterData GetSetterData(DependencyObject targetObject)
 {
   return targetObject.GetAttachedPropertyValue<SetterData>(GetAttachedPropertyName(), null);
 }
开发者ID:joconno4,项目名称:MediaPortal-2,代码行数:4,代码来源:Setter.cs

示例3: GetTargetProperty

 /// <summary>
 /// Getter method for the attached property <c>TargetProperty</c>.
 /// </summary>
 /// <param name="targetObject">The object whose property value will
 /// be returned.</param>
 /// <returns>Value of the <c>TargetProperty</c> property on the
 /// <paramref name="targetObject"/>.</returns>
 public static string GetTargetProperty(DependencyObject targetObject)
 {
   return targetObject.GetAttachedPropertyValue<string>(TARGET_PROPERTY_ATTACHED_PROPERTY, null);
 }
开发者ID:VicDemented,项目名称:MediaPortal-2,代码行数:11,代码来源:Storyboard.cs

示例4: GetTop

 /// <summary>
 /// Getter method for the attached property <c>Top</c>.
 /// </summary>
 /// <param name="targetObject">The object whose property value will
 /// be returned.</param>
 /// <returns>Value of the <c>Top</c> property on the
 /// <paramref name="targetObject"/>.</returns>
 public static double GetTop(DependencyObject targetObject)
 {
   return targetObject.GetAttachedPropertyValue<double>(TOP_ATTACHED_PROPERTY, 0.0);
 }
开发者ID:joconno4,项目名称:MediaPortal-2,代码行数:11,代码来源:Canvas.cs

示例5: GetBottom

 /// <summary>
 /// Getter method for the attached property <c>Bottom</c>.
 /// </summary>
 /// <param name="targetObject">The object whose property value will
 /// be returned.</param>
 /// <returns>Value of the <c>Bottom</c> property on the
 /// <paramref name="targetObject"/>.</returns>
 public static double GetBottom(DependencyObject targetObject)
 {
   return targetObject.GetAttachedPropertyValue<double>(BOTTOM_ATTACHED_PROPERTY, 0.0);
 }
开发者ID:joconno4,项目名称:MediaPortal-2,代码行数:11,代码来源:Canvas.cs

示例6: GetColumnSpan

 /// <summary>
 /// Getter method for the attached property <c>ColumnSpan</c>.
 /// </summary>
 /// <param name="targetObject">The object whose property value will
 /// be returned.</param>
 /// <returns>Value of the <c>ColumnSpan</c> property on the
 /// <paramref name="targetObject"/>.</returns>
 public static int GetColumnSpan(DependencyObject targetObject)
 {
   return targetObject.GetAttachedPropertyValue(COLUMNSPAN_ATTACHED_PROPERTY, 1);
 }
开发者ID:BigGranu,项目名称:MediaPortal-2,代码行数:11,代码来源:Grid.cs

示例7: GetRowSpan

 /// <summary>
 /// Getter method for the attached property <c>RowSpan</c>.
 /// </summary>
 /// <param name="targetObject">The object whose property value will
 /// be returned.</param>
 /// <returns>Value of the <c>RowSpan</c> property on the
 /// <paramref name="targetObject"/>.</returns>
 public static int GetRowSpan(DependencyObject targetObject)
 {
   return targetObject.GetAttachedPropertyValue(ROWSPAN_ATTACHED_PROPERTY, 1);
 }
开发者ID:BigGranu,项目名称:MediaPortal-2,代码行数:11,代码来源:Grid.cs

示例8: GetRow

 /// <summary>
 /// Getter method for the attached property <c>Row</c>.
 /// </summary>
 /// <param name="targetObject">The object whose property value will
 /// be returned.</param>
 /// <returns>Value of the <c>Row</c> property on the
 /// <paramref name="targetObject"/>.</returns>
 public static int GetRow(DependencyObject targetObject)
 {
   return targetObject.GetAttachedPropertyValue<int>(ROW_ATTACHED_PROPERTY, 0);
 }
开发者ID:BigGranu,项目名称:MediaPortal-2,代码行数:11,代码来源:Grid.cs

示例9: GetSaveRestoreAction

 protected static WorkflowSaveRestoreStateAction GetSaveRestoreAction(DependencyObject targetObject)
 {
   return targetObject.GetAttachedPropertyValue<WorkflowSaveRestoreStateAction>(SAVE_RESTORE_ACTION_ATTACHED_PROPERTY, null);
 }
开发者ID:davinx,项目名称:MediaPortal-2,代码行数:4,代码来源:WorkflowContext.cs

示例10: GetGroupContext

 /// <summary>
 /// Getter method for the attached property <c>GroupContext</c>.
 /// </summary>
 /// <param name="targetObject">The object whose property value will
 /// be returned.</param>
 /// <returns>Value of the <c>GroupContext</c> property on the
 /// <paramref name="targetObject"/>.</returns>
 public static string GetGroupContext(DependencyObject targetObject)
 {
   return targetObject.GetAttachedPropertyValue(GROUPCONTEXT_ATTACHED_PROPERTY, string.Empty);
 }
开发者ID:davinx,项目名称:MediaPortal-2,代码行数:11,代码来源:RadioButton.cs


注:本文中的DependencyObject.GetAttachedPropertyValue方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。