public void SetCard(SetCard card) { if (m_card != card) { m_card = card; if (m_card != null) { Drawing drawing = SetCardDrawingFactory.GetFullCardDrawing(m_card); DrawingBrush brush = new DrawingBrush(drawing); DiffuseMaterial material = new DiffuseMaterial(brush); material.Freeze(); m_geometry.Material = material; } else { m_geometry.Material = new DiffuseMaterial(Brushes.Transparent); } } }
protected override DrawingImage ConvertBase(SetCard input) { return(new DrawingImage(SetCardDrawingFactory.GetCardDesignDrawing(input))); }