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


C# DependencyObject.SafeGetTypeName方法代码示例

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


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

示例1: OnChange_ForegroundBrush

        static void OnChange_ForegroundBrush(DependencyObject d, DependencyPropertyChangedEventArgs e)
        {
            #if DEBUG
             Debug.WriteLine ("ModelProperty.Change : Prop:ForegroundBrush, Old:{0}, New:{1}, Instance:{2}({3})", e.OldValue, e.NewValue, d.SafeGetHashCode (), d.SafeGetTypeName ());
            #endif
             var dobj = d as TextElement;
             if (dobj == null)
             {
            return;
             }

             var oldValue = (Brush)e.OldValue;
             var newValue = (Brush)e.NewValue;
             var handled = false;
             dobj.OnChange_ForegroundBrush (oldValue, newValue, ref handled);
        }
开发者ID:mrange,项目名称:281slides,代码行数:16,代码来源:DependencyProperties.cs

示例2: OnChange_Name

        static void OnChange_Name(DependencyObject d, DependencyPropertyChangedEventArgs e)
        {
            #if DEBUG
             Debug.WriteLine ("ModelProperty.Change : Prop:Name, Old:{0}, New:{1}, Instance:{2}({3})", e.OldValue, e.NewValue, d.SafeGetHashCode (), d.SafeGetTypeName ());
            #endif
             var dobj = d as BaseDefinition;
             if (dobj == null)
             {
            return;
             }

             var oldValue = (string)e.OldValue;
             var newValue = (string)e.NewValue;
             var handled = false;
             dobj.OnChange_Name (oldValue, newValue, ref handled);
        }
开发者ID:mrange,项目名称:281slides,代码行数:16,代码来源:DependencyProperties.cs

示例3: OnChange_Orientation

        static void OnChange_Orientation(DependencyObject d, DependencyPropertyChangedEventArgs e)
        {
            #if DEBUG
             Debug.WriteLine ("ModelProperty.Change : Prop:Orientation, Old:{0}, New:{1}, Instance:{2}({3})", e.OldValue, e.NewValue, d.SafeGetHashCode (), d.SafeGetTypeName ());
            #endif
             var dobj = d as AnimatedWrapPanel;
             if (dobj == null)
             {
            return;
             }

             var oldValue = (Orientation)e.OldValue;
             var newValue = (Orientation)e.NewValue;
             var handled = false;
             dobj.OnChange_Orientation (oldValue, newValue, ref handled);
        }
开发者ID:mrange,项目名称:281slides,代码行数:16,代码来源:DependencyProperties.cs

示例4: OnChange_DownloadProgressVisibility

        static void OnChange_DownloadProgressVisibility(DependencyObject d, DependencyPropertyChangedEventArgs e)
        {
            #if DEBUG
             Debug.WriteLine ("ModelProperty.Change : Prop:DownloadProgressVisibility, Old:{0}, New:{1}, Instance:{2}({3})", e.OldValue, e.NewValue, d.SafeGetHashCode (), d.SafeGetTypeName ());
            #endif
             var dobj = d as PictureElement;
             if (dobj == null)
             {
            return;
             }

             var oldValue = (Visibility)e.OldValue;
             var newValue = (Visibility)e.NewValue;
             var handled = false;
             dobj.OnChange_DownloadProgressVisibility (oldValue, newValue, ref handled);
        }
开发者ID:mrange,项目名称:281slides,代码行数:16,代码来源:DependencyProperties.cs

示例5: OnChange_SelectedElement

        static void OnChange_SelectedElement(DependencyObject d, DependencyPropertyChangedEventArgs e)
        {
            #if DEBUG
             Debug.WriteLine ("ModelProperty.Change : Prop:SelectedElement, Old:{0}, New:{1}, Instance:{2}({3})", e.OldValue, e.NewValue, d.SafeGetHashCode (), d.SafeGetTypeName ());
            #endif
             var dobj = d as EditingSlideControl;
             if (dobj == null)
             {
            return;
             }

             var oldValue = (DependencyObject)e.OldValue;
             var newValue = (DependencyObject)e.NewValue;
             var handled = false;
             dobj.OnChange_SelectedElement (oldValue, newValue, ref handled);
        }
