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

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

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

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

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

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

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

            return(GetXArgbColor(tb.Foreground));
        }