Possible Bug When Binding Data to ContentPresenter ToolTip Attribute

Hello everyone,
I'm developing a small application using WPF. I have a custom ListBox control which contains a number of CheckBox entries paired up with a ContentPresenter object which displays some text obtained from a custom generic object.
If I bind the ContentPresenter 'Content' node to one of the properties of my class, it will display the text I want correctly. However, I cannot do the same with its 'ToolTip' attribute.
Here's an excerpt of my XAML.
<Window.Resources>
<local:SandboxProfiles x:Key="profiles"/>
<DataTemplate x:Key="ListBoxItemTemplate">
<!-- The ToolTip attribute doesn't accept dynamic data bindings (maybe a bug?) within the ContentPresenter node.
Therefore, the attribute has to be inserted in the parent node (WrapPanel) for it to work. -->
<WrapPanel ToolTip="{Binding Element.FriendlyDescription}">
<CheckBox IsChecked="{Binding IsSelected}" VerticalAlignment="Center" />
<ContentPresenter Content="{Binding Element.TypeString, Mode=OneTime}" Margin="2,0" />
</WrapPanel>
</DataTemplate>
</Window.Resources>
This line works absolutely fine like this,
<ContentPresenter Content="{Binding Element.TypeString, Mode=OneTime}" Margin="2,0" />
However, this doesn't work
<ContentPresenter Content="{Binding Element.TypeString, Mode=OneTime}" ToolTip={Binding Element.TypeString} Margin="2,0" />
Note I'm using the exact same pattern here, only that I'm applying it to the ToolTip attribute instead of Content. This doesn't work. It compiles, no exceptions, but no tooltip is displayed.
However, if I bind the ToolTip attribute of the CheckBox node or the parent WrapPanel node in the exact same way, it
does work. This works,
<WrapPanel ToolTip="{Binding Element.TypeString}">
And this works too,
<CheckBox IsChecked="{Binding IsSelected}" ToolTip="{Binding Element.TypeString}" VerticalAlignment="Center" />
I've searched the documentation and nowhere does it say I should expect ContentPresenter's 'ToolTip' attribute to behave differently than with any other XAML component.
This has led me to believe this is a bug in the WPF runtime. If, on the other hand, I'm missing something here, please, do let me know.
Thank you.

Your problem is because you're putting  a tooltip on a contentpresenter - which isn't going to respond to mouse over unless you get your mouse over it just so.
You can easily reproduce that if you throw a little markup in a new mainwindow:
<Grid Name="myGrid">
<ContentPresenter ToolTip="Banana"/>
</Grid>
Substitute TextBlock for contentpresenter
<TextBlock Text="Whatever" ToolTip="Banana"/>
And it works easily.
<TextBlock Text="{Binding Element.TypeString, Mode=OneTime}" Margin="2,0" />
Maybe I'm missing something but I can't really see why you have a contentpresenter at all.
Assuming typestring is a string as it's name rather implies.
Hope that helps.
Recent Technet articles:
Property List Editing ;  
Dynamic XAML
Substituting the ContentPresenter node for a simple TextBlock as you said worked for me, thank you.
But Magnus is right in that you do have mouse-over events with ContentPresenter components; only that for some reason I don't know, they only work when the ToolTip attribute is set to a hardcoded string and no bindings are happening. So it does respond to
the mouse but it doesn't display anything that has been dynamically bound to it, for some reason.

