c# - WPF Chart Custom BarDataPoint ToolTip Show Duration -


i have wpf chart using barseries. trying alter default tooltip show duration of bardatapoint.

i tried adding following code in bardatapointstyle template:

<setter property="tooltipservice.initialshowdelay" value="0"/> <setter property="tooltipservice.showduration" value="30000"/> 

but didn't work.

is there way change default tooltip show duration of bardatapoint?

i find out, adding following code under initializecomponent(); solve problem:

tooltipservice.showdurationproperty.overridemetadata(typeof(dependencyobject), new frameworkpropertymetadata(int32.maxvalue)); 

it works me!


Popular posts from this blog

c# - ODP.NET Oracle.ManagedDataAccess causes ORA-12537 network session end of file -

matlab - Compression and Decompression of ECG Signal using HUFFMAN ALGORITHM -

utf 8 - split utf-8 string into bytes in python -