SourceChangedEventArgs 构造函数
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
初始化 SourceChangedEventArgs 类的新实例。
重载
SourceChangedEventArgs(PresentationSource, PresentationSource) |
使用为旧源和新源提供的信息初始化 SourceChangedEventArgs 类的新实例。 |
SourceChangedEventArgs(PresentationSource, PresentationSource, IInputElement, IInputElement) |
通过使用为旧源和新源提供的信息、此更改影响的元素以及以前报告的该元素的父项,初始化 SourceChangedEventArgs 类的一个新实例。 |
SourceChangedEventArgs(PresentationSource, PresentationSource)
使用为旧源和新源提供的信息初始化 SourceChangedEventArgs 类的新实例。
public:
SourceChangedEventArgs(System::Windows::PresentationSource ^ oldSource, System::Windows::PresentationSource ^ newSource);
[System.Security.SecurityCritical]
public SourceChangedEventArgs (System.Windows.PresentationSource oldSource, System.Windows.PresentationSource newSource);
public SourceChangedEventArgs (System.Windows.PresentationSource oldSource, System.Windows.PresentationSource newSource);
[<System.Security.SecurityCritical>]
new System.Windows.SourceChangedEventArgs : System.Windows.PresentationSource * System.Windows.PresentationSource -> System.Windows.SourceChangedEventArgs
new System.Windows.SourceChangedEventArgs : System.Windows.PresentationSource * System.Windows.PresentationSource -> System.Windows.SourceChangedEventArgs
Public Sub New (oldSource As PresentationSource, newSource As PresentationSource)
参数
- oldSource
- PresentationSource
向此处理程序通知其信息的旧 PresentationSource。
- newSource
- PresentationSource
向此处理程序通知其信息的新 PresentationSource。
- 属性
适用于
SourceChangedEventArgs(PresentationSource, PresentationSource, IInputElement, IInputElement)
通过使用为旧源和新源提供的信息、此更改影响的元素以及以前报告的该元素的父项,初始化 SourceChangedEventArgs 类的一个新实例。
public:
SourceChangedEventArgs(System::Windows::PresentationSource ^ oldSource, System::Windows::PresentationSource ^ newSource, System::Windows::IInputElement ^ element, System::Windows::IInputElement ^ oldParent);
[System.Security.SecurityCritical]
public SourceChangedEventArgs (System.Windows.PresentationSource oldSource, System.Windows.PresentationSource newSource, System.Windows.IInputElement element, System.Windows.IInputElement oldParent);
public SourceChangedEventArgs (System.Windows.PresentationSource oldSource, System.Windows.PresentationSource newSource, System.Windows.IInputElement element, System.Windows.IInputElement oldParent);
[<System.Security.SecurityCritical>]
new System.Windows.SourceChangedEventArgs : System.Windows.PresentationSource * System.Windows.PresentationSource * System.Windows.IInputElement * System.Windows.IInputElement -> System.Windows.SourceChangedEventArgs
new System.Windows.SourceChangedEventArgs : System.Windows.PresentationSource * System.Windows.PresentationSource * System.Windows.IInputElement * System.Windows.IInputElement -> System.Windows.SourceChangedEventArgs
Public Sub New (oldSource As PresentationSource, newSource As PresentationSource, element As IInputElement, oldParent As IInputElement)
参数
- oldSource
- PresentationSource
向此处理程序通知其信息的旧 PresentationSource。
- newSource
- PresentationSource
向此处理程序通知其信息的新 PresentationSource。
- element
- IInputElement
一个元素,其更改的父项导致源发生更改。
- oldParent
- IInputElement
元素的旧父项,其更改的父项导致源发生更改。
- 属性