Top "Selecteditem" questions

selecteditem is a property used to identify the currently selected item in a collection

ComboBox ItemsSource changed => SelectedItem is ruined

Ok, this has been bugging me for a while now. And I wonder how others handle the following case: <…

wpf collections combobox selecteditem
Binding ComboBox.SelectedItem in Silverlight

This one is driving me crazy. Here's the XAML: <UserControl x:Class="SilverlightApplication1.Page" xmlns="http://schemas.microsoft.com/…

silverlight data-binding combobox selecteditem
WPF TabControl Change selected tab

Hi I have two questions. How do I programatically change the selected tab in a WPF Tab control from one …

wpf tabcontrol selecteditem
How to change selected tab on Button click in WPF TabControl with Buttons in Header

I have a WPF TabControl that has a couple of buttons in the TabItem header. I want the selected tab …

wpf tabcontrol selecteditem
Get Selected TreeViewItem Using MVVM

So someone suggested using a WPF TreeView, and I thought: "Yeah, that seems like the right approach." Now, hours and …

wpf mvvm treeview selecteditem
Find control inside Listbox.ItemTemplate (WPF C#)

I have some problems finding the right TextBlock control inside a StackPanel. My markup: <ListBox Name="lstTimeline" ItemContainerStyle="{StaticResource …

c# wpf listbox mouseevent selecteditem
How to cast a System.Windows.Controls.SelectedItemCollection?

I have a method: private void DeletePuzzle(object param) { } param is a System.Windows.Controls.SelectedItemCollection, that I got from …

wpf selecteditem
IsSynchronizedWithCurrentItem attribute and current item updates

I have a view model to manage a dialog type of view that allows filtering of a listing (if necessary) …

wpf data-binding selecteditem itemssource
How to set an item as selected in a combobox

It seems nobody has yet found a way to set the comboboxitem as selected with a SelectedItem="Binding Property". Is …

wpf mvvm combobox set selecteditem
FindByValue on ASP.NET DropDownList

I have the following code in a custom user control that contains a DropDownList named ddlAggerationUnitId. The DropDownList is DataBind'd …

c# asp.net drop-down-menu selecteditem