Chart WPF: How to get the limits of PlotArea and axes

I can't find explicit methods to get limits of PlotArea and axes.

Please let me know workarounds if they are available. Actually a post explains how to get the PlotArea limits using RangeCursor. Are there alternative means for shafts?

The photo below shows what I did in WinForms with the methods GetBounds and HitTest. I would like to draw the ornaments on the chart in WPF.

I have attached a code example of this look ornaments around the plot area and the scales.

Note that this relies on implementation details of the current version of WPF controls for the ornaments of the scale, as it was more effective than gradually points to test in the graph using the GetScaleAt method. We have intentionally left much of the underlying primitive types with a minimum documentation, like us they have changed in the past and may change in the future. Although these exact members can be removed in a future release, we do not expect to provide an equivalent function and stabilize the primitive API over time.

Tags: NI Software

Similar Questions

  • How to get the element selected listfield and goto next page?

    Assalaamualikum

    I try parsing the XML from a url and show in listfield.

    problem:

    How to get the selected item and passing the variable and than goto next page?

    my code:

    package parsepack;

    import java.io.IOException;
    import java.io.InputStream;
    import java.util.Vector;

    Import javax.microedition.io.Connector;
    Import javax.microedition.io.StreamConnection;

    Import net.rim.device.api.system.Bitmap;
    Import net.rim.device.api.system.Display;
    Import net.rim.device.api.ui.DrawStyle;
    Import net.rim.device.api.ui.Field;
    Import net.rim.device.api.ui.FieldChangeListener;
    Import net.rim.device.api.ui.Graphics;
    Import net.rim.device.api.ui.Manager;
    Import net.rim.device.api.ui.UiApplication;
    Import net.rim.device.api.ui.component.ListField;
    Import net.rim.device.api.ui.component.ListFieldCallback;
    Import net.rim.device.api.ui.container.MainScreen;
    Import net.rim.device.api.ui.container.VerticalFieldManager;
    Import net.rim.device.api.xml.parsers.DocumentBuilder;
    Import net.rim.device.api.xml.parsers.DocumentBuilderFactory;

    to import org.W3C.DOM.document;
    Import org.w3c.dom.Node;
    Import org.w3c.dom.NodeList;

    extends xmlparsing public class UiApplication implements ListFieldCallback, FieldChangeListener
    {

    Public Shared Sub main (String [] args)
    {
    xmlparsing app = new xmlparsing();
    app.enterEventDispatcher ();
    }

    public long mycolor;
    Connection _connectionthread;
    private static ListField _list;
    private static Vector listElements is new Vector();.
    public display display = new MainScreen();
    MainManager VerticalFieldManager;
    VerticalFieldManager subManager;

    public xmlparsing()
    {
    Super();
    pushScreen (screen);

    final Bitmap Imagearriereplan = Bitmap.getBitmapResource ("blackbackground.png");

    mainManager = new VerticalFieldManager(Manager.NO_VERTICAL_SCROLL |) Manager.NO_VERTICAL_SCROLLBAR)
    {

    public void paint (Graphics graphics)
    {
    graphics.drawBitmap (0, 0, Display.getWidth (), Display.getHeight (), Imagearriereplan, 0, 0);

    Super.Paint (Graphics);
    }

    };

    subManager = new VerticalFieldManager(Manager.VERTICAL_SCROLL |) Manager.VERTICAL_SCROLLBAR)
    {
    protected void sublayout (int maxWidth, maxHeight int)
    {
    int displayWidth = Display.getWidth ();
    int displayHeight = Display.getHeight ();

    Super.sublayout (displayWidth, displayHeight);
    setExtent (displayWidth, displayHeight);
    }
    };

    Screen.Add (mainManager);

    _list = new ListField()

    {

    public void paint (Graphics graphics)

    {
    graphics.setColor ((int) mycolor);
    Super.Paint (Graphics);

    }

    };
    myColor = 0x00FFFFFF;
    _list. Invalidate();
    _list.setEmptyString ("* only supplies not available *", DrawStyle.HCENTER "");
    _list.setRowHeight (50);
    _list.setCallback (this);
    mainManager.add (subManager);
    listElements.removeAllElements ();
    _connectionthread = New Connection();
    _connectionthread. Start();
    }

    protected boolean navigationClick (int status, int time)
    {
    Try
    {
    Here, go to another screen if you need.

    }
    catch (System.Exception e)
    {
    System.out.println ("Exception:-: navigationClick()" + try ());
    }
    Returns true;
    }

    private class login extends thread
    {
    Public connection()
    {
    Super();
    }

    public void run() {}
    Doc document;
    StreamConnection conn = null;
    InputStream is = null;
    try {}

    Conn = Connector.open (StreamConnection) ("http://ec2-54-248-241-248.ap-northeast-1.compute.amazonaws.com/koperasi-akr-trial/cgi-bin/gw-pinjama...

    DocumentBuilderFactory docBuilderFactory = DocumentBuilderFactory.newInstance ();
    docBuilderFactory.setIgnoringElementContentWhitespace (true);
    docBuilderFactory.setCoalescing (true);
    DocumentBuilder docBuilder = docBuilderFactory.newDocumentBuilder ();
    docBuilder.isValidating ();
    is = conn.openInputStream ();
    doc = docBuilder.parse (is);
    doc.getDocumentElement () .normalize ();
    List of NodeList = doc.getElementsByTagName ("ID");
    for (int i = 0; i)< list.getlength();="" i++)="">
    Node node = list.item (i) .getFirstChild ();
    listElements.addElement (textNode.getNodeValue ());
    }
    } catch (Exception e) {}
    System.out.println (try ());
    } {Finally
    If (is! = null) {}
    try {is.close ();
    } catch (IOException ignored) {}
    } If (conn! = null) {}
    Try {conn.close () ;}
    catch (IOException ignored) {}
    }} UiApplication.getUiApplication () .invokeLater (new Runnable() {}
    public void run() {}
    _list. SetSize (listElements.Size ());
    subManager.add (_list);
    Screen.Invalidate ();
    }
    });
    }

    }

    ' public void drawListRow (list ListField, Graphics g, int index, int y, int w)
    {
    Your string = (String) listElements.elementAt (index);
    int yPos = 0 + y;
    g.drawLine (0, yPos, w, yPos);
    g.drawText (, 5, 15 + y, 0, w);
    }

    public {get {Object (ListField list, int index)
    {
    Return listElements.elementAt (index);
    }
    public int indexOfList (String prefix, ListField list, int, string)
    {
    Return listElements.indexOf (prefix, string);
    }
    public int getPreferredWidth (ListField list)
    {
    Return Display.getWidth ();
    }
    public final void insert (String toInsert, int index) {}
    listElements.addElement (toInsert);
    }

    ' Public Sub fieldChanged (field field, int context) {}

    }
    }

    Thank you.

    I told you that replace the navigationclick() method where initialize you your listfield

    as I think that changing your code and then answer me

    _list = new ListField()
    {
    protected boolean navigationClick(int status, int time)
    {
      Dialog.inform("hi");
      return true;
    }
    
    public void paint(Graphics graphics)
    {
    graphics.setColor((int) mycolor);
    super.paint(graphics);
    }
    };
    
  • How to get the value of viewattribute and how to assign the text field. URG

    Hi all,
    I created messagestyled text programmatically and I want the value of viewAttribute.
    I don't know how to define the instance of the view and display attribute.

    I tried this way, it is what is called the vo class but after that i dnt know how to set

    Here the code that I used...

    (1) I create the messagestyled text
    OAFormattedTextBean cctextbean = (OAFormattedTextBean) pageContext.getWebBeanFactory () .createWebBean (pageContext, FORMATTED_TEXT_BEAN, OAWebBeanConstants.VARCHAR2_DATATYPE, "CCText");

    OAMessageStyledTextBean ccidbean = (OAMessageStyledTextBean) pageContext.getWebBeanFactory () .createWebBean (pageContext, MESSAGE_STYLED_TEXT_BEAN, OAWebBeanConstants.VARCHAR2_DATATYPE, "CCId");

    (2) and I called the view object
    OAViewObject ccview = (OAViewObject) AM.findViewObject ("CmpnyDetVO1");

    (3) I want to set the view instance and viewattribute using code. This stage i dnt know how to define.

    (4) I want to know, how to get the value of the attribute to display and how to set the value to the messagestyled text field.

    I'm new to OFA. It's Urgent.

    Thanks in advance
    Fabrice

    Hello

    use
    Import oracle.jbo.Row;

    OAViewObject ccview = (OAViewObject) AM.findViewObject ("CmpnyDetVO1");
    Line line (Row) = ccview.first ();
    Test String = (String) row.getAttribute ("");

    then to set the value of the text of messagestyled

    OAMessageStyledTextBean bean = (OAMessageStyledTextBean) webBean.findindexedchildrecursive ("CCId");
    bean.setText (test);

    Thank you
    Gerard

    Published by: Gauravv on August 4, 2009 09:38

  • How to get the count of UUTPassed and UUTFailed of c# ActiveX control

    Hello

    My operator interface use the TestStand ActiveX in c# control. I'll use the OP to a bench of EHR, which runs the same file in sequence. I would like to know the total UUT-tested, UUTPassed and UUTFailed count after each HAD tested. Is there built-in parameters does the work for me and how can I get it? If there is not, I have to create internal variables in c# to do the job.

    Thank you

    Kind regards

    No, there are no construction based on this. So either you have to implement something like this in on of the following:

    (a) the user interface

    (b) the SequenceFile (as long as it is not discharged in the meantime)

    (c) the process model

    (d) use an external tool for analysis

    If you already work with databases for reports, I suggest using d). If this isn't the case, you can choose. But change the process template is not recommended (if other, simple solutions are available), I would not recommend c).

    hope this helps,

    Norbert

  • How to get the Application Build Date and time?

    Hi guys,.

    I am developing application in Cascade.

    What is the API I can use to get the construction Date of the application and Tiime?

    These macros are expanded to C-strings at compile time. This is how/where to use it. Following an example would work I think:

    fprintf (stderr, "construction date is %s, construction time is %s\n", __DATE__, __TIME__);

  • How to get the difference of current and previous line for a column of the same table?

    Hello

    I have a table where there are 3 rows and say 2 columns only, as below

    Col1               | Col2
    --------------------- |----------------------------------------

    first_flag |  100

    second_flag |  104

    third_flag |  110

    Now, using sql, which accepts a parameter col1, how do I get the bottom o/p

    say that the entry is second_flag,

    output must be

    second_flag, 104, 4 (4 being the difference between 104 and 100)

    If I give the entry like third_flag, the output should be

    third_flag, 110, 6 (6 is the difference between 110 and 104)

    Any help?

    Hello

    Another way is to use the analytic LAG function:

    WITH got_diff AS

    (

    SELECT col1, col2

    , col2 - LAG (col2) over (ORDER BY col1) AS diff

    OF mydata

    )

    SELECT *.

    OF got_diff

    WHERE col1 =: flag_wanted

    ;

    This assumes that the lines are in alphabetical order by col1.  If the order is something else, then use it in the ORDER BY clause analytical.

  • How to get the storage allocated profile and used the plugin vCloud 5.1 Vdc

    How can I get the storage allocated and used for a Vdc in vCloud 5.1 plugin?

    VCloud plugin 1.5, there was a property of VclVdc.storageCapacity give us the space allotted, limit, use (s) and overhead costs.

    VCloud plugin 5.1 we allways null VclVdc.storageCapacity. Then VclVdc.getStorageProfiles () but presents the objects, there is that the "limit value".

    ¿WHERE are the other values?

    I have attached two screenshots. vCloud console shows the data, but not vCloud plugin.

    Thank you very much.

    Damian

    Tell me if this work. This was written in a few minutes.

    var host = vdc.getHost();
    
    var queryService = host.getQueryService();// toAdminObject().getAdminQueryService();
    
    var profs = vdc.getStorageProfiles();
    
    for each (var prof in profs) {
    
        var expression = new VclExpression(VclQueryAdminOrgVdcStorageProfileField.HREF, prof.getReference().href  , VclExpressionType.EQUALS);
        var filter = new VclFilter(expression);
        var params = new VclQueryParams();
        params.setFilter(filter);
        var resultSet = queryService.queryRecords(VclQueryRecordType.ADMINORGVDCSTORAGEPROFILE,params);
    
        while (resultSet != null) {
            var records = resultSet.getRecords(new VclQueryResultAdminOrgVdcStorageProfileRecord);
            System.log(records.length + " records found");
                for each (var record in records) {
                    //obtain data from record
                    System.log("storageUsedMB : " + record.storageUsedMB);
                    System.log("storageLimitMB : " + record.storageLimitMB);
                }
        resultSet = resultSet.getNextPage();
        }
    
    }
    
  • How to get the customer name, UUID, and cluster comments

    Hello

    I was wondering if somone could show me how to tie somethings together. I can get a VM UUID, I can get the names of the virtual machines and the cluster on which they sit, but I'm having a hard time getting all 3 into a single csv report. All the world is that who could share? Thank you!

    Try this

    Get - VM | Select Name,@{N="UUID; E={$_. ExtensionData.Config.Uuid}},@{N="Cluster '; E={($_ | Get - Cluster). Name}}

  • How to get the current file name and &amp; or path

    How can I get the current path or the file name?

    I have really found the answers in the net. This.Path or app.path have been proposed, but I couldn't make it work.

    Thanks in advance for your answer!

    LiveCycle Designer ARE 8.2.1.3144.1.471865

    Hello

    event.target.path.toString ();  will give the full path, including the file name.

    event.target.documentFileName.toString ();  will give the file name only.

    Good luck

    Niall

  • How to get the old default profile and delete the new default profile?

    Due to the power cut, I was not able to shut down my PC (windows 7). When I started it again once I started it in safe mode as i had dialogue"Windows has not stopped correctly chosen what mode to boot your PC... »

    I chose safe mode and then restarted the PC normally. But when I started FF, he behaved as if it were the first time installed and all my settings were gone.

    Open the Profile Manager and he showed only 1 default profile where, as I have 2 (default and another profile). This new default profile is completely new.

    I found my profile folder. It contains 3 profiles. My previous default and the other that I had created. And the third profile is new default. How do you take the 2 earlier

    Hello! You can copy your old information in your profile again (and since you had two old profiles to be restored, you can also create a new another profile for the second). It's all about copy - paste between folders, more information here: recovery of data from an old profile.

    Information on how to create a new profile here: use the Profile Manager to create and delete profiles Firefox.

  • How to get the driver network card and on the use of the PowerCLI firmware version?

    Hi all

    I would like to know if anyone can help me in sharing the PowerCLI script to list the server NETWORK card driver and the firmware version?

    Note: I use the HP Blade Server and it's manual ESX - CLI command output:

    HP BL 465c G8
    ~ # ethtool-i vmnic0
    pilot: be2net
    version: 10.5.65.4
    firmware version: 10.2.340.19
    bus-info: 0000:04:00.0

    HP BL 465c G7
    ~ # ethtool-i vmnic0
    pilot: be2net
    version: 10.2.293.0
    firmware version: 4.9.416.7
    bus-info: 0000:04:00.0

    Any kind of help would be greatly appreciated.

    Thank you.

    PowerCLI Version

    ----------------

    VMware vSphere PowerCLI 6.0 Release 2 build 3056836

    ---------------

    Component versions

    ---------------

    VMWare AutoDeploy PowerCLI component 6.0 build 2358282

    VMWare ImageBuilder PowerCLI component 6.0 build 2358282

    VMware vSphere PowerCLI component 6.0 build 3052101

    It works for you?

    $esxName = "MyEsx".

    $esxcli = get-EsxCli - VMHost $esxName

    $esxcli.network.nic.list () | %{

    $esxcli.network.nic.get ($_.) Name) |

    Select Name,

    @{N = "Driver"; E={$_. DriverInfo.Driver}},

    @{N = 'Version'; E={$_. DriverInfo.Version}},

    @{N = 'Firmware Version'; E={$_. DriverInfo.FirmwareVersion}}

    }

  • How to get the selected tree node and its attributes

    I have a 'af:RichTree' on a page, which is linked to a support bean (session scope)

    Here is my selection Listener:

    {} public void groupTreeSelectionListener (SelectionEvent selectionEvent)
    RichTree tree = (RichTree) selectionEvent.getSource ();
    Model TreeModel (TreeModel) = tree.getValue (); / /--> this line causes a "pointer Exception zero."
    RowKeySet rowKeySet = selectionEvent.getAddedSet ();
    Key of the object = rowKeySet.iterator () .next ();
    }




    what I'll do is get the note selected and then get all the attributes of this node, perform other actions.


    Please advise,

    Thank you
    Shahab

    have not tried the tree component but cross chek well's Rowselection component of the tree. If so set to single or multiple

  • How could get the categories of items and Module-specific to the company?

    Could we make it point to organization and specific Module categories? At present, the same structure of flex 'Categories of elements' is used by management of orders (already implemented) and now the purchase of / iProcurement (executed). To make category and module-specific to the company, we need to attach a value based on a custom SQL?

    In the implementation of the OM, we used flex structure "Article catégories" for items of products finished. Thus, a finished good CEMBAG has CEMENT category. BAG attached to it. Cement bulk's CEMENT. In BULK which are related to it. In this phase, we create spare parts using the same category structure (I was wondering, if we should change it). But now, when we will implement an element, we see all categories, for finished products and spare parts in all of all businesses. So, we see Working CAPITAL. BALL.., ELECTRIC. AMMETER... OM alongwith categories. We cannot change the default category value for the management of orders or inventory (already implemented), but it looks like that we would have to change the default category for purchases of separate categories. Also need to separate the research as the reason Codes. Tell code for a reception various gives all reason codes, those created for the management of orders and purchases.

    You must make sure that the categories assigned to the entire old category also appear in the new category.

  • How to get the Windows 8 applications and allow the modern user interface

    I was so irritated by Windows 8, I completely removed all apps and disabled 'Metro' as much as possible.

    I now need Microsoft Store to install the Windows 8.1 update.

    How can I do this without a complete reinstall?

    This should be useful for you:

    [Windows 8 recovery & repair | http://aps2.toshiba-tro.de/kb0/TSB2A03ES0000R01.htm]

    Probably the best choice would be the option refresh your PC
    You could update the system without losing your files.

  • ASD service - how to get the values of Description and reason in the workflow

    Hi all

    I've created a workflow-based service of ASD. When the catalog of the ASD is requested, the first tab is 'Request information' which has the field description and reason. How to access these values to the underlying stream.

    Thank you

    Hello

    Here's a simple solution:

    ASDRequestId = System.getContext () .getParameter ("__asd_catalogRequestId");

    ASDRequest = vCACCAFEEntitiesFinder.getCatalogItemRequest(vRA_CAFEHost,ASDRequestId);

    Request_Reason = ASDRequest.reasons;

    Request_Description = ASDRequest.description;

    Request_Owner = ASDRequest.requestedFor;

Maybe you are looking for

  • Satellite L350D - 20 d - movie playback jumps only if disconnected from headset

    welll I got another but a very weird problem with my laptop speakers... its starts when I saw my last movie HD maded... its just 720 p but... when I plugged in the headphones to the laptop everythink is fine. BUT when I disconnect head portable phone

  • Since the touchpad on a Satellite A100-812 Scrollfunction does not work

    The scrollfunction of the touchpad (A100-812) no longer works.Device should work perfectly said verification of the material.

  • Satellite A30 213: broken in the power supply pin

    I have so many problems with this.I'd rather put it in the trash than to fix it, but unfortunately I have important documents that I have not saved. Basically, the PIN into the Jack of the laptop is broken and I can't be able to my laptop and my batt

  • Monitor: How to unlock!

    I had the monitor u2711 for a few days.  Today I managed to lock the controls on the front panel (a small padlock appears when I press the one just above the power button).  The manual (as it is) says there is also menu anOnScreenDisplay, but I do no

  • Mirroring blackberries blackBerry smartphones

    I would like to 'mirror' a Blackberry. The idea is that I have two BB - one which is actively used and synchronization with Outlook and the other which is a spare drive which will be constantly updated with changes made to the other. If the primary f