I have a textbox where the user enters in a number that is to be used as the angle to rotate an image. Is there a way to convert that number in xaml to negative? So if the user enters 50, I want the image to rotate -50 degrees instead of +50. I'd rather not do it in the code-behind. Code for it is below:
<TextBox x:Name="testing" />
<Image Source="aaaa.png" x:Name="thisimage" >
<Image.LayoutTransform>
<RotateTransform CenterX="0.5" CenterY="0.5" Angle="{Binding Path=Text , ElementName=testing, UpdateSourceTrigger=PropertyChanged}" />
</Image.LayoutTransform>
</Image>