Example #1
0
 public void Set(IText text, IBoolState state)
 {
     WpfBlockHelper.GetTextBlock(text).Foreground = SelectBrush(state);
 }
Example #2
0
        public int GetVAlign(IText text)
        {
            var tb = WpfBlockHelper.GetTextBlock(text);

            return((int)tb.VerticalAlignment);
        }
Example #3
0
        public double GetSize(IText text)
        {
            var tb = WpfBlockHelper.GetTextBlock(text);

            return(tb.FontSize);
        }
Example #4
0
        public string GetText(IText text)
        {
            var tb = WpfBlockHelper.GetTextBlock(text);

            return(tb.Text);
        }
Example #5
0
        public int GetHAlign(IText text)
        {
            var tb = WpfBlockHelper.GetTextBlock(text);

            return((int)tb.HorizontalAlignment);
        }
Example #6
0
        public ItemColor GetForeground(IText text)
        {
            var tb = WpfBlockHelper.GetTextBlock(text);

            return(GetItemColor(tb.Foreground));
        }
Example #7
0
 public void Select(IText text)
 {
     WpfBlockHelper.GetTextBlock(text).Foreground = WpfBlockFactory.SelectedBrush;
 }
Example #8
0
 public void Deselect(IText text)
 {
     WpfBlockHelper.GetTextBlock(text).Foreground = WpfBlockFactory.NormalBrush;
 }
Example #9
0
        public bool IsSelected(IText text)
        {
            var tb = WpfBlockHelper.GetTextBlock(text);

            return(tb.Foreground != WpfBlockFactory.SelectedBrush);
        }
Example #10
0
        public ArgbColor GetForeground(XText text)
        {
            var tb = WpfBlockHelper.GetTextBlock(text);

            return(GetXArgbColor(tb.Foreground));
        }