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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 25, 20262026-05-25T21:47:32+00:00 2026-05-25T21:47:32+00:00

I want to increase Progress-bar value based on two textbox’s Text. I wrote this

  • 0

I want to increase Progress-bar value based on two textbox’s Text. I wrote this XAML but there is an error “Two-way binding requires path or xpath” when I do MultiBinding in ProgressBar.Value

<Window.Resources>
    <local:Class1 x:Key="ConverterM"/>
</Window.Resources>

<TextBox Height="23" HorizontalAlignment="Left" Margin="157,59,0,0"
         Name="textBox1"  VerticalAlignment="Top" Width="120" />
<TextBox Height="23" HorizontalAlignment="Left" Margin="157,108,0,0"
         Name="textBox2" VerticalAlignment="Top" Width="120" />
<ProgressBar Height="24" HorizontalAlignment="Left" Margin="120,160,0,0"
             Name="progressBar1" VerticalAlignment="Top" Width="243" >
    <ProgressBar.Value>
        <MultiBinding Converter="{StaticResource ConverterM}">
            <Binding />
            <Binding ElementName="textBox1" Path="Text" />
            <Binding ElementName="textBox2" Path="Text" />
        </MultiBinding>
    </ProgressBar.Value>
</ProgressBar>

Value Converter:

public class Class1 : IMultiValueConverter
{
    public object Convert(object[] values,
                          Type targetType,
                          object parameter,
                          System.Globalization.CultureInfo culture)
    {
        if (values[1] != null && values[2]!=null)
        {
            if (((string)values[1]).Length==((string)values[2]).Length)
            {
                return 5.0;
            }
        }
        else
        {
            return 0.0;
        }
    }

    public object[] ConvertBack(object value,
                                Type[] targetTypes,
                                object parameter,
                                System.Globalization.CultureInfo culture)
    {
        throw new NotImplementedException();
    }
}
  • 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-25T21:47:33+00:00Added an answer on May 25, 2026 at 9:47 pm

    I think that <Binding /> is not necessary. try to delete it and change indexes in converter.

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

Sidebar

Related Questions

I want to know how to increase the value in a FOR-loop statement. This
I want to increase FD_SETSIZE macro value for my system. Is there any way
I have a field in mysql table that I want increase this field value
I have a tab-based iPhone app where I want to increase the perceived start-up
I want to increase my ip address and; Here is the code ipAddressControl1.Text =
I am creating UIProgressView from nib . I want to increase its height but
I've got a progressbar in my form that I want to increase the value
I have written this code where I want to increase / decrease number of
I want to increase the version number on a model whenever there is a
I just want to increase my core javascript knowledge. Sometimes I see this statement

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.