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