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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 2, 20262026-06-02T17:27:12+00:00 2026-06-02T17:27:12+00:00

here , i am confuse on {binding} and {binding Account}.when to use only simple

  • 0

here , i am confuse on {binding} and {binding Account}.when to use only simple {binding} and binding with proprty name in below code binding occur as :Content=”{Binding}”

 <Border Grid.Row="1" Grid.Column="0"
         Style="{StaticResource MainBorderStyle}" 
         Background="{StaticResource ResourceListGradientBrush}"
         BorderThickness="0,0,1,1"
         Padding="0">
     <StackPanel>
         <HeaderedContentControl 
             Content="{Binding}"
             ContentTemplate="{StaticResource CommandsTemplate}"/>
     </StackPanel>
 </Border>

where is below code binding occur
as

Text="{Binding Path=Name, ValidatesOnDataErrors=True, UpdateSourceTrigger=PropertyChanged}"/>

so i want to know use of them and difference of them.thank in advance.

  • 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-02T17:27:14+00:00Added an answer on June 2, 2026 at 5:27 pm

    {Binding} will simply bind to the actual object set in the DataContext. {Binding Account} will bind to the Property Account on that object.

    In your case if you had a ViewModel set against the root level DataContext then Account would be a property called Account on the ViewModel

    Where you have

    <HeaderedContentControl
                Content="{Binding}"
                ContentTemplate="{StaticResource CommandsTemplate}"/>
    

    All this is doing is setting the Content of the HeaderedContentControl to the ViewModel provided you have something like this in the code behind of the Window or UserControl

     DataContext = yourViewModel;
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Here's a really simple class: static public class Bean1 { final private String name;
Here is a part of my DataForm <Grid x:Name=LayoutRoot Background=White> <df:DataForm x:Name=df1 HorizontalAlignment=Stretch VerticalAlignment=Stretch
Here's my code, I confuse the local variable 'count' in the return function(c1,c2) with
I got error on `onPreExecute()' See my code : I have confuse here( download
Very confused here, trying out the yuicompressor on a simple javascript file. My js
I'm being completely confused here folks, My code throws an exception because File.Exists() returns
the question title might be a bit confuse. but here is my case. i
Okay, here's the situation. I've had a bluehost account for several years and am
I have another question about binding using C# and the entity framework. Here, I'm
I've managed to confuse myself here. Basically I am using jQuery to turn 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.