Files
DP44/Common/DTS.CommonCore/Themes/CommonStyles.xaml.cs
2026-04-17 14:55:32 -04:00

26 lines
726 B
C#

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Controls;
using DTS.Common.Events;
using Microsoft.Practices.ServiceLocation;
using Microsoft.Practices.Prism.Events;
namespace DTS.Common
{
public partial class CommonStyles
{
public void ToolTipEventHandler(object sender, System.Windows.Controls.ToolTipEventArgs e)
{
e.Handled = true;
var eventAggregator = ServiceLocator.Current.GetInstance<IEventAggregator>();
eventAggregator.GetEvent<HelpTextEvent>().Publish(new HelpTextEventArg()
{ Sender = sender, E = e });
}
}
}