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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 6, 20262026-06-06T03:42:08+00:00 2026-06-06T03:42:08+00:00

i placed one button in a page .when click on that need to show

  • 0

i placed one button in a page .when click on that need to show 1 to 30 numbers in combobox as a popup in that page only.please tell me how to acheive this?

Edit:

see the image

  • 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-06T03:42:10+00:00Added an answer on June 6, 2026 at 3:42 am

    I have edited the answer with design,add an image as a local content in the project

      <Grid x:Name="ContentPanel" Grid.Row="1" Margin="12,0,12,0">
            <Button Content="Button" Height="82" HorizontalAlignment="Left" Margin="44,59,0,0" Name="button1" VerticalAlignment="Top" Width="376" Click="button1_Click" />
            <ListBox ItemsSource="{Binding item}" Width="376" Name="lst" Margin="56,128,48,76" Background="White">
                <ListBox.ItemTemplate>
                    <DataTemplate>
                        <Border BorderThickness="1" DataContext="{Binding}"  BorderBrush="Black">
                            <StackPanel Width="376" Orientation="Vertical" Height="Auto">
                                <Image Margin="200,20,-75,5"  Height="50" Width="50" Source="{Binding img}"></Image>
                                <TextBlock Margin="-200,-15,90,3"  Height="50" Width="50" Name="text" Text="{Binding text}" Foreground="Black"></TextBlock>
                            </StackPanel>
                        </Border>
                    </DataTemplate>
                </ListBox.ItemTemplate>
            </ListBox>
        </Grid>
    </Grid>
    
     lst.visibility = visibility.collapsed;
    
    private void button1_Click(object sender, RoutedEventArgs e)
        {
    
            lst.visibility = visibility.visible;
            List<Itemss> data = new List<Itemss>();
            for (int i = 0; i < 30; i++)
            {
            Itemss item = new Itemss();
    
    
                item.text = i.ToString();
    
    
    
                item.img = "/images.jpg";
    
                data.Add(item);
    
            }
    
            lst.ItemsSource = data;
           }
    
    
    
        public class Itemss
        {
            public string text { get; set; }
            public string img { get; set; }
        }
    
    
    }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am trying to navigate from one page to another on a button click
hi i am doing one app here when i click button that time i
When mvc3 was created I placed one of these on my _layout.cshtml page... @Html.RenderCss()
I need to ignore bin folders except the one placed in the root. Here
In my code I have one textbox and one button. Whatever place you type
I have a set of elements placed one after another. If user clicks an
i have read in more then one place that using NHibernate's Identifier as Primary
I've heard in a few places that one of the main reasons why distributed
I'm working on a page that will allow a user to upload a photo
I have a <span> button, which calls some jQuery, I need a way to

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.