Hello ,
I have an application which creates barcodes.When the Windows Phone theme changed to Light,The Barcode image created is not visible on the screen.
Can someone help me on the same issue.
Thanks in Advance
Regards,
Ayyappa K
Loading User Information from Channel 9
Something went wrong getting user information from Channel 9
Loading User Information from MSDN
Something went wrong getting user information from MSDN
Loading Visual Studio Achievements
Something went wrong getting the Visual Studio Achievements
Hello ,
I have an application which creates barcodes.When the Windows Phone theme changed to Light,The Barcode image created is not visible on the screen.
Can someone help me on the same issue.
Thanks in Advance
Regards,
Ayyappa K
Make sure to explicitly set the background colour of you barcode, rather than using the system default theme?
Herbie
@ayyappakonakalla: You can place the image inside a StackPanel with an explicitly-set black background. As long as it's opaque, you should be fine.
45 minutes ago, cbae wrote
@ayyappakonakalla: You can place the image inside a StackPanel with an explicitly-set black background. As long as it's opaque, you should be fine.
Think you mean Grid. I don't think a stackpanel sizes with it's children.Even a Border would work, as it would grow to the size it's child inside is.
<Grid Background="Black">
<Image x:Name="BarCodeImage" Width="100" Height="100" />
</Grid>
Add your 2¢