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

  • Home
  • SEARCH
  • 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 7784175
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 1, 20262026-06-01T20:03:11+00:00 2026-06-01T20:03:11+00:00

I have the following problem. I want to delimit a string be a certain

  • 0

I have the following problem.
I want to delimit a string be a certain symbol. This could be a comma, a space, a tab or something else.
I store that delimiter symbol in my dependency property Delimiter.

In my WPF code I have the following radio button which should be checked if Delimiter belongs to that radio button.
This is the WPF code:

<RadioButton IsChecked="{Binding ElementName=view, Path=Delimiter, Converter={StaticResource MyConverterToCheckForEquality}, ConverterParameter=\t}" Tag="\t" />

If I check out the parameter in my converter the value is ‘t’.
I wanted ‘\t’ so I tried the following options:

  • \t
  • \\t
  • \\\t
  • ‘\t’
  • ‘\\t’
  • ‘\\\t’
  • & #92;t
  • ‘& #92;t’
  • {}{\t}
  • ‘{}{\t}’

(Note: I added extra spaces and backslashes to display it here correctly).
The result is very saddening… Triple and Double backslash gives me double backslash, Single gives me none. & #92; also gives me zero backslashes.

Maybe the most frustrating thing is that when I use the Tag property to set the delimiter \t just works fine and is not extra escaped in the process…

Can somebody explain why this happens, why none of these options worked and how to fix it?

UPDATE
When I use a multibinding within a multidatatrigger the result is diffrent:

<Binding ElementName="view" Path="Delimiter" Converter="{StaticResource MyConverterToCheckForEquality}" ConverterParameter="\\\t" />

The parameter value in my converter is now ‘\\\\\\t’, however I still can’t make it work.

I can replace the value but that would mean I have to use a different variable in my code behind file, which would be pretty ugly. I guess there is no other solution though.

  • 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-01T20:03:12+00:00Added an answer on June 1, 2026 at 8:03 pm

    Try this:

    ConverterParameter='&#09;'
    

    &#09; represents \t (#9 is the ASCII equivalent of horizontal tab)

    I tested it by passing it into my converter as the converter parameter, and it shows up correctly. Here’s my test code:

    XAML:

    <Window.Resources>
        <local:MyConverter x:Key="MyConverter" />
    </Window.Resources>
    <Grid Tag="NotUsed_Ignore">
        <TextBox Text="{Binding Converter={StaticResource MyConverter}, ConverterParameter='&#09;', RelativeSource={RelativeSource Mode=Self}}, Path=Parent.Tag" />
    </Grid>
    

    C# codebehind:

    public sealed class MyConverter : IValueConverter
    {
        public object Convert(object value, Type targetType,
                              object parameter, CultureInfo culture)
        {
            if (parameter.Equals("\t")) return "Success!";
            return "Failure!";
        }
    
        public object ConvertBack(object value, Type targetType,
                                  object parameter, CultureInfo culture)
        {
            throw new NotImplementedException();
        }
    }
    

    When I run this, the window shows a TextBox with the text “Success!”

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

Sidebar

Related Questions

I have the following code I want to run, but the problem is $this->type
I have the following problem. I have this pretty class and now I want
I have the following problem: Within a stylesheet document I want to create an
I have the following problem. I want to check that the item clicked on
Hi I have the following problem, I want to laod a website with php.
What kind of strategy do I have for the following problem. I want to
I have the following code: The actual problem is the non-quoted code. I want
I have following problem, Code: String a=Yeahh, I have no a idea what's happening
I have following problem: I want to check (C#) if a thread has finished
I have the following problem: I want to check if a website (in a

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.