How to set ComboBox.SelectionBoxItemTemplate in Silverlight 3.0 - silverlight

I need to be able to have a SelectionBoxItemTemplate for my ComboBox, but am unsure how to do this or if there is another way in Silverlight 3.0 to do this.
In my drop-down list I have a List of CheckBoxes, and TextBlocks, this works fine,
however the Selected Item is one of these when I click on it, i.e. the Checkbox shows in the top of the Combobox, I don't want this, instead I want it to say "Display", as this is a list of display settings, how can the ComboBox be changed to allow this in Silverlight?

This is not actually possible in Silverlight 3, although the Property can be read, it cannot be sent, marking this as answer, but hope Silverlight 4.0 will support this.

Related

XamDataGrid XamTabControl WPF MVVM Peculiar Behavior

I'm facing a problem in implementing the following scenario:
When the user selects a record in a XamDataGrid, the control flows into another tab showing the details of the selected record.
The way I have done this is:
At the selection change of the XamDataGrid, I'm sending index of the tab to be activated using MVVM Light Messenger.
Setting the property bound to the Seledted Index of the Tab Control to that number.
Everything works smooth till here. Afetr that if I go back to the tab containing the grid, somehow the control comes back to tab which was activated.
As if, some intrinsic selection of cells in happening in the grid. Does Hover also affects the selection of the xamdatagrid?
I'm new to Infragistics and kind of confused. If some one can help.
All code are in View Model files and no code in the code behind of xaml file.
Cheers,
Anshuman
I played around a lot.
But the only way to get this wqorking was to disable all hover animations and effects.
Now it works as expected!

Silverlight ListPicker - Default Selection

I am building a WP7 application using Silverlight. This application includes a Page that makes use of the ListPicker. This ListPicker has data that is bound to it via my Page's view-model. The ListPicker displays the options correctly. However, the display looks odd.
When the options initially load, the first option appears selected. This selected item looks to be several pixels off from the top and the left. If I open-and-close the ListPicker, it looks as intended.
Has anyone else experienced this? Does any have any ideas how to overcome this? I attempted setting a binding on the SelectedIndex and SelectedValue properties, but this did not work.
Thank you!
I believe the SL ListPicker works under the assumption that there is always an active selection as long as it is bound to a non-empty dataset. Not sure if you can override this behavior; but seems like your problem is that the selected item looks awkward. Anyway you can adjust the template? Also, please see this post to make sure you are not caught off-guard with the SelectionChanged event.
Hope this helps!

Silverlight Editable Combo Box

I want to use comobox which is editable in my silverlight project, but silverlight doesnt provide a such control.
If any one knows how to create a custom editable combobox in silvelight 4.0 then please help me.
Editable combobox means:
A combo box providing list of
options.
User can enter the value.
Filtering.
Sounds like you are looking for the AutoCompleteBox.
Allows user to type value
Can simply dropdown like a combox
Partial value typed can be used to filter choices using either StartsWith or Contains mode.
Supports a create new entry operation if the final typed value does not match any existing entry
This control is part of the standard SDK and is found in the System.Windows.Controls.Input.dll. You should be able to drag it from the toolbox.
You can also have a look Lookup Combo Box

Need a listbox of drop-down commands

In WinForms, I have to quickly set up a list of items that have some text and a dropdown of commands/buttons. This would be easy in XAML (I'm getting spoiled), but I'm not familiar with Winforms.
Do any of the std Winform controls provide this?
Can anyone suggest a 3rd party control??
The image shows a drop-down being shown when hovered.
Thanks
Looks like a normal context menu, so you can probably do this with the ContextMenuStrip component. Call one of its Show() methods when you want to open it.

I want to create a combobox in wpf

I want to create a combobox with some style. I dont want old dropdown what we are getting. I want some new dropdown which looks very nice. Is there any way to create a dropdown like that.
Plz give me suggestions
Check this link out on msdn. This is the actual control template for the combo box. You can copy and paste this into your application (within your app's Resources).
Create a form and slap a combo box on it with some data in it. Then start changing the control template and view the results. Start off simply by changing colors and adding borders around elements to see what controls which part. Then you can start switching out larger parts of the template to match what you're looking for.
one can start with the standard combobox, and then use various controls and styles to change the look and feel of the control, and it's corresponding drop down.

Resources