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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 6, 20262026-06-06T00:57:10+00:00 2026-06-06T00:57:10+00:00

I had use listbox.itemsource as my e.Result. <ListBox Height=476 HorizontalAlignment=Left Margin=11,17,0,0 Name=ListBox1 VerticalAlignment=Top Width=434

  • 0

I had use listbox.itemsource as my e.Result.

<ListBox Height="476" HorizontalAlignment="Left" Margin="11,17,0,0" Name="ListBox1" VerticalAlignment="Top" Width="434" Foreground="#FFF5F5F1" >
                <ListBox.ItemTemplate>
                    <DataTemplate>
<StackPanel Orientation="Vertical">
                            <TextBlock Height="40" HorizontalAlignment="Left" Margin="8,24,10,0" Name="txtBlockCustName" Text="{Binding CustName, Mode=OneWay}" VerticalAlignment="Top" FontSize="26" />

                            <TextBlock Height="40" HorizontalAlignment="Left" Margin="8,24,0,0" Name="txtBlockCustEmail" Text="{Binding CustEmail, Mode=OneWay}" VerticalAlignment="Top" FontSize="26" />
  </StackPanel>
                    </DataTemplate>
                </ListBox.ItemTemplate>
            </ListBox>

how can i get the databinding value?

void proxy_FindProfileCompleted(object sender, FindProfileCompletedEventArgs e)
        {
            ListBox1.ItemsSource = e.Result;
            ObservableCollection<Customer> Customers = this.ListBox1.ItemsSource as ObservableCollection<Customer>;
        }

i want to get the customer name and customer email from the observable collection.

  • 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-06T00:57:12+00:00Added an answer on June 6, 2026 at 12:57 am

    I don’t understand if this is what you need, but give it a try:

    void proxy_FindProfileCompleted(object sender, FindProfileCompletedEventArgs e)
    {             
        ListBox1.ItemsSource = e.Result;
        ObservableCollection<Customer> Customers = 
            this.ListBox1.ItemsSource as ObservableCollection<Customer>;  
        foreach(Customer cust in Customers)
        {
            // You can get cust.CustName
            // and you can get cust.CustEmail
        }
    }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

i had use the spring3.1 ibatis2.x and mysql5.5. then i wanna use the replication
I had created one HTML page for my experiance. In this i had use
How to Remove Badge from the tabbar item i had use below code but
I have been frustrated that I have had to use the very buggy XCode
I came across a scenario where I had to use Union all, how can
Untill now in C# MVC3 i only had to use one controller which used
it’s been a while since the last time I had to use regex, I
Possible Duplicate: How to catch exceptions I have not really had to use try
I am a little rusty with QT but I've had to use it for
I use Visual studio 2008 I have 5 listbox's on form,I created a new

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.