listboxitem Questions
9
Solved
I have a listbox displaying items from an enum. I want to select/highlight the current value (read from a database) when the listbox displays/the form opens. This code, though:
lblSelectedPrinter....
Hookup asked 2/8, 2013 at 16:50
7
Solved
I have a list box with some items. Is there anyway I can attach a double click event to each item?
Item 1
Item 2
Item 3
If i was to double click Item 2, a Messagebox saying "Item 2" would pop up...
Esplanade asked 15/12, 2010 at 20:14
5
Solved
I have created the fallowing ListBox:
<ListBox x:Name="RecentItemsListBox" Grid.Row="1" BorderThickness="0" Margin="2,0,0,0" SelectionChanged="RecentItemsListBox_SelectionChanged">
<List...
Convent asked 18/10, 2010 at 10:15
3
Solved
After selecting ListBox item programmatically it is needed to press down\up key two times to move the selection. Any suggestions?
View:
<ListBox Name="lbActions" Canvas.Left="10" Canvas.Top="1...
Gone asked 8/2, 2010 at 18:29
5
Solved
I have a ListBox in my wpf window that binds to an ObervableCollection. I want to open the browser if someone clicks on an element of the ListBox (just like a link). Can someone tell me how to do t...
Tomtit asked 4/5, 2009 at 19:25
5
Solved
I need a listbox that selects on first click and un-selects on second click, so that only zero or one item is selected at any time.
The select/unselect is implemented in the listbox (with Selectio...
Hardiman asked 28/2, 2011 at 9:7
2
I've got a problem with setting the HighlightBrushKey of a SelectedItem of a Listbox in WPF. My intention was to set the color of an Item depending on a given Boolean value, lying in code.
I've tr...
Haveman asked 22/6, 2012 at 8:50
6
Solved
I want to get notified when an item in a ListBox gets clicked by the mouse, whether it is already selected or not.
I searched and found this: (http://kevin-berridge.blogspot.com/2008/06/wpf-listbo...
Megagamete asked 13/8, 2009 at 11:22
0
I have created a custom ListBox with each item separated by separator. But I am seeing weird issue. The thickness of separator is not constant across List items. It changes if I change the position...
Goodden asked 4/8, 2017 at 12:8
6
Solved
I want to have the ListItems to extend with their orange background the full width of the Listbox.
Currently they are only as wide as the FirstName + LastName.
I've set every element I can to: Ho...
Alodee asked 8/5, 2009 at 8:37
1
Solved
In my WPF program I have a ListBox control:
<ListBox x:Name="mailsListBox" SelectionChanged="mailsListBox_SelectionChanged" >
<ListBoxItem Content="..." Background="#FFF3F3F3" Margin="0,...
Larrikin asked 5/11, 2015 at 19:22
2
Solved
I've looked around for an answer on this, but the potential duplicates are more concerned with presentation than interaction.
I have a basic list box, and each item's content is a simple string.
...
Obola asked 8/1, 2011 at 13:59
4
Solved
Ehm, umm, this means some lines should be two-lined in size. My boss think this is more simple solution, than limit displayed text to fit width and don't like horizontal scroll bar >_<
Billye asked 12/7, 2013 at 11:10
3
Solved
I have added a DataTemplate to a ListBox class to bind my collection to:
<ListBox x:Name="lstEmails" Height="259" Margin="12,0,12,41" Width="276"
SelectionChanged="lstEmails_SelectionChanged"&...
Ain asked 3/2, 2010 at 12:49
1
Solved
I have changed the following SystemColors already:
<!-- Background of selected item when focussed -->
<SolidColorBrush x:Key="{x:Static SystemColors.HighlightBrushKey}"
Color="Transparen...
Youthful asked 1/11, 2013 at 11:54
5
Solved
I have a typical MVVM scenario:
I have a ListBox that is binded to a List of StepsViewModels.
I define a DataTemplate so that StepViewModels are rendered as StepViews.
The StepView UserControl hav...
Decagon asked 2/6, 2010 at 17:41
2
Solved
I am using WPF .net 4.5 (c#) and I would like to make a ListBox that contains a series of user controls. (If a listbox is the wrong type of control, please let me know).
I want my listbox to have ...
Ephemerid asked 31/8, 2013 at 20:52
1
Solved
I need to incorporate a separator between items in my ListBoxItems for example
where some items in my items source would be placed beneath the separator and some above it .
For example :
The...
Singleaction asked 21/8, 2013 at 7:42
1
Solved
I want to add tooltip in listboxItem but it starts problem when there is DisplayMemberPath. Error message said:
cannot set both DisplayMemberPath and ItemTemplate.
When I removed DisplayMemberPat...
Piccolo asked 16/8, 2013 at 12:32
1
Solved
I want to style some of my listboxes' items to be radiobuttons. Here is the code I have but this style gets applied to every listboxitem.
<Window.Resources>
<Style TargetType="{x:Type Li...
Womanizer asked 28/6, 2013 at 15:51
1
Solved
I have a problem with my ListBoxItem's on a Windows Phone 8 app, while trying to get them to stretch across all the width of the ListBox.
My ListBox:
<ListBox
ItemsSource="{Binding Events}" ...
Jemina asked 17/5, 2013 at 19:9
2
Solved
I have a Listbox with some Listboxitem and I would like to change the style of all items. I know, it's possible to create a style in resources and bind this style to each item but maybe is there a ...
Conscientious asked 16/4, 2013 at 13:50
2
Solved
In WPF, I can add whatever UI into ListBoxItems by providing the ListBox with an ItemTemplate:
<ListBox ItemsSource="{Binding}">
<ListBox.ItemTemplate>
<DataTemplate>
<Bor...
Tumbler asked 20/3, 2013 at 19:12
1
Solved
How can i know if a ListBoxItem is the last item of the collection (in the ItemContainerStyle or in the ItemContainer's template) inside a Wpf's ListBox?
That question is because I need to know if...
Voight asked 28/11, 2012 at 19:38
3
Solved
I know that:
String test = "test";
ListBox.Items.Add(test);
or
String test = "test";
int index = 1;
ListBox.Items.Insert(index, String);
adds the String in a ListBox, but I want to insert Lis...
Gq asked 7/11, 2012 at 10:22
1 Next >
© 2022 - 2024 — McMap. All rights reserved.