xtian79

Legend item template brings a huge image....Why?????

Discussion created by xtian79 on May 7, 2014
Latest reply on May 16, 2014 by xtian79
DEAR PEOPLE FROM THE FUTURE: Here's what we've figured out so far???


Using the legend control I defined the following template
                  <esri:Legend.LegendItemTemplate >
                        <DataTemplate>
                            <StackPanel Orientation="Horizontal" Loaded="StackPanel_OnLoaded"  >
                                 <Image Source="{Binding ImageSource}" Tag="{Binding Tag}" ></Image>                                
                                <TextBlock Text="{Binding Label}" Background="Aqua"></TextBlock>
                            </StackPanel>
                        </DataTemplate>
                    </esri:Legend.LegendItemTemplate>


The legend is shown in the following way

[ATTACH=CONFIG]33658[/ATTACH]

after checking the LegendItemViewModel, i discover that the ImageSource Width property is set to 320 and Height property is set to 290.

What could affect that size?, in an external test application, the size is about ten times smaller.
it is tied up to any style?

Attachments

Outcomes