Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
swdev:dotnet:wpf:basic_controls [2013/01/22 16:12]
smayr [WebBrowser]
swdev:dotnet:wpf:basic_controls [2014/09/23 11:44] (current)
smayr [Expander]
Line 373: Line 373:
                       VerticalAlignment="Top" ExpandDirection="Down" Width="175">                       VerticalAlignment="Top" ExpandDirection="Down" Width="175">
                 <Grid Background="Cornsilk">                 <Grid Background="Cornsilk">
-                    <Grid.BitmapEffect+                    <Border Margin="5" BorderBrush="DarkGray" Background="White"  
-                        <DropShadowBitmapEffect /> +                            BorderThickness="1" CornerRadius="5"> 
-                    </Grid.BitmapEffect>+                        <Border.Effect> 
 +                            <DropShadowEffect BlurRadius="10" Opacity="0.5" /
 +                        </Border.Effect
 +                    </Border>
  
                     <Grid.RowDefinitions>                     <Grid.RowDefinitions>
Line 1291: Line 1294:
 </code> </code>
  
 +''TextBlock'' with truncated text showing tooltip displaying full text :
 +<code xml>
 +<TextBlock Width="100" TextTrimming="CharacterEllipsis" 
 +          ToolTip="{Binding RelativeSource={RelativeSource Self}, Path=Text}">
 +This is a long sentence with text.
 +</TextBlock>
 +</code>
 +Alternatively, use a behavior: [[http://tranxcoder.wordpress.com/2008/10/12/customizing-lookful-wpf-controls-take-2|Customizing "Lookful" WPF controls]]
 == TextBox == == TextBox ==