Beispiel #1
0
        public TileControl(GraphicTile graphicTile)
        {
            Width  = TileWidth;
            Height = TileHeight;

            FontFamily          = FontFamily.Parse("Square");
            FontSize            = 16;
            HorizontalAlignment = HorizontalAlignment.Center;
            VerticalAlignment   = VerticalAlignment.Center;
            TextAlignment       = TextAlignment.Center;
            Update(graphicTile);
        }
Beispiel #2
0
 public void Update(GraphicTile graphicTile)
 {
     Background = new SolidColorBrush(graphicTile.BackgroundColor);
     Foreground = new SolidColorBrush(graphicTile.ForegroundColor);
     Text       = graphicTile.Char.ToString();
 }