Select to view content in your preferred language

Rotating PictureFillSymbol Graphic

1793
2
05-20-2011 06:52 AM
centuitcentuit
Emerging Contributor
Hello,

I am trying to rotate a PictureFillSymbol to any degree and I have not been successfull.
Has anyone done this before ? Can you please share a C# code snipped on how to do this.
I am using .NET 4 WPF and ESRI Client 2.2 Beta

Thanks
0 Kudos
2 Replies
DominiqueBroux
Esri Frequent Contributor
You can try something like:

<esri:FillSymbol>
<esri:FillSymbol.ControlTemplate>
<ControlTemplate>
   <Path x:Name="Element" >
     <Path.Fill>
       <ImageBrush ImageSource="/something.png" >  
      <ImageBrush.RelativeTransform>
         <RotateTransform Angle="90" CenterX="0.5" CenterY="0.5"/>
      </ImageBrush.RelativeTransform>
     </ImageBrush>
    </Path.Fill>
   </Path>
</ControlTemplate>
</esri:FillSymbol.ControlTemplate>
</esri:FillSymbol>
0 Kudos
centuitcentuit
Emerging Contributor
dbroux,

That worked perfect, THANK YOU !!!!!
0 Kudos