ComboBox's Text doesn't display properly when IsEditable=True and items are type of object.

Nov 18, 2010 at 6:13 PM

Hi, ComboBox works much better in V2, Thanks!

I found one problem however:

ComboBox's Text doesn't display properly when IsEditable=True, and items are type of objects, not simple strings.

Copy the following xaml to the gallery sample, select any item, the text displayed is Fluent.Sample.Galleries.SampleDataItem. This used to work before V2 when setting the displayMemberPath=Text. Any ideas?  

 

 

<Fluent:ComboBox IsEditable="True" InputWidth="150" Header="Test" ItemsSource="{Binding DataItems}" IsTextSearchEnabled ="True"ItemTemplate="{DynamicResource middleDataItemTemplate}" SelectedIndex ="2">

Coordinator
Nov 19, 2010 at 5:27 AM
This discussion has been copied to a work item. Click here to go to the work item and continue the discussion.
Nov 19, 2010 at 6:33 AM

I found another bug in comboBox: scrollbar can't be turned off:

ScrollViewer.VerticalScrollBarVisibility="Hidden" doesn't work on comboBox.

From: daVinci [mailto:notifications@codeplex.com]
Sent: Thursday, November 18, 2010 9:27 PM
To: Xiaoling Yang
Subject: Re: ComboBox's Text doesn't display properly when IsEditable=True and items are type of object. [fluent:235202]

From: daVinci

This discussion has been copied to a work item. Click here to go to the work item and continue the discussion.

Read the full discussion online.

To add a post to this discussion, reply to this email (fluent@discussions.codeplex.com@discussions.codeplex.com)

To start a new discussion for this project, email fluent@discussions.codeplex.com@discussions.codeplex.com

You are receiving this email because you subscribed to this discussion on CodePlex. You can unsubscribe on CodePlex.com.

Please note: Images and attachments will be removed from emails. Any posts to this discussion will also be available online at CodePlex.com

Nov 19, 2010 at 6:06 PM

ComboBox's DropDownHeight is missing.

There is no way that the comboBox initially shows N items in the dropdown, and can be resized as well.

I tried to set MaxDropDownHeight, but then the comboBox can't be resized to show more than N items.

From: daVinci [mailto:notifications@codeplex.com]
Sent: Thursday, November 18, 2010 9:27 PM
To: Xiaoling Yang
Subject: Re: ComboBox's Text doesn't display properly when IsEditable=True and items are type of object. [fluent:235202]

From: daVinci

This discussion has been copied to a work item. Click here to go to the work item and continue the discussion.

Read the full discussion online.

To add a post to this discussion, reply to this email (fluent@discussions.codeplex.com@discussions.codeplex.com)

To start a new discussion for this project, email fluent@discussions.codeplex.com@discussions.codeplex.com

You are receiving this email because you subscribed to this discussion on CodePlex. You can unsubscribe on CodePlex.com.

Please note: Images and attachments will be removed from emails. Any posts to this discussion will also be available online at CodePlex.com

Coordinator
Nov 22, 2010 at 10:44 AM
This discussion has been copied to a work item. Click here to go to the work item and continue the discussion.
Nov 22, 2010 at 7:36 PM

Hi, Thanks for fixing the comboBox’s scrollbar problem I submitted. It works ok now.

I also noticed that you closed that work item “ComboBox's Text doesn't display properly when IsEditable=True and items are type of object. ” which is still the case.

If I use DisplayMemberPath, it works, but if I use ItemTemplate, then I am not allowed to use DisplayMemeberpath and the text displayed is Fluent.Sample.Galleries.SampleDataItem.

To repro, copy the attached xaml to the gallery sample: \WPF\Fluent Ribbon Control Suite 2.0\.NET 4.0\Samples\Galleries\, when comboBox is editable and using ItemTemplate, you would get Fluent.Sample.Galleries.SampleDataItem in the textbox.

<Fluent:ComboBoxIsEditable="True" InputWidth="150" Header="Test" ItemsSource="{Binding DataItems}" IsTextSearchEnabled ="True" ItemTemplate="{DynamicResource middleDataItemTemplate}" SelectedIndex
="2">

Thanks!

-Xiaoling

From: daVinci [mailto:notifications@codeplex.com]
Sent: Thursday, November 18, 2010 9:27 PM
To: Xiaoling Yang
Subject: Re: ComboBox's Text doesn't display properly when IsEditable=True and items are type of object. [fluent:235202]

From: daVinci

This discussion has been copied to a work item. Click here to go to the work item and continue the discussion.

Read the full discussion online.

To add a post to this discussion, reply to this email (fluent@discussions.codeplex.com@discussions.codeplex.com)

To start a new discussion for this project, email fluent@discussions.codeplex.com@discussions.codeplex.com

You are receiving this email because you subscribed to this discussion on CodePlex. You can unsubscribe on CodePlex.com.

Please note: Images and attachments will be removed from emails. Any posts to this discussion will also be available online at CodePlex.com

Coordinator
Nov 23, 2010 at 5:49 AM

Yes, it was closed coz it is by design. Note both features ItemTemplate & DisplayMemberPath do the same thing and cannot be applied simultaneously. Use the following regualr combination ItemTemplate="{DynamicResource middleDataItemTemplate}" TextSearch.TextPath="Text"

Daniel

Nov 23, 2010 at 6:01 AM

Great. Thanks!

-Xiaoling

From: daVinci [mailto:notifications@codeplex.com]
Sent: Monday, November 22, 2010 9:49 PM
To: Xiaoling Yang
Subject: Re: ComboBox's Text doesn't display properly when IsEditable=True and items are type of object. [fluent:235202]

From: daVinci

Yes, it was closed coz it is by design. Note both features ItemTemplate & DisplayMemberPath do the same thing and cannot be applied simultaneously. Use the following regualr combination ItemTemplate="{DynamicResource middleDataItemTemplate}" TextSearch.TextPath="Text"

Daniel

Read the full discussion online.

To add a post to this discussion, reply to this email (fluent@discussions.codeplex.com@discussions.codeplex.com)

To start a new discussion for this project, email fluent@discussions.codeplex.com@discussions.codeplex.com

You are receiving this email because you subscribed to this discussion on CodePlex. You can unsubscribe on CodePlex.com.

Please note: Images and attachments will be removed from emails. Any posts to this discussion will also be available online at CodePlex.com