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 3637142
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 19, 20262026-05-19T01:07:15+00:00 2026-05-19T01:07:15+00:00

In a Windows Phone 7 project I’m using XAML that looks like this; <phone:PhoneApplicationPage.Resources>

  • 0

In a Windows Phone 7 project I’m using XAML that looks like this;

<phone:PhoneApplicationPage.Resources>
    <ValueConverters:FuelTypeEnumToRadioButtonConverter x:Name="fuelConverter" />
</phone:PhoneApplicationPage.Resources>

and further down on my Page I’m using it like this:

<RadioButton IsChecked="{Binding PreferredFuel, Mode=TwoWay, ConverterParameter=Blyfri95, Converter={StaticResource fuelConverter}}"  Content="Blyfri 95" Height="72" HorizontalAlignment="Left" Margin="-1,276,0,0" Name="radioButton1" VerticalAlignment="Top" GroupName="FuelType" />
<RadioButton IsChecked="{Binding PreferredFuel, Mode=TwoWay, ConverterParameter=Blyfri98, Converter={StaticResource fuelConverter}}" Content="Blyfri 98" Height="72" HorizontalAlignment="Left" Margin="154,276,0,0" Name="radioButton2" VerticalAlignment="Top" GroupName="FuelType" />
<RadioButton IsChecked="{Binding PreferredFuel, Mode=TwoWay, ConverterParameter=Diesel, Converter={StaticResource fuelConverter}}" Content="Diesel" Height="72" HorizontalAlignment="Left" Margin="308,276,0,0" Name="radioButton3" VerticalAlignment="Top" GroupName="FuelType" />

This all works fine and dandy in the actual application, but the XAML editor in Visual Studio complains that “Cannot register duplicate Name ‘fuelConverter’ in this scope“. I have to comment out the initial Resource-line to get the XAML designer working in Visual Studio 2010 (but then the application doesn’t work when I run it).

Anyone else seen this? Is this just a bug with the XAML designer?

  • 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-05-19T01:07:16+00:00Added an answer on May 19, 2026 at 1:07 am

    shouldn’t that be:

    <ValueConverters:FuelTypeEnumToRadioButtonConverter x:Key="fuelConverter" />
    

    using x:Key instead of x:Name ?

    Not sure why you get that error, though.

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

Sidebar

Related Questions

I had a unit test project for my windows phone 7 app ViewModels using
I'm using Microsoft Windows Phone 7 Tools Beta. I have a custom control that
I created a Windows Phone 8 project from Microsofts XAML - Direct3d template in
I have a Windows Phone 8 C#/XAML project with DirectX component. I'm trying to
We have an existing Windows Phone 7 project using C# and XNA. To our
I have a WP7 (Windows Phone 7) project that I am working on which
I have an Image object created in XAML in my Windows Phone 8 project.
This is a Windows Phone 7 project. For some strange reason, Visual Studio 2010
I have a MonoTouch project using some code I share with a Windows Phone
I've added a XAML file to a Windows Phone 8 project. Its build action

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.