TargetPropertyPath 클래스
정의
중요
일부 정보는 릴리스되기 전에 상당 부분 수정될 수 있는 시험판 제품과 관련이 있습니다. Microsoft는 여기에 제공된 정보에 대해 어떠한 명시적이거나 묵시적인 보증도 하지 않습니다.
대상 요소의 속성 경로를 나타냅니다.
public ref class TargetPropertyPath sealed
/// [Windows.Foundation.Metadata.Activatable(Microsoft.UI.Xaml.ITargetPropertyPathFactory, 65536, "Microsoft.UI.Xaml.WinUIContract")]
/// [Windows.Foundation.Metadata.Activatable(65536, "Microsoft.UI.Xaml.WinUIContract")]
/// [Windows.Foundation.Metadata.ContractVersion(Microsoft.UI.Xaml.WinUIContract, 65536)]
/// [Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
/// [Windows.Foundation.Metadata.Threading(Windows.Foundation.Metadata.ThreadingModel.Both)]
class TargetPropertyPath final
[Windows.Foundation.Metadata.Activatable(typeof(Microsoft.UI.Xaml.ITargetPropertyPathFactory), 65536, "Microsoft.UI.Xaml.WinUIContract")]
[Windows.Foundation.Metadata.Activatable(65536, "Microsoft.UI.Xaml.WinUIContract")]
[Windows.Foundation.Metadata.ContractVersion(typeof(Microsoft.UI.Xaml.WinUIContract), 65536)]
[Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
[Windows.Foundation.Metadata.Threading(Windows.Foundation.Metadata.ThreadingModel.Both)]
public sealed class TargetPropertyPath
Public NotInheritable Class TargetPropertyPath
- 상속
- 특성
예제
이 예제에서 는 myPanel.Orientation
입니다 TargetPropertyPath
. 여기서 myPanel
는 Target 이고 Orientation
는 속성입니다.
<Setter Target="myPanel.Orientation" Value="Horizontal"/>
설명
TargetPropertyPath
는 XAML에서 간소화된 점선 Setter.Target 구문을 만드는 데 사용됩니다.
생성자
TargetPropertyPath() |
TargetPropertyPath 클래스의 새 instance 초기화합니다. |
TargetPropertyPath(DependencyProperty) |
지정된 대상 속성을 사용하여 TargetPropertyPath 클래스의 새 instance 초기화합니다. |
속성
Path |
대상 요소의 속성 경로를 가져오거나 설정합니다. |
Target |
Path에서 설명하는 속성을 포함하는 개체를 가져오거나 설정합니다. |