BING MAPS WPF V1 — BUG — Error Message Font is White on White Background, Can't See!

Answered BING MAPS WPF V1 — BUG — Error Message Font is White on White Background, Can't See!

  • Thursday, January 19, 2012 9:11 AM
     
     

    I INTENTIONALLY passed a blank key to Bing Map Credentials. This will cause Bing Maps WPF to display a white bar at the middle of the map containing the error message.

    So we used Snoop to inspect the UI, and found the error message box, but the Text Color is White on White Background! Therefore, we can't see the error message.

    We've exhausted the possible culprits (XAML Styles that might influence the Error Message Formatting), but that's impossible, because ErrorTextBox is not exposed.




All Replies

  • Thursday, January 19, 2012 12:21 PM
     
      Has Code

    Hi,

    for example!

    in xaml:

    <m:Map Name="BingMap"
    CredentialsProvider="{Binding CredentialsProvider}"
    .
    .
    ./>
    

    in Mainwindow:
    Private ReadOnly _credentialsProvider As CredentialsProvider = New ApplicationIdCredentialsProvider(My.Settings.BingMapKey)
    
        Public ReadOnly Property CredentialsProvider() As CredentialsProvider
    
            Get
                Return _credentialsProvider
            End Get
        End Property
    

     

    Best regards.


    ZGuideTV.NET project Admin/Dev : http://zguidetv.codeplex.com/

  • Thursday, January 19, 2012 12:44 PM
     
     

    Thanks Neo, but we already know how to create a CredentialsProvider.

    The problem we're having is that the Error Message is White instead of Black. Therefore, we can't see the error message. What we're seeing is a white bar.

    SCREENSHOT:

     

  • Wednesday, February 22, 2012 6:27 AM
     
     
    * Bump Thread

    Any ideas guys?
  • Wednesday, February 22, 2012 7:28 AM
     
     
    I just found a fix. This is now ok.
  • Wednesday, February 22, 2012 9:32 AM
    Owner
     
     
    What was your fix?

    http://rbrundritt.wordpress.com

  • Wednesday, February 22, 2012 3:02 PM
     
     Answered
    For some reason, the default Foreground Color of XAML is White. So we changed it to gray.
  • Tuesday, May 29, 2012 3:55 PM
     
     

    I have the same problem, I set the style for all TextBlock as:

    <Style TargetType="TextBlock">
            <Setter Property="Foreground" Value="#FFFFFFFF"/>
            <Setter Property="Padding" Value="2"/>
        </Style>

    Why error's panel  does not take the foreground color set in the bing map control???