8,734
社区成员
发帖
与我相关
我的任务
分享
<!-- Style RwPushPinStyle-->
<Style x:Name="RoadWarriorPinStyle" TargetType="DeepProtoControls:DevPin">
<Setter Property="Template">
<Setter.Value>
<ControlTemplate TargetType="DeepProtoControls:DevPin">
<Grid>
<Grid.RenderTransform>
<ScaleTransform x:Name="PART_PinScale" />
</Grid.RenderTransform>
<Image Cursor="Arrow" x:Name="PART_Image" Width="64" Height="64" Source="Resources/roadwarrior.png" Stretch="Uniform" RenderTransformOrigin="0.5,0.5" />
<Grid x:Name="toolTip" Background="Transparent" ToolTipService.ToolTip="RoadWarrior" />
<Grid x:Name="PART_Balloon" Width="60" Height="60" Cursor="Arrow">
<Grid.Resources>
<Storyboard x:Name="PART_ShowInfoBalloon">
<DoubleAnimation Storyboard.TargetName="BalloonScale" Storyboard.TargetProperty="ScaleX" From="0.25" To="1" Duration="0:0:0.1"/>
<DoubleAnimation Storyboard.TargetName="BalloonScale" Storyboard.TargetProperty="ScaleY" From="0.25" To="1" Duration="0:0:0.1"/>
</Storyboard>
</Grid.Resources>
<Grid x:Name="PART_MinBalloon" Cursor="Hand" HorizontalAlignment="Right" Margin="0,-12,-12,0" VerticalAlignment="Top" >
<Image x:Name="PART_InfoImage" Source="Resources/information.png" Stretch="None" HorizontalAlignment="Center" VerticalAlignment="Center" />
</Grid>
<Grid x:Name="PART_MaxBalloon" Visibility="Collapsed" HorizontalAlignment="Left" VerticalAlignment="Bottom" Margin="42,-128,-200,43" RenderTransformOrigin="0,1" Width="210" Height="144">
<Grid.RenderTransform>
<ScaleTransform x:Name="BalloonScale" />
</Grid.RenderTransform>
<StackPanel Margin="0,0,0,0" VerticalAlignment="Bottom" HorizontalAlignment="Stretch" >
<Border Background="#AA000000" CornerRadius="5" Padding="6,2,6,2" Margin="0,4,0,0" >
<StackPanel >
<TextBlock
x:Name="lblDescription"
TextAlignment="Left"
Foreground="White"
FontSize="10"
MinHeight="64"
MaxHeight="108"
MinWidth="162"
MaxWidth="212"
TextWrapping="Wrap" />
</StackPanel>
</Border>
</StackPanel>
</Grid>
</Grid>
</Grid>
</ControlTemplate>
</Setter.Value>
</Setter>
</Style>