wpf - As combine 2 ListView.ItemContainerStyle (? -


i'm using "mahapps.metro" , want add tool tip each listviewitem. have problem if use "listview.itemcontainerstyle" in ".xaml" file, lose metro (colors/effects). can combine them?

<listview ... ... ...     <listview.itemcontainerstyle>         <style targettype="listviewitem">             <setter property="tooltip">                 <setter.value>                     <tooltip>                         ...                         ...                         ...                     </tooltip>                 </setter.value>             </setter>         </style>     </listview.itemcontainerstyle> </listview> 

thx!!!

its simple. logical part. use border item , use tooltip service here. (tooltipservice.tooltip="i itemtooltip")

for exp:

<datatemplate>                         <border tooltipservice.tooltip="i itemtooltip">                             <stackpanel verticalalignment="bottom" background="{themeresource listviewitemoverlaybackgroundthemebrush}">                                 <textblock text="{binding title}" foreground="{themeresource listviewitemoverlayforegroundthemebrush}" style="{staticresource titletextblockstyle}" height="60" margin="15,0,15,0"/>                                 <textblock text="{binding subtitle}" foreground="{themeresource listviewitemoverlaysecondaryforegroundthemebrush}" style="{staticresource captiontextblockstyle}" textwrapping="nowrap" margin="15,0,15,10"/>                             </stackpanel>                         </border>                     </datatemplate> 

Comments

Popular posts from this blog

Magento/PHP - Get phones on all members in a customer group -

php - .htaccess mod_rewrite for dynamic url which has domain names -

Website Login Issue developed in magento -