Hi,
I need to add a HyperlinkButton into a mapTip programtically. I have a collection of Graphics loaded by code in the GraphicLayer, and have the MaptTip defined into the Layer. I can set attrbitues and bind but can not add a HyperlinkButton into the StackPanel "MapTipSPImages" because it is null at run time (seems it is not loaded yet or something). How I can access to this stack panel so can add controls?
Thanks.
The XAML:
Code:
<esri:GraphicsLayer ID="Landmarks">
<esri:GraphicsLayer.MapTip>
<Border esri:GraphicsLayer.MapTipHideDelay="00:00:02" BorderBrush="DarkGray" CornerRadius="13" BorderThickness="1" Margin="0,0,15,15" Loaded="MapTipLoaded">
<Border.Effect>
<DropShadowEffect ShadowDepth="10" BlurRadius="14" Direction="300" />
</Border.Effect>
<Border CornerRadius="10" Background="#DDFFEEEE" BorderThickness="4" BorderBrush="#77FF0000" Name="MapTipBorder">
<StackPanel Orientation="Vertical" HorizontalAlignment="Center" Margin="10">
<StackPanel Orientation="Horizontal">
<TextBlock Text="{Binding Path=[Event]}" HorizontalAlignment="Left" VerticalAlignment="Center" />
</StackPanel>
<StackPanel Orientation="Horizontal">
<TextBlock Text="User: " FontWeight="Bold" Foreground="#FF0F274E" FontSize="10" VerticalAlignment="Center"/>
<TextBlock Text="{Binding Path=[User]}" HorizontalAlignment="Left" VerticalAlignment="Center" />
</StackPanel>
<StackPanel Orientation="Horizontal">
<TextBlock Text="Date: " FontWeight="Bold" Foreground="#FF0F274E" FontSize="10" VerticalAlignment="Center" />
<TextBlock Text="{Binding Path=[Date]}" HorizontalAlignment="Left" VerticalAlignment="Center" />
</StackPanel>
<StackPanel Orientation="Horizontal" Name="MapTipSPImages" >
</StackPanel>
</StackPanel>
</Border>
</Border>
</esri:GraphicsLayer.MapTip>
</esri:GraphicsLayer>
Bookmarks