Visifire WPF Chart Control hack
Developers who might have generated a chart with WPF know that WPF, while its own drawing power, can be a lot more work if each diagram is implemented on its own
Especially in the case of tight development time. It is necessary to use a professional charting tool.
Visifire is a set of chart controls designed for WPF, Sliverlight, WP developers to implement a range of professional charts (e.g. column, point, radar, pie, candlestick, and combination).
It was an experimental phase before the 4.5 release, and it was free .... So won the favor of a large developer.
However, after 2011 years, all versions of the company started charging, which left many developers to forget ... I am also one of them.
If you want to continue to use the free version, then you have to decompile the next two DLLs ... Just like any other general hack, or take advantage of the uniqueness of WPF to control it.
Method one. decompile, locate the watermark's output entry, and block it:
Step A: Use Reflector, Reflexil and other tools to find the object that is loading the watermark [wpfvisifire.charts,]->[visifirecontrol-> Createwmelement->]
This._wmelement.text = text;//will block
Step b: Use Reflector, Reflexil and other tools to find the object that is loading the watermark [wpfvisifire.gauges,]->[visifirecontrol-> Createwmelement->]
This._wmelement.text = text;//will block
Step c: Re-compile with Reflexil.
Method two. Code control:
Locate the output object wmelement of the watermark and set its visibity to collapsed
This._waterblock = getchildobject<textblock> (This, "Watermark");
if (this._waterblock.tag.tostring () = = "Watermark")
{
This._waterblock.text = string. Empty;
this._waterblock.visibility = System.Windows.Visibility.Collapsed;
}
Method three. Style control:
Because the watermark that appears is called Visifire Trial Edition, you can hide all of the character objects that appear in the system
<Application.Resources>
<style targettype= "TextBlock" >
<setter property= "Visibility" value= "Visible"/>
<Style.Triggers>
<trigger property= "Text" value= "Visifire Trial Edition" >
<Trigger.Setters>
<setter property= "Visibility" value= "collapsed" ></Setter>
</Trigger.Setters>
</Trigger>
</Style.Triggers>
</Style>
</Application.Resources>
Then send a picture:
WPF Visifire Chart Control