Similar Messages

  • [svn:fx-trunk] 5409: Fix to bug when binding to constraints.

    Revision: 5409
    Author: [email protected]
    Date: 2009-03-18 21:48:06 -0700 (Wed, 18 Mar 2009)
    Log Message:
    Fix to bug when binding to constraints. Setting real width/height values on ConstraintRow/Column should always register that object as being not content-sized.
    QE Notes: None
    Doc Notes: None
    Bugs: SDK-19041
    Reviewer: Deepa
    Testing: checkintests, Mustella containers
    Ticket Links:
    http://bugs.adobe.com/jira/browse/SDK-19041
    Modified Paths:
    flex/sdk/trunk/frameworks/projects/framework/src/mx/containers/utilityClasses/ConstraintC olumn.as
    flex/sdk/trunk/frameworks/projects/framework/src/mx/containers/utilityClasses/ConstraintR ow.as

    error dateField not selecion date 27/11/2002 ?
    This is bug flex 3 ?
    thanks

  • Possible Bug when selecting the "text" tab on a Line Chart

    Thought I would pass this on.  Not sure if it has been logged yet or not.  Sometimes when building a line chart, the properties field locks up when I try and select the "text" tab.  The dialog boxes in the "text" tab do not show up and the "layout" tab is also highlighted.  I do not know what causes this, but it has happened to me numerous times.  The only solution is to totally delete the line chart and start all over.  It may be related to copying and pasting.  I set up a chart the way I need it and then copy/paste it rather than making all the changes on a default settings chart when I need another chart.
    Stan

    Hi Stan,
    Are you encountering this problem in the RTM version or SP1?
    Can you list the exact steps to reproduce this problem in the most simple case?
    Example:  add line chart, bind to data, copy, paste, click on text tab...............
    Thanks,
    Gerrit

  • Possible bug when creating multiple detail view objects

    using jdev 11.1.1.0.0 to build jsf/adf applications. I wanted to report what seems like a bug in 11g. I have a parent table which has two child tables. After creating the appropriate entities, associations, views, and view links, the app module looks like this:
    MasterView
    --DetailView1
    --DetailView2
    The two detail view objects are on the same level, they are both direct children of the Master view.
    Here's what's happening:
    1) I create the master entity/view objects (MasterView)
    2) I create one of the detail entity/view objects (DetailView1).
    3) I create the association and view link to establish relationship between MasterView and DetailView1. Everything works fine.
    4) I create the entity/view objects for second detail view (DetailView2)
    5) When I attempt to create a second view link (based off an association) to establish the relationship between MasterView and DetailView2, the query clauses of the Create View Link wizard (screens 4 and 5) do not get created properly. I finish the wizard and save. Not only does this view link not get created properly, but in the process the query clauses that were defined in the first view link between MasterView and DetailView1 are wiped out. This will break any coordination between master and detail views in both the app module tester and runtime. Has anyone seen this problem?

    fyi, it looks like this issue has been resolved with jdev 11.1.1.0.2 (Update 2)

  • Possible bug when opening NEF-images as Smart Objects in PS CS3?

    In architectural images I often apply lens corrections (Rotation, Distortion, vertical Transformation) to my RAW (NEF) images.
    When I open such an image in PS CS3 as a PSD all is fine, that means all the lens correction is applied.
    But when I open the same image in PS as a Smart Object the lens correction is not applied, i.e. PS shows the image with all LR-editing (such as color temperature, exposure, contrast, etc) except for the lens correction data.
    What is wrong here?
    I'm running LR 3.2 and PS CS3.
    Thank you for your input.
    ErnstK

    Thank you for your answers.
    It occurred to me - and Ian's post seems to confirm this - that PS CS3 is not fully compatible with LR3.2.
    When I chose <Edit in CS3> (to open the image as PSD) I get the message that my Camera Raw plug-in is 4.6 and it gives me the choice to <Open Anyway> or to <Render by LR>. I usually chose the latter and I assume that this is technically an Export.
    When I chose <Open as Smart Object> it just opens the image in CS3 without any dialog in between.
    I guess it's time to upgrade to CS5.
    Thank you all.
    ErnstK

  • Possible bug when syncing between iCal & iPhone

    Am I doing something wrong. Here's the scenario.
    I have set up a continuous repeating appointment in iCal for my daughter
    Mon-Fri inclusive. 'School'
    I then went and changed selected events to 'Summer Holiday' where applicable, each time I changed a day it asked whether I wanted to change 'Just this event' or 'All future events'.
    I selected 'Just this event'.
    iCal worked fine and showed the new event on the correct days, but when I synced with the iPhone, the iPhone showed two events, the original repeating event and now the amended event as a new one. After the sync iCal still showed as correct
    It seems to be a flaw in the sync between the iPhone and iCal.
    Does this make sense?
    Can anyone else duplicate this scenario, or am I doing something wrong?
    What is the best way to report this to Apple as a sync bug, if it is one?
    cheers for listening to this waffle
    Paul

    Yes, I've experience the same problem. In addition, when I enter a calendar event in iCal it syncs to the iPhone. When I enter a calendar event in the iPhone it does NOT sync to iCal on my intel based macbook. I've followed the "iPhone Troubleshooting Assistant" to the end without fixing the problem.

  • Possible bugs when adjusting column width in Query Builder

    Good morning,
    we use Oracle SQL Developer 3.2.20.09 with included JDK on Windows 7 32 bit.
    When we open a sql file, in the Query Builder the criteria columns don't auto-adjust accordingly with the length of text present in the columns.
    Also, if we modify or type a new criteria in a column, and immediately after drag the column header to widen the cell, the cell content is erased (if we click first in another cell the problem doesn't occur).
    Thanks for reading and best regards.
    Marco - Italy

    Hi Marco,
    Please note that SQL Developer has included a Query Builder from a third-party since the 3.0 release. I will ping the developer that acts as liaison; perhaps you will get a more definitive response. I can only assume any UI bugs would have to be fixed by the third-party company at his request.
    Regards,
    Gary
    SQL Developer Team

  • Q: Possible bug when creating DB_LINKS

    One for Apex Development,
    I don't know if this is a bug but it looks a bit strange.
    I created a DB_LINK in APEX using SQL Workshop and it appears to work fine but the name of the db_link has the following domain amended upon creation.
    <DATABASE LINK NAME>.REGRESS.RDBMS.DEV.US.ORACLE.COM
    Is this correct or should I be able to specify the domain somewhere in the APEX setup ?
    My installation was ungraded from v2.0 to v2.2 if that might make a difference. I do not know if the situation was the same in v2.0
    Thanks in advance
    Chris

    I think that's a database version issue. When we upgraded our databases to 10gV2, we started getting that stuff appended to our db link names, whether we created db links in sql plus, Toad or Apex. Try putting double quotes (") around the database link at creation time and see if that doesn't solve the problem.

  • Possible bug when rendered attribute set with EL

    I have the following outer panelform:
    <af:panelForm rendered="#{RoleSearch.roleSelected == RoleSearch.SUPERVISOR}">
    within this panelform i have a table and a selectone commandbutton,
    <af:commandButton text="Edit"
    action="#{RoleSearch.editDetails}">
    <af:setActionListener from="#{row.Userid}"
    to="#{processScope.userIdSelected}"/>
    </af:commandButton>
    don't worry about the parameter my action listener is settting.
    the problem is, when the commandbutton is encapsulated with an outer rendered component, it does not function, it does not trigger the action. if i manually set the rendered attribute to "true" things work fine.
    The components are displayed correctly, i.e. rendered correctly depending on my holder, however the commandbutton won't fire off the action when it is used like this.
    has anyone faced this problem before? is this a known issue?
    any help is much appreciated, i have had to write a few workarounds to resolve similar issues i have run into when developing with ADF BCs.
    thanks.

    Hi,
    i can't see any obvious problems with what you are doing especially considering that it works ok if you manually set the rendered attribute of the panelForm to true.
    Have you tried setting the rendered attribute at the command button level and leaving the panelForm rendered?
    Brenden

  • Possible bug when using Key Command

    Greetings,
    Can someone confirm this behavior in Logic 9? When I'm editing a plugin and hit my key command to go to a location, enter the measure # and hit enter - all **** breaks loose. It's as though I'm scrolling through a bunch of screensets and the enter location window still stays on top.
    Am I the only experiencing this? Misery sure does love company.
    Cheers

    fyi, it looks like this issue has been resolved with jdev 11.1.1.0.2 (Update 2)

  • Possible bug when loading dll through JNI

    Hi guys,
    I have come accross a strange occurance, if anyone can help me out i'd appreciate it lot.
    I have written an unmanged (MFC) dll which connects to a managed(.NET) dll.
    If I load the MFC dll without using any of the references to the managed dll everything is ok.
    But as soon as I include a call to initialize a managed member my java program just exits. Then if i try and run it again it gives me a stack overflow exception.
    The dll works absolutely 100% perfectly from other c++ applications (I've called all of its methods via a simple dos program), so it seems that there may be some protective layer that java is wrapping the dll in that isn't letting it make any managed calls.
    Has anyone had this problem before or know how to get around it?
    Below is the code from the unmanged (MFC) dll
         CNewDLLTestApp();
         void WriteToDevice(int Value);
         char ReadFromDevice();
            // this is the managed call, gcroot lets you call managed code from an unmanged area
         gcroot<JavaIntegrateManagedClass::Class1*>c;In the exposed java functions I initialize the class member c, and then call the regular dll functions.

    Sadly that is the complete error message.
    I've tried putting the load("DLL") in a try catch block but it never catches it. The debugger output screen just prints StackOverflowException.
    The JNI calling code doens't even get invoked at this point.
    * Class:     MainInterface
    * Method:    WriteToDevice
    * Signature: (I)V
    JNIEXPORT void JNICALL Java_MainInterface_WriteToDevice
      (JNIEnv *, jobject, jint Value)
         MessageBox( (HWND)NULL,"In java function","Unmanged DLL",MB_OK);
         //theApp.c->WriteToDevice(Value);
    }If I put the commented line back in the StackOverflowException occurs. If I leave it out everything is fine.
    c is a class within a managed DLL, which in turn links to a managed class.
    The layers may seem excessive but I understood it was needed to fool java into thinking it was calling unmanaged code.
    What I don't understand is how a standard C++ console application can make the calls no problem, but Java can't. Surely the execution of the dll process should be exactly the same.
    Thanks
    DRB2k5

  • Possible Bug with Drag-and-Drop Being Published via HTML5 - Getting "Undefined" Error When Dragging Object

    Hello,
    I came up with a way to use drag-and-drop interactions that will take advantage of file input so that I may create a drag-and-drop interaction that uses one draggable object over and over allowing multiple scoring/tracking possibilities.  Example use...is having the draggable object be dynamic in that it randomly changes its text so that a learner can drag a term it's possible classification.........thus allowing the possibility of having many terms easily loaded without having to redo a drag-and-drop interaction for each needed terms/classifications updates/changes.
    My Issue: When using a variable to represent the text for a draggable Smart Shape object, I'm getting the error message "undefined" when, clicking/pressing on the object, as well as during the drag of the object. This issue occurs when publishing the project in an HTML5 format.  Flash interestingly enough seems to work perfect...but we are not interested in publishing via Flash any longer.
    To better help you explore this error message, I've set up a test project so that you can see when and how the "undefined" message shows up during a drag-and-drop interaction.  I've also included the Captivate 8 project file used to make the exploration project I'm sharing in this post.
    Link to Captivate project I created for you all to explore "undefined" error message": http://iti.cscc.edu/drag_and_drop_bug/
    Link to this Captivate 8 Project file: http://iti.cscc.edu/drag_and_drop_bug.cptx
    It's pretty interesting how things react in this demo, please try the following actions to see some interesting happenings:
    Drag the Yellow (or variable drag box) to the drag target.
    Drag Black Hello square to Drag target and click undo or reset - watch the undefined message come up on the Yellow (or variable drag box).
    Drag the Yellow (or variable drag box) to the drag target and then use the undo or reset.
    Move both draggable boxes to the drag target and use the undo and reset buttons...
    Anyhow, I know you all are sharp and will run the demo through its paces.
    I'd really be very honored if anyone help me figure out how I could (when publishing out to HTML5) no longer have the "undefined" error message show up when using drag-and-drop with a variable for shape text. This technique has been well received at the college I work at...and I have many future project requests for using such an idea on a variety of similar interactions. I'd love see a solution or see if this might be a bug Adobe may be able to fix!
    I tried to find a solution to the issue documented here for quite some time, but I was not able to find anyone with this problem much less attempting the idea I'm sharing in the help request -  save the darn "undefined" message that comes up!
    Many thanks in advance for any help and/or direction that you all may be able to provide,
    Paul

    Hello,
    I just wanted to supply a minor update related to my drag-and-drop question/issue stated above:
    I did another test using Captivate 7, and found that the undefined error (publishing as HTML5) does not appear and the variable data remains visible - except the variable data turns very small and does not honor any font size related settings.
    I did go ahead and submit this to Adobe as a possible bug today.
    Thanks again for any help related to this issue.  If the issued documented above is solved, it will allow many amazing things to be done using Captivate's drag-and-drop for both regular type projects as well as interaction development for iBooks! 
    Matter of fact if this issue gets fixed, I'll publish a Blog entry (or video) on way's I've used Captivate's drag-and-drop to create dynamic learning activities for Higher Ed. and for use in iBooks.
    ~ Paul

  • Chart binded data not showing when Window State property of form is set to Maximized

    Possible bug?
    Using In VS 2013 Community, .NET 4.5, MySQL w/Connector/NET...
    When a form is maximized, it wil not render the binded datasource on a chart.
    Example is a new project...  chart dragged onto a form... add a Dataset when initializing the chart and immediately bind that to the Datasource property with no changes to the chart except changing your XValue from a column to a line type. I only have
    3 columns in the table. keyId, entryDate, mcf.
    I can also maximize the window after the form is up and running and it doesn't effect the chart at all.
    Any ideas? I need the window to run in a maximized state.
    Many thanks!

    Hi,
    to debug your web content in IE
    f12>Debug tab, select "Break on all errors"... the debugger will break on any errors.
    Emulation tab, tells you which emulation mode the browser is using and which userAgent string it is using.
    File>Properties shows which IE security zone it maps to.
    "When a form is maximized it will not render the binded datasource on a chart"
    Probably you are running from a localhost proxy (http://localhost:8080)... the IE developer tool will show you any scripting errors. Publish your 'test' to a named webserver. eg.
    http://localhost/test.local
    - Questions about html, css and scripting for website developers. If possible please include with your question a link to your website or a mashup that shows the issue.
    Regards.
    Rob^_^

  • Is it possible to save a data portion starting from when a "save" button is pressed?

    Hi,
    The below attached vi acquires data from a sensor. The sensor signal output can be reset to zero and the data saved into a file. However, the saved data comprises the data portion starting from when the vi starts running until the "stop" button is pressed. Is it possible to save the data portion starting from when the "save" button until the "stop" button are pressed?
    Best regards,
    Ninjatovitch
    Solved!
    Go to Solution.
    Attachments:
    Sensor Signal Acquisition.vi ‏52 KB

    this should be in 8.2
    Harold Timmis
    [email protected]
    Orlando,Fl
    *Kudos always welcome
    Attachments:
    RandomNumberSubVI.vi ‏8 KB
    savefilewhenselected.vi ‏11 KB
    f.txt ‏1 KB

  • Sql query to bind data from grid and print total count and amount total when date changes

    SELECT SLHD.VOUCH_CODE,SLHD.VOUCH_DATE,SLHD.VOUCH_NUM,SUM(SLTXN.CALC_NET_AMT) AS AMT,ACT.ACT_NAME,SUM(SLTXN.TOT_QTY) AS QTY
    FROM SL_HEAD20132014 AS SLHD,ACCOUNTS AS ACT,SL_TXN20132014 AS SLTXN
    WHERE SLHD.ACT_CODE=ACT.ACT_CODE AND SLTXN.VOUCH_CODE=SLHD.VOUCH_CODE
    GROUP BY SLHD.VOUCH_CODE,SLHD.VOUCH_DATE,SLHD.VOUCH_NUM,ACT.ACT_NAME
    ORDER BY SLHD.VOUCH_DATE 
    i want to print total quatity and total sale in grid when data changes
    like
    date amount quantity
    01/02/2013 1200 1
    01/02/2013  200 1
    01/02/2013  1400 2 // date changes here 
    02/03/2013 100 1 
    02/03/2013 50 4
    02/03/2013 150 5 // date changes and so on

    this query only print all the data from table i want total quantity and total amount of daily sale in same grid when ever date changes
    You may add the date filter to Visakh's query:
    SELECT SLHD.VOUCH_DATE,SUM(SLTXN.CALC_NET_AMT) AS AMT,SUM(SLTXN.TOT_QTY) AS QTY
    FROM SL_HEAD20132014 AS SLHD,ACCOUNTS AS ACT,SL_TXN20132014 AS SLTXN
    WHERE SLHD.ACT_CODE=ACT.ACT_CODE AND SLTXN.VOUCH_CODE=SLHD.VOUCH_CODEand SLHD.VOUCH_DATE = @yourdate --passed from the front end application
    GROUP BY SLHD.VOUCH_DATE
    WITH CUBE
    ORDER BY SLHD.VOUCH_DATE
    Having said, each time when you select the date, you query the table would be expensive method. May be you can filter the date within your dataset already populated if you have entire data in the dataset.

Maybe you are looking for

  • Issue in dbms_metadata.set_transform_param , SQLTERMINATOR Property

    Hi, I am using the dbms_metadata to get the DDL for all the objects in a particular schema. DDL is retrieved without any issue, but the SQLTERMINATOR  is not added in end of any DDL. The property used is   dmsf := dbms_metadata.session_transform;   d

  • Problem with Maintenance Optimizer...

    Hello gurus, I had a problem which I didn´t reached a solution... When I create a new maintenance optimizer transaction and choose, on first step "Plan Maintenance", a type of Product Version I don´t have all systems which I configure on this Product

  • How to catch and handle soap foult in a BPM process?

    Hi, I have a BPM process which calls a webservice in one of its activities. The webservice throws an exception so the response will contain a soap fault element. I defined exception handlers to handle the error but none of the exception handlers are

  • Downloaded Logic 9 version asking for serial number?

    Hi, i recently installed Logic Pro in a my recently adquired Macbook pro (it isnt new - mid 2012), i install it using the mac app store, where it was available for download. I have it installed and working on my main iMac, no problems there, but when

  • How to transformations...

    Hi guys! I need to know if it is possible to generate N records on target based only on one unique record on source in transformations. I know it is possible using groups but I need to do it on an ABAP routine, this routine distributes a FIGL documen