Select to view content in your preferred language

Possible Bug with Editor

542
1
05-28-2011 05:48 PM
centuitcentuit
Emerging Contributor
Hi,

I am having a problem where when I tried to edit a custom symbol the symbol disapears while in EditVertices. It's a FillSymbol with a png image and I need the ability to move and resize it on the map dynamicly.
It loads fine on the map, but when I try to edit, it disapears (the only item on the screen is the dashed rectagle) and reappears after the edit exits. Weird...

I am using .NET 4.0 WPF and Beta 2.2 SDK

Anyone know about this ? Is there a work around ? Am I doing it wrong ?

Your help is greatly appriciated. Thanks.

Here is the XAML:

   <esri:Graphic.Symbol>
        <symbols:FillSymbol>
            <symbols:FillSymbol.ControlTemplate>
            <ControlTemplate >
                        <Path x:Name="Element" >
                            <Path.Fill>
                            <ImageBrush ImageSource="{Binding Attributes[image]}" >
                                <ImageBrush.RelativeTransform>
                                    <TransformGroup>
                                        <RotateTransform Angle="{Binding Attributes[rotate]}" CenterX=".5" CenterY=".5"/>
                                    </TransformGroup>
                                </ImageBrush.RelativeTransform>
                            </ImageBrush>
                        </Path.Fill>
                        </Path>
            </ControlTemplate>
                </symbols:FillSymbol.ControlTemplate>
        </symbols:FillSymbol>
    </esri:Graphic.Symbol>
0 Kudos
1 Reply
JenniferNery
Esri Regular Contributor
Thank you for reporting this. This is currently not supported.

If the FillSymbol.Fill ImageBrush.Source did not come from the graphic.attributes, the image fill might be respected.

We will consider including this in future releases of our API. Thanks.
0 Kudos