2012-03-01 5 views
1

이미 90도 뒤집힌 이미지를 회전하려고합니다.코드를 통해 이미지를 회전하는 방법은 무엇입니까?

this.image1.SetValue(PlaneProjection.RotationYProperty , 0.0); 

것은 그것은 나에게 형 Exception의 예외를주고있다 : 그래서 이런 종류의 일을하려합니다.

내가 올바르게하고 있습니까?

+0

xaml을 살펴보십시오. 이미지가'PlaneProjection'에 연결된 속성을 정의했거나 또 다른 변형이 있습니까? – Ku6opr

+0

이 아이디어는 xaml에서만 가져온 것입니다. 직접 확인하십시오. "DoubleAnimation Duration ="0 : 0 : 0.25 "To ="90 "Storyboard.TargetProperty ="(UIElement.Projection). (PlaneProjection.RotationY) "Storyboard.TargetName ="image1 "d : IsOptimized ="True "/ > – user1235555

답변

2
this.image1.SetValue(Image.ProjectionProperty, new PlaneProjection() { RotationY = 0 }); 
관련 문제