开发者ID:mrange,项目名称:281slides,代码行数:16,代码来源:DependencyProperties.cs

示例6: OnChange_UIElementState

        static void OnChange_UIElementState(DependencyObject d, DependencyPropertyChangedEventArgs e)
        {
            #if DEBUG
             Debug.WriteLine ("ModelProperty.Change : Prop:UIElementState, Old:{0}, New:{1}, Instance:{2}({3})", e.OldValue, e.NewValue, d.SafeGetHashCode (), d.SafeGetTypeName ());
            #endif
             var dobj = d as UIElement;
             if (dobj == null)
             {
            return;
             }

             var oldValue = (object)e.OldValue;
             var newValue = (object)e.NewValue;
             var handled = false;
             OnChange_UIElementState (dobj, oldValue, newValue, ref handled);
        }
开发者ID:mrange,项目名称:281slides,代码行数:16,代码来源:DependencyProperties.cs

示例7: OnChange_PictureElementTemplate

        static void OnChange_PictureElementTemplate(DependencyObject d, DependencyPropertyChangedEventArgs e)
        {
            #if DEBUG
             Debug.WriteLine ("ModelProperty.Change : Prop:PictureElementTemplate, Old:{0}, New:{1}, Instance:{2}({3})", e.OldValue, e.NewValue, d.SafeGetHashCode (), d.SafeGetTypeName ());
            #endif
             var dobj = d as BaseElementControl;
             if (dobj == null)
             {
            return;
             }

             var oldValue = (DataTemplate)e.OldValue;
             var newValue = (DataTemplate)e.NewValue;
             var handled = false;
             dobj.OnChange_PictureElementTemplate (oldValue, newValue, ref handled);
        }
开发者ID:mrange,项目名称:281slides,代码行数:16,代码来源:DependencyProperties.cs

示例8: OnChange_SearchTimeOut

        static void OnChange_SearchTimeOut(DependencyObject d, DependencyPropertyChangedEventArgs e)
        {
            #if DEBUG
             Debug.WriteLine ("ModelProperty.Change : Prop:SearchTimeOut, Old:{0}, New:{1}, Instance:{2}({3})", e.OldValue, e.NewValue, d.SafeGetHashCode (), d.SafeGetTypeName ());
            #endif
             var dobj = d as SearchTextBox;
             if (dobj == null)
             {
            return;
             }

             var oldValue = (TimeSpan)e.OldValue;
             var newValue = (TimeSpan)e.NewValue;
             var handled = false;
             dobj.OnChange_SearchTimeOut (oldValue, newValue, ref handled);
        }
开发者ID:mrange,项目名称:281slides,代码行数:16,代码来源:DependencyProperties.cs

示例9: OnChange_SearchResultItems

        static void OnChange_SearchResultItems(DependencyObject d, DependencyPropertyChangedEventArgs e)
        {
            #if DEBUG
             Debug.WriteLine ("ModelProperty.Change : Prop:SearchResultItems, Old:{0}, New:{1}, Instance:{2}({3})", e.OldValue, e.NewValue, d.SafeGetHashCode (), d.SafeGetTypeName ());
            #endif
             var dobj = d as SearchControl;
             if (dobj == null)
             {
            return;
             }

             var oldValue = (ObservableCollection<DependencyObject>)e.OldValue;
             var newValue = (ObservableCollection<DependencyObject>)e.NewValue;
             var handled = false;
             dobj.OnChange_SearchResultItems (oldValue, newValue, ref handled);
        }
开发者ID:mrange,项目名称:281slides,代码行数:16,代码来源:DependencyProperties.cs


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