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!