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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T21:20:58+00:00 2026-05-27T21:20:58+00:00

I have UserControl, named thisUserControl , it has two controls as shown in the

  • 0

I have UserControl, named thisUserControl, it has two controls as shown in the following XAML code:

<UserControl
    ...
    x:Name="thisUserControl">
    <StackPanel x:Name="LayoutRoot">
        <Button x:Name="btnChangeString" Content="Change String" Click="btnChangeString_Click" />
        <TextBlock Text="{Binding Path=StringProperty, ElementName=thisUserControl}" />
    </StackPanel>
</UserControl>

BTW, I don’t know why I have to set a name for UserControl so that I could use it for Binding in ElementName=thisUserControl. (I thought it should be this by default if ElementName is not provided)

I also defined the customer property for this UserControl, with some other code:

private string sp = "A String Here";
[Bindable(true)]
public string StringProperty
{
    get { return sp; }
    set { sp = value; }
}

private void btnChangeString_Click(object sender, RoutedEventArgs e)
{
    StringProperty = "Something Else";
}

When I compile and run it, click the “Change String” button, nothing happens.

It seems the Bindable(true) not working at all. What does this Bindable(true) mean?

Is there an easy way to make a Custom Property bindable? Let this UserControl inherit INotifyPropertyChanged? or use DependencyProperty?

  • 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-27T21:20:58+00:00Added an answer on May 27, 2026 at 9:20 pm

    Bindable(true) is a way for you to tell a GUI designer that a property supports two-way binding. However, to actually implement two-way binding, you have to implement INotifyPropertyChanged for that property.

    Also, if ElementName is not provided in a binding, the default is to bind to DataContext.

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

Sidebar

Related Questions

I have a UserControl that exists of only two TextBlocks: <UserControl [...] x:Name=root> <StackPanel
i have a parent usercontrol, here is an excerpt of xaml <Grid x:Name=LayoutRoot Width=Auto
I have a usercontrol named groupControl: It has two flowlayoutpanel - source panel and
I have user control named DateTimeUC which has two textboxes on its markup: <asp:TextBox
I have a UserControl with some predefined controls (groupbox,button,datagridview) on it, these controls are
I have this XAML: <UserControl x:Class=M_Cubed.Controls.TagEditor xmlns=http://schemas.microsoft.com/winfx/2006/xaml/presentation xmlns:x=http://schemas.microsoft.com/winfx/2006/xaml xmlns:classes=clr-namespace:M_Cubed.Classes> <UserControl.Resources> <DataTemplate DataType={x:Type classes:TagEditorPic}> <ComboBox
I have an user control named GraphPanel. It has two dependency properties, one custom,
I have a control which has a button named btn1, and I want to
I have the following code in a MVC User Control (the field names have
I have UserControl which contains a TextBox and a Button control. The Button opens

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.