Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8860305
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 14, 20262026-06-14T15:14:24+00:00 2026-06-14T15:14:24+00:00

i have this converter class : namespace WorkflowPhone8.Helpers_and_Extensions { public class InboxItemValueConverters : IValueConverter

  • 0

i have this converter class :

    namespace WorkflowPhone8.Helpers_and_Extensions
{
    public class InboxItemValueConverters : IValueConverter 
    {
        public object Convert(object value, System.Type targetType,
                                object parameter, CultureInfo culture)
        {
            int urgency = (int)value;
            Brush brush = new SolidColorBrush();

            if (urgency == 0)
            {
                brush = new SolidColorBrush(Colors.Green);
            }
            else if (urgency == 1)
            {
                brush = new SolidColorBrush(Colors.Yellow);
            }
            else if (urgency == 2)
            {
                brush = new SolidColorBrush(Colors.Red);
            }

            return brush;
        }

        public object ConvertBack(object value,  System.Type targetType,
                                  object parameter,  CultureInfo culture)
        {
            return null;
        }

    }

and in my xaml i referenced this class as follows :

<phone:PhoneApplicationPage.Resources>
   <src:InboxItemValueConverters x:Key="converttocolor" />

as i build solution it says :

Error 1 ‘src’ is an undeclared prefix. Line 71, position 6.

anyone knows why it does this?
or should i reference this another way?
using visual studio 2012, windows phone 8, silverlight, c#

thanks in advance.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-14T15:14:25+00:00Added an answer on June 14, 2026 at 3:14 pm

    You need to declare src as a namespace in your XAML. It would be something like this.

    <Window xmlns:src="clr-namespace:WorkflowPhone8.Helpers_and_Extensions;assembly=WorkflowPhone8">
    

    Though your Window-class (or UserControl for that matter if you are using this in a usercontrol) will have other namespaces as well so just append the correct namespace declaration to your root-element in your XAML.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have the following object: namespace LearnLINQ1 { [Table(Name=testMe)] public class SubmitTest { [Column(Name=FirstName)]
This is my class that implements IValueConverter: [ValueConversion(typeof(int), typeof(Priority))] public class PriorityConverter : IValueConverter
i have the following IValueConverter implementation public class MyValueConverter : IValueConverter { #region IValueConverter
I have a property of type object , which contains an Enum value, and
I have a piece of code that the ARC converter turned into this... //
I have converted an array to object data like this: <?php $myobject->data = (object)Array('zero','one','two');
I have a WPF UserControl with binding converters referenced like this: <UserControl x:Class=MyControl x:Name=MyControl
I have this function in C# to convert a little endian byte array to
I have written this code to convert string in such format 0(532) 222 22
I have used this function to convert string to bits. def a2bits(chars): return bin(reduce(lambda

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.