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

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

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

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

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

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

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

            return(GetXArgbColor(tb.Foreground));
        }