Click here to Skip to main content
15,881,812 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
how to go to trigger an event outside a constructor in wpf
Posted
Comments
Kenneth Haugland 7-May-15 3:03am    
What? Like a button you mean?
Member 11521909 7-May-15 3:14am    
no a tool tip
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Controls.Primitives;
using System.Windows.Data;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Imaging;
using System.Windows.Navigation;
using System.Windows.Shapes;
namespace MotionControl.Resources.Stencils
{
partial class MicroPositionStencil : ResourceDictionary

{
public MicroPositionStencil()
{
InitializeComponent();



}
private void image_MouseEnter(object sender, MouseButtonEventArgs e)
{
ToolTip tooltipParam = new ToolTip();
tooltipParam.Content = "hey";


ToolTipService.SetToolTip(image1, tooltipParam);


tooltipParam.IsOpen = true;
}

}
}

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900