WPF Visifire Chart Control

Source: Internet
Author: User
Tags reflector

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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.