<Button.RenderTransform>
<RotateTransform Angle="180"></RotateTransform>
</Button.RenderTransform>
</Button>This Button looks like as follows:
</Grid.RowDefinitions> <Path Fill="Black" Stretch="Fill" Height="11" Width="10" HorizontalAlignment="Left" VerticalAlignment="Top" Margin="6,0,0,0"Stroke="#FF000000" UseLayoutRounding="False" Data="F1 M 301.14,-189.041L 311.57,-189.041L 306.355,-182.942L 301.14,-189.041 Z " > <Path.RenderTransform> <RotateTransform Angle="180"></RotateTransform> </Path.RenderTransform> </Path> <ContentPresenter Grid.Row="0" Content="{TemplateBinding Content}" HorizontalAlignment="Center" VerticalAlignment="Center"/> </Grid> </Border> </ControlTemplate> </Setter.Value> </Setter> </Style>We can use this style in our Silverlight application with a ToolTip control as follows: <TextBox Height="20" Width="100" Grid.Row="1" HorizontalAlignment="Center"> <ToolTipService.ToolTip> <ToolTip Style="{StaticResource TooltipStyle}"> <TextBlock Text="Some text"/> </ToolTip> </ToolTipService.ToolTip>
</TextBox>This ToolTip looks like as follows:We can also customize the ToolTip as follows. Here we use the above Button style. <Button Content="Click me!" Width="100" Height="30" HorizontalAlignment="Center" Grid.Row="0" > <ToolTipService.ToolTip> <StackPanel> <Button Height="18" Width="20" Style="{StaticResource btnstyle }" HorizontalAlignment="Left" Margin="6,4,0,0"> <Button.RenderTransform> <RotateTransform Angle="180"></RotateTransform> </Button.RenderTransform> </Button> <TextBlock MaxWidth="150" Text="This is Text" FontFamily="Georgia" FontSize="14" TextWrapping="Wrap"/> </StackPanel> </ToolTipService.ToolTip> </Button>The Customize ToolTip looks like as follows:
You need to be a premium member to use this feature. To access it, you'll have to upgrade your membership.
Become a sharper developer and jumpstart your career.
$0
$
. 00
monthly
For Basic members:
$20
For Premium members:
$45
For Elite members: