Exemplo n.º 1
0
            public override void Load()
            {
                _angle = 90;
                base.Load();
                _TextBlock = new TextBlock { Text = "0", Width = 40, Height = 20 };
                Add(_TextBlock);
                _TextBlock.Center(0, -10);
                //_Canvas.Children.Add(_TextBlock);

                Rectangle _Rectangle = new Rectangle { Width = 10, Height = 40, Fill = new SolidColorBrush(Colors.Red) };
                Add(_Rectangle);
                _Rectangle.Center(0, -10);
            }