示例#1
0
        void tb_MouseMove(object sender, MouseEventArgs e)
        {
            TextStyle textstyle = new TextStyle((sender as TextBlock).Foreground, (sender as TextBlock).Background);

            if (textstyle.Equals(TextStyle.InfoStyle) || textstyle.Equals(TextStyle.ErrorStyle))
            {
                m_TextStyle = textstyle;
            }
            MarkRow(sender as TextBlock, Brushes.Blue, Brushes.WhiteSmoke);
            if (sender != null)
            {
                int row = Grid.GetRow(sender as UIElement);
                FireRowMouseOverEvent(row);
            }
        }
示例#2
0
 public bool Equals(Theme other)
 {
     return(other != null &&
            DarkEditor == other.DarkEditor &&
            TextStyle.Equals(other.TextStyle) &&
            Color.Equals(other.Color) &&
            BackgroundPath.Equals(other.BackgroundPath) &&
            PointerPath.Equals(other.PointerPath) &&
            DefaultIconPath.Equals(other.DefaultIconPath) &&
            PointerScale.Equals(other.PointerScale));
 }
示例#3
0
        public bool Equals(SharedSpan other)
        {
            if (other == null)
            {
                return(false);
            }
            if (ReferenceEquals(this, other))
            {
                return(true);
            }

            return(TextSize.Equals(other.TextSize) &&
                   TextStyle.Equals(other.TextStyle) &&
                   TextColor.Equals(other.TextColor) &&
                   BackgroundColor.Equals(other.BackgroundColor) &&
                   IsClickable == other.IsClickable &&
                   Equals(ClickValue, other.ClickValue));
        }