Silverlight c# adding tooltip to textblock -


i generating textblock in c# , want add tooptip displays image , text. how can without xaml?

use code this:-

        textblock txt = new textblock();         txt.text = "hello world";         tooltipservice.settooltip(txt, "some content"); 

note can replace "some content" uielement containing pretty content wish.


Comments

Popular posts from this blog

windows - Why does Vista not allow creation of shortcuts to "Programs" on a NonAdmin account? Not supposed to install apps from NonAdmin account? -

c++ - How do I get a multi line tooltip in MFC -

unit testing - How to mock PreferenceManager in Android? -