Exemplo n.º 1
0
        public ChatUserImage()
        {
            InitializeComponent();

            Loaded += ChatUserImage_Loaded;

            ToolTipService.AddToolTipOpeningHandler(this, new ToolTipEventHandler((sender, args) =>
            {
            }));
        }
Exemplo n.º 2
0
        private static void OnStatusChanged(DependencyObject d, DependencyPropertyChangedEventArgs e)
        {
            var element = d as FrameworkElement;

            if (element == null)
            {
                return;
            }

            ToolTipService.RemoveToolTipClosingHandler(element, ToolTipClosed);
            ToolTipService.RemoveToolTipOpeningHandler(element, ToolTipOpened);

            ToolTipService.AddToolTipOpeningHandler(element, ToolTipOpened);
            ToolTipService.AddToolTipClosingHandler(element, ToolTipClosed);
        }