UIElement.GetAnimationBaseValue(DependencyProperty) 메서드

정의

실행하거나 중지된 애니메이션의 가능한 애니메이션 값을 모두 무시하고 이 요소에 대해 지정된 속성의 기본 속성 값을 반환합니다.

public:
 virtual System::Object ^ GetAnimationBaseValue(System::Windows::DependencyProperty ^ dp);
public object GetAnimationBaseValue (System.Windows.DependencyProperty dp);
abstract member GetAnimationBaseValue : System.Windows.DependencyProperty -> obj
override this.GetAnimationBaseValue : System.Windows.DependencyProperty -> obj
Public Function GetAnimationBaseValue (dp As DependencyProperty) As Object

매개 변수

dp
DependencyProperty

확인할 종속성 속성입니다.

반환

Object

지정된 종속성 속성에 연결된 애니메이션이 없는 경우와 동일한 속성 값입니다.

구현

예제

다음 예제에서는 애니메이션 속성의 기본 값과 변환의 Width 기본 값을 보고하는 Button처리기를 구현합니다.

// Display the base value for Button.Width and RotateTransform.Angle.
private void animatedButton_Clicked(object sender, RoutedEventArgs e)
{
    Button animatedButton = (Button)sender;
    MessageBox.Show("Button width base value: " + 
        animatedButton.GetAnimationBaseValue(Button.WidthProperty)
        + "\nRotateTransform base value: " +
        animatedRotateTransform.GetAnimationBaseValue(RotateTransform.AngleProperty));
}
' Display the base value for Button.Width and RotateTransform.Angle.
Private Sub animatedButton_Clicked(ByVal sender As Object, ByVal e As RoutedEventArgs)
    Dim animatedButton As Button = CType(sender, Button)
    MessageBox.Show("Button width base value: " & animatedButton.GetAnimationBaseValue(Button.WidthProperty).ToString & vbLf & "RotateTransform base value: " & animatedRotateTransform.GetAnimationBaseValue(RotateTransform.AngleProperty).ToString)
End Sub

설명

속성 GetAnimationBaseValue 에 연결된 애니메이션이 없는 경우 반환 값은 항상 반환 값과 GetValue 동일합니다. 연결된 애니메이션이 있는 경우 시작 및 중지 값을 포함하여 가능한 모든 애니메이션 파생 값이 무시되고 속성 값은 다른 모든 가능한 입력에 따라 결정됩니다. 자세한 내용은 종속성 속성 값 우선 순위를 참조하세요.

적용 대상

추가 정보