Nope... In VisStudio I see
Sender.Fill.toString() "SolidColorBrush" String
I did do this work around since I simply want to apply the color of another object ... I can use the long value... so,
var SndFill = Sender.Fill.Color
var
TmpRct = '<Rectangle Canvas.Left="'+(XPos-10)+'" Canvas.Top="'+(YPos-10)+'" Width="'+SWd+'" Height="'+SHt+'" Fill="red" StrokeThickness="1" Stroke="blue" Opacity="0.35" IsHitTestVisible="false"/>';this.TempBlock = this.control.content.CreateFromXaml(TmpRct); this.TempBlock.Fill.Color = SndFill;
.... this works but it bothers me that I can't get a hex value for the color .... seems to me to be a minor bug in the object model
What I'd like to do is (bold italic):
var TmpRct = '<Rectangle Canvas.Left="'+(XPos-10)+'" Canvas.Top="'+(YPos-10)+'" Width="'+SWd+'" Height="'+SHt+'" Fill=="'+SndFill +'" StrokeThickness="1" Stroke="blue" Opacity="0.35" IsHitTestVisible="false"/>';
But this fails because its a long number
By the way there's the same issue with Stroke
Sender.Stroke.toString() "SolidColorBrush" String
tom