/// <summary>
 /// Mark selected element
 /// </summary>
 public void MarkElement(A11yElement ele)
 {
     lock (this)
     {
         if (HighlightAction.GetDefaultInstance().IsEnabled)
         {
             var ha = HighlightOverlayAction.GetDefaultInstance();
             HighlightOverlayAction.BringMainWindowOfPOIElementToFront();
             ha.MarkElement(ele);
         }
     }
 }
        /// <summary>
        /// Sets element context and updates UI
        /// </summary>
        /// <param name="ec"></param>
        public void SetElement()
        {
            var ecId = SelectAction.GetDefaultInstance().GetSelectedElementContextId();

            if (ecId.HasValue)
            {
                ElementContext ec = GetDataAction.GetElementContext(ecId.Value);
                this.ElementContext = ec;
                var brush = Application.Current.Resources["HLTextBrush"] as SolidColorBrush;
                var ha    = HighlightOverlayAction.GetDefaultInstance();
                ha.SetElement(ElementContext.Element, brush, null, 0);
                if (this.IsVisible && HighlightVisibility)
                {
                    ha.Show();
                }
            }
        }