in

C1 Community

ComponentOne Community is a free source for developers and help authors to collaborate and communicate.

Properties and Combo Box

Last post 01-28-2008 12:09 PM by C1_BernardoC. 3 replies.
Page 1 of 1 (4 items)
Sort Posts: Previous Next
  • 01-22-2008 2:17 PM

    Properties and Combo Box

     I am experiencing 2 issues.

     1. When I try to use a public property on a control buy adding it to the XAML, I get the Silverlight bad property error.

     2. When I try to use a Combo Box control I am unable to set anything programmatically and all that renders on the page is half of the drop down arrow image. I cant set the height or width or add any items to the list.

     

    Im using VS 2008 Professional and all of the latest Silverlight downloads. I just downloaded the Component One control set 2 days ago.
     

  • 01-23-2008 3:59 PM In reply to

    Re: Properties and Combo Box

    >>>
    1. When I try to use a public property on a control buy adding it to the XAML, I get the Silverlight bad property error.
    >>>

    The current version of silverlight (or Blend, I'm not sure) can only parse properties of basic types (strings, ints, and a few Silverlight native types). It does not support custom TypeConverters.

    >>>
     2. When I try to use a Combo Box control I am unable to set anything programmatically and all that renders on the page is half of the drop down arrow image. I cant set the height or width or add any items to the list.
    >>>

    Are you adding items to the combo.Items collection? If you add them to the combo.Children collection, it won't work...

     

  • 01-23-2008 4:07 PM In reply to

    Re: Properties and Combo Box

     >>>

    The current version of silverlight (or Blend, I'm not sure) can only parse properties of basic types (strings, ints, and a few Silverlight native types). It does not support custom TypeConverters.

    >>>

    Im getting this when I add any ComboBox property in XAML.


     >>>

    Are you adding items to the combo.Items collection? If you add them to the combo.Children collection, it won't work...

    >>>

    I tried doing this by adding to the Items collection. It doesnt do anything. I dont receive an error, I simply have half of a dropdown arrow and when I click that, I only have a small grey dot where I am guessing the dropdown list is to be rendered.

     

    Would it be possible to post an example of adding a ComboBox in XAML? I cant seem to even access the ComboBox via the code behind. I try to set properties and such, based on the examples in your Samples ControlExplorer project but am not having any results trying to access the ComboBox itself.

     

    I am using these controls inside of another User Control, could that be the issue? 

     

    Thanks for the reply. 

  • 01-28-2008 12:09 PM In reply to

    Re: Properties and Combo Box

    Perhaps, it's hard to tell without seeing the project. Can you make a simple app that shows the problem, zip it, and e-mail that to me?

    My e-mail is bernardoc AT componentone DOT com.

    Thanks

Page 1 of 1 (4 items)
Contact ComponentOne: 1.800.858.2739 ©1987-2008 ComponentOne LLC All Rights Reserved.