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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 28, 20262026-05-28T13:05:58+00:00 2026-05-28T13:05:58+00:00

I have this XAML <MultiBinding StringFormat= {0}{1}/{2}> <Binding Path=Text ElementName=tbxAuthHost /> <Binding Path=Text ElementName=tbxAuthWebsiteName

  • 0

I have this XAML

<MultiBinding  StringFormat=" {0}{1}/{2}">
   <Binding Path="Text" ElementName="tbxAuthHost" />
   <Binding Path="Text" ElementName="tbxAuthWebsiteName" />
   <Binding Path="Text" ElementName="tbxAuthServicesAddress" />
</MultiBinding>

When I try change ” {0}{1}/{2}” into “{0}{1}/{2}” so no leading space there and then Visual Studio gives this error:

Error 3 The text ‘{1}/{2}’ is not allowed after the closing ‘}’ of a MarkupExtension expression. Line 116 Position 56.

How I can fix this issue?

enter image description here

  • 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-28T13:05:58+00:00Added an answer on May 28, 2026 at 1:05 pm

    You can fix this by putting {} at the front of the string format.

    StringFormat="{}{0}{1}/{2}"
    

    The MSDN Page does a particularly bad job of explaining the format.

    If you look at the page on the escape sequence it explains that an opening curly bracket at the beginning denotes a markup extension (e.g. Binding), and {0}{1}/{2} is not a valid markup extension. It doesn’t explain that not having it as the first character also works.

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

Sidebar

Related Questions

I have this xaml textbox <TextBox Text={Binding ProdFilter.Min, Mode=OneWayToSource, UpdateSourceTrigger=PropertyChanged, TargetNullValue=''} Width=50 DockPanel.Dock=Right TabIndex=3
Scenario: Currently I have this XAML code: <Button Content=_Cancel IsCancel=True Command={Binding Path=CancelCommand} Margin=5> <Button.ContentTemplate>
I have this block of xaml that allows the text of a hyperlink to
Suppose I have some XAML like this: <Window.Resources> <v:MyClass x:Key=whatever Text=foo\nbar /> </Window.Resources> Obviously
I have this very simple XAML window: <Grid> <Grid.RowDefinitions> <RowDefinition/> <RowDefinition/> </Grid.RowDefinitions> <ContentControl Content={Binding
So I have this XAML in the .xaml file <StackPanel> <Button Width=200 Height=30 Content=Change
I have this DataGrid I want to change the Disabled behaviour (xaml); I want
I have this XAML: <ContentControl Micro:View.Model={Binding ChildViewModel}> <Popup x:Name=TestPopup Placement=Mouse AllowsTransparency=True> <Border x:Name=border Background=White
I have this XAML: <ListBox x:Name=MyItemsList ItemsSource={Binding MyItems} SelectionChanged=ItemsList_SelectionChanged> The code behind assigns the
I have this construct in my xaml. <Type1 visibility={binding bool1, converter=BoolToVisibilityConverter}/> <Type1 visibility={binding bool2,

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.