C# Tutorials and offshore development in India
    Tutorials   Resources   Forum   Reviews   Communities   Interview   Jobs   Projects   Training   Your Ad Here    
Silverlight Games | Mentor | Code Converter | Articles | Code Factory | Computer Jokes | Members | Peer Appraisal | IT Companies | Bookmarks | Polls | Revenue Sharing | Lobby | Gift Shop |


Prizes & Awards
My Profile



Active Members
TodayLast 7 Days more...






Resources » Code Snippets » Application windows, menus & toolbars »

WPF Button ToolTips


Posted Date: 12 Aug 2009    Resource Type: Code Snippets    Category: Application windows, menus & toolbars
Author: K'ranMember Level: Gold    
Rating: 1 out of 5Points: 7



WPF Button Tooltips



In .Net 2.0 we are using Tooltip to showing Normal text Message, but in WPF we can show Tooptip like Image,Video etc



Media Element Tooltop for Button



< Window x:Class="ImageReflection.Movies"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
Title="Movies" Height="800" Width="600" Background="Black" >

< StackPanel >
< !-- Define Button -- >
< Button Width="50" Height="50" >
< !-- Button Tooltip Property -- >
< Button.ToolTip >
< !-- Define Media Element -- >
< MediaElement Source="Wildlife.wmv" Width="200" Height="200" >
< /MediaElement >
< /Button.ToolTip >
< /Button >
< /StackPanel >
< /Window >


Note:-when we are adding media files,Right Click the Media file in Solution Explorer and Select Properies

Set Copy to Output Directoyr=Copy always







Attachments

  • Sorce Code (31298-121138-MediaPlayerTooltip.txt)
  • WPF Button ToolTips (31298-121147-MediaPlayerTooltip.txt)


  • Responses


    No responses found. Be the first to respond and make money from revenue sharing program.

    Feedbacks      
    Popular Tags   What are tags ?   Search Tags  
    Sign In to add tags.
    WPF Button ToolTips  .  

    Post Feedback


    This is a strictly moderated forum. Only approved messages will appear in the site. Please use 'Spell Check' in Google toolbar before you submit.
    You must Sign In to post a response.
    Next Resource: Export file to excel in ASP.NET C#
    Previous Resource: Image 2D Reflection in WPF
    Return to Discussion Resource Index
    Post New Resource
    Category: Application windows, menus & toolbars


    Post resources and earn money!
     
    More Resources



    dotNet Slackers

    About Us    Contact Us    Privacy Policy    Terms Of Use