dans mon XAML j'ai:Dans Silverlight 4: comment obtenir la couleur de la propriété Fill
<Canvas Grid.Row="1" Background="#FFF2F2F2" Width="78" HorizontalAlignment="Left">
<Rectangle Height="67" x:Name="rectFront" Width="70" Fill="#FF000000" Stroke="#FFB9B9B9" StrokeThickness="3" StrokeLineJoin="Miter" StrokeStartLineCap="Flat" Stretch="Uniform" Canvas.Left="4"/>
</Canvas>
dans le code CS:
someColor = rectFront.Fill; // <-- error here, can't convert Brush to Color
qui tout à fait logique. Mais comment puis-je convertir l'attribut de couleur de la brosse hors du remplissage?
Merci
simple code