xaml - How to style WPF tooltip like a speech bubble? -


I want to resize my WPF tooltip like the image below:

Enter image details here

How do I get it?

Use this code:

  & lt; Window x: orbit = "wpfApplication2.MainWindow" xmlns = "http: // schemos Microsoft.com/winfx/2006/xaml/presentation" xmlns: x = "http://schemas.microsoft.com/winfx/2006/xaml "Xmlns: ed =" http://schemas.microsoft.com/expression//2010/drawing "X: name =" window "title =" main window "width =" 640 "height =" 480 "& gt; & Lt; Window.Resources & gt; & Lt; Style x: key = "{x: type tooltip}" target type = "tooltip" & gt; & Lt; Setter Property = "Override Default Style" Value = "Correct" /> & Lt; Setter Property = "HesdropShadow" value = "true" /> & Lt; Setter Estates = "Template" & gt; & Lt; Setter.Value & gt; & Lt; ControlTemplate TargetType = "ToolTip" & gt; & Lt; Ed: callout name = "border" width = "{widthbinding width}" height = "{TemplateBinding height}" minwid = "100" minhite = "30" margin = "0,0,0,50" anchorpoint = "0, 1.5 "background =" {StaticResource LightBrush} "BorderBrush =" {StaticResource SolidBorder Brush} "Bordertibens =" ​​1 "calloutstyle =" roundreckengel "=" #FFF4F4F5 "FontSize =" 14.667 "stroke =" black " & Gt; & Lt; ContentPresenter margin = "4" horizontal align = "left" vertical element = "top" /> & Lt; / Ed: Callout & gt; & Lt; / ControlTemplate & gt; & Lt; /Setter.Value> & Lt; / Setter & gt; & Lt; / Style & gt; & Lt; /Window.Resources> & Lt; Grid & gt; & Lt; Button Tooltip = "Hello" /> & Lt; / Grid & gt;   

This is the beginning, now you have to play with it ...

 Enter image details here

Comments

Popular posts from this blog

Python SQLAlchemy:AttributeError: Neither 'Column' object nor 'Comparator' object has an attribute 'schema' -

java - How not to audit a join table and related entities using Hibernate Envers? -

mongodb - CakePHP paginator ignoring order, but only for certain values -