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); }
public void Update(GraphicTile graphicTile) { Background = new SolidColorBrush(graphicTile.BackgroundColor); Foreground = new SolidColorBrush(graphicTile.ForegroundColor); Text = graphicTile.Char.ToString(); }