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

  • Home
  • SEARCH
  • 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 3402834
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 18, 20262026-05-18T05:11:11+00:00 2026-05-18T05:11:11+00:00

I am trying to write my own UserControl – an editable ComboBox, so the

  • 0

I am trying to write my own UserControl – an “editable” ComboBox, so the the user can write the name of the item he wants (not relevant to my question, though). I decided to implement it with a User Control (and not a custom control), so I created the following xaml:

<UserControl x:Class="EnhancedCombBox.Silverlight.EnhancedComboBox"> 
    <Canvas Height="25" Width="160">
        <ComboBox x:Name="combo" Width="160" Height="25" SelectionChanged="combo_SelectionChanged" ItemsSource="{Binding}"></ComboBox>
        <TextBox x:Name="txtBox" Height="25" Width="140" TextChanged="txtBox_TextChanged" KeyUp="txtBox_KeyUp" KeyDown="txtBox_KeyDown" GotFocus="txtBox_GotFocus"></TextBox>
    </Canvas>

(I removed the namespaces to make the xaml shorter).
I used my new control on my main page as follow:

<UserControl x:Class="ComboBox.Silverlight.MainPage"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
xmlns:sdk="clr-namespace:EnhancedCombBox.Silverlight;assembly=EnhancedCombBox.Silverlight"
mc:Ignorable="d"
d:DesignHeight="300" d:DesignWidth="400">

<StackPanel>
    <Button>OK</Button>
    <sdk:EnhancedComboBox></sdk:EnhancedComboBox>
</StackPanel>

As you can see, I created a simple StackPanel Layout with a Button and my new control. On the designer everything looks normal – I see both the Button and my control underneath. But when I run it – only my control is being displayed.
Can someone please explain to me what am I missing?

  • 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-18T05:11:12+00:00Added an answer on May 18, 2026 at 5:11 am

    I’ve tried your code and work correctly in my system. Try to change browser. Which version of Silverlight are you using. I’ve tried in SilverLight 4.

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

Sidebar

Related Questions

I am trying to write my own JVM. Can you point me to some
I trying to write my own Event Aggregation class and i go some articles
I am trying to write my own LightWeight MVC for .Net 2.0 using NHaml
I am trying to write my own function for scaling up an input image
I'm trying to write my own toy My Toy Language -> MSIL compiler in
I was trying to write my own put-pixel on (Gdk) pixbuf in Lisp. When
I'm trying to write my own media player (like Foobar), and I'm having trouble
I am trying to write my own Javascript Framework something like jQuery. I use
I'm trying to write my own Mergesort function in the same fashion as C's
I'm trying to write an app that can turn my mobile data connection on

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.