Hi everybody.
I'm having a problem with wpf listbox. my problem is that when I add items to listbox using listbox items and set the display memeber path nothing is showing.
I want to use ListBoxItem or somthing similar to explicitly set tooltip for each item.
Thanks in Advance.
namespace WpfApplication1
{
/// <summary>
/// Int...
Hello,
I am trying to do two things with a ListBox in Silverlight. However, I cannot seem to figure them out.
I need to change the color of a selected item to yellow, instead of the default blue.
I set the selected items programmatically. Each item is a CheckBox. How do I allow the user to check or uncheck the CheckBox, but keep the i...
Hello,
when I d*ouble-click* - or click once when its already focused - below the items in a empty area of the Listbox which is within my DataGridTemplateColumn then I get the above error message.
WHAT do I wrong?
This is my Code:
<DataGridTemplateColumn Width="0.3*" Header="Attachments">
<DataGridTemplateColumn.CellTemplate>
...
I have a WPF listview, and in one column the cell may contain one or more ListBoxes.
When I right-click a ListBox I'm building a context menu where each item has a DelegateCommand. Currently I'm setting the command parameter to a SelectedListBox property on the page viewmodel itself as my delegate command needs to know which ListBox has...
Hi all,
My scenario is this: I have two listbox's, one that contains all my database items, and an empty one. The user adds the items needed from the full listbox to the empty listbox.
I'm using a form to submit all the items the user has added.
The problem is, only the selected items from the listbox are submitted. So if the user des...
Hi. I am trying to set the Canvas properties in an ItemsControl DataTemplate with Silverlight 3. According to this post, the only way of doing that is to set it using the ItemsContainerStyle for the ContentPresenter type, since the Canvas properties only take effect on direct children of the Canvas. This doesn't seem to work in SL3, s...
I have an ObservableCollection of addresses that I am binding to a ListBox. Then in the ItemTemplate I am Binding to the current address record using {Binding .}. This results in my addresses displaying using their ToString method which I have setup to format the address. All is good, except if I update properties on an individual addres...
So i have a listbox, and here is what im trying to acheive:
have the class style adding/selecting/removing sort of like a TreeView
ListBox items have more than one label docked to different sides of the space ( for example, the item would be thicker, and would be big enough for two labels on top of eachother, and then perhaps another o...
Hi,
Within a Groupbox I have a Listbox, ListboxItems are defined in the XAML as well. The Listbox is defined:
<ListBox Name="lvAvoidCountry" Margin="5,5,5,5"
Background="Transparent"
ScrollViewer.VerticalScrollBarVisibility="Visible"
ScrollViewer.HorizontalScrollBarVisibility="Disabled" >
Items are defined like this:
...
Hi all
I want set Listbox background to transparent but not working
Is there any idea?
...
Hi,
I am binding same data Table to Combo box and List Box on the WindowsForm Load.
When I select a value in Combo box automatically that value is also getting selected in List Box and same thing when I select a value in List Box that value is also getting selected in Combo Box.
Selection should be only for that particular control, ho...
Hello,
I want to pass the Multiple selected values from ListBox as parameters to my Select SQL Query.
I am using VB.NET, how can I achieve this ?...
...
Hi,
I have a ListBox bound to an ObservableCollection with an ItemTemplate that contains another ListBox. First of all, I tried to get the last selected item of all the listboxes (either the parent and the inner ones) from my MainWindowViewModel this way:
public object SelectedItem
{
get { return this.selectedItem; }
set
{...
Hello,
I've got an application, which uses many listBoxes with data attached to them using listBox.ItemsSource. The problem is it creates entries like [namespace].[class_name].
How can I create a template, which will replace entries with, eg. class "Name" field?
I look forward to hear from you soon,
MattheW
...
I have the list box control (ASP.NET Control On aspx page, language C# ). It has collection of integers as Items:
100,
200,
300,
400,
500,
600,
700. ok ?
I randomly select the list items at run time. as :
200,
500,
100,
300. Ok?
I want this sequence of selected list in List collection. How can i do this ? Please guide me.
...
Is there a ListView (ListBox) or similar component that allows me to easily drop another component in a specific column. (Multiple columns)? Like a checkbox, button or drop down list or all the above. (It would be nice to be able to sort via the header also)
If not does anyone know of a resource on how to custom draw something like thi...
Hi,
I have tabcontrol,in that by pressing second tab button im adding data to third Tab Listbox.But its not get added.
SecondTab function:
private void Callbutton_Click(object sender, RoutedEventArgs e)
{
tab.AddPresetmenu("CALL BUTTON");
}
ThirdTab Fucntion:
ObservableCollection<DataItem> items =...
My WPF window has its foreground brush set to a brush from a resource dictionary, and I want all text in the window to have this color, so I don't touch the foreground brush in anything else.
Textboxes get the color
Textblocks get the color
Buttons get the color
Listboxes do not get the color, and so neither do their contents.
Is ther...
Scenario:
Windows Form
Listbox
SelectionMode = MultiSimple
Items 1 and 5 are selected already
User selects item 3 by clicking on it or by pressing the spacebar after it has focus
Q: How do I get its index or value on SelectionChanged? I.e., how do I know which item was just selected (or de-selected)? FYI, SelectedItem will return ite...
Is there a way to make some of the items in a ListBox readonly/disabled so they can't be selected? Or are there any similar controls to ListBox to provide this functionality?
...