Hi!
I inherited KryptonToolkit ListBox control to get SelectedItemChanging event.
public class CPListBox : KryptonListBox
{
public event CancelEventHandler SelectedIndexChanging;
protected virtual void OnSelectedIndexChanging(CancelEventArgs e)
{
SelectedIndexChanging(this, e);
}
protected override void OnSelectedIndexChange...
I'm trying to get an ItemsPanelTemplate working for a ListBox. The ListBox is used in a DataTemplate, and none of my implicit ListBox styles override the default visual style. For some reason, the ItemsPanelTemplate I'm specifiying for the control (a WrapPanel) is being ignored and a StackPanel is used instead.
This is the entire templa...
Hi!
On Form I have single select ListBox Control in which I'm displaying list of application users name and set of textboxes for displaying other selected users values. I do databinding to listbox and textboxes with the same biding source:
usersListBox.DataSource = null;
usersListBox.DataSource = usersBindingSource; ...
Apologies for the ambiguous title.
I want the items of my listbox to display similar to a photo gallery - imagine Thumbnail view on Windows File Explorer.
I have a listbox defined as so
<ListBox ItemsSource="{Binding RUFView}" x:Name="RUFs" Margin="228,34,12,12" Background="Transparent" BorderBrush="#007F9DB9">
<ListBox.ItemsPanel...
I am using the control library from http://code.google.com/p/gong-wpf-dragdrop/successfully for my listbox dragging operation.But there is an issue when i drop an item to a listbox with a group style.I have traced that in the DropInfo class the line
UiElement item=itemscontrol.GetItemContainerAt(e.GetPosition(itemscontrol));
always r...
I have a problem when updating the source of an ASP ListBox in an AJAX update panel. When I set the source of the ListBox to a large dataset, I would assume it would take a small amount of time to render due to the number of items. However, when the DataSource is switched at run-time to a smaller set of items, it takes just as long to ...
I have a silverlight listbox that is being used as a search result box. I'm using dynamic searching (keyups in the search box cause the events to fire to filter this list box's contents). The issue I'm running into is if the user scrolls down when the box is unfiltered, then does the search, the rebinding of the listbox does not cause t...
In WPF, I have a ListBox with a UserControl as its ItemTemplate - all data shown ok. I have now added a text box for input in that user control. In an MVVM design, I want to take some action (re-calculate values) in the main window when the user edits the content of the text box in the user control, in the item template, in the list box....
Hello,
I have a listbox in a Microsoft Access form. The MultiSelect property is set to simple.
I want to know which item in the listbox was clicked. Keep in mind that an item may be clicked to SELECT or UNSELECT an item.
Is there a simple way to do this? If not is there a complicated way to do this?
I tried to use the SendMessa...
I'm getting a null reference exception whenever it tries to add the packages titles info and other attributes but the attributes exist and the proper package is selected
Heres the code:
private void categorylist_listview_SelectionChanged(object sender, SelectionChangedEventArgs e)
{
XmlDocument LoadPackageList = new...
I have both a ListBox (AlarmBox) and a ListView (listView1). They both save into 2 different Properties.Settings (AlarmList and AlarmList2).
Properties.Settings.Default.AlarmList.Remove(AlarmList.SelectedItem);
Properties.Settings.Default.AlarmList2.Remove(listView1.SelectedItems);
AlarmList.Items.RemoveAt(AlarmList.SelectedIndices[0]);...
Hi
I have this scenario. I need to show 3 list boxes on a ASP.NET web page. List box A would have all the options on page load and list boxes B, C would be empty.
I want to align all three such that I can select items from A to B and A to C. So, A would be shown as a bigger listbox with B, and C as smaller boxes on to its right such th...
I have a complicated setup and I hope someone can shed some light on this problem. My apologies up front for its length. The essence of the problem is that a ListBox that uses two different DataTemplates for its ListBoxItems does not resize when Grid columns in those data templates collapse and are then made visible. One template ins...
I am loading values for a listbox from an xml file. What my problem is i can't get the bindings show the property values of the class that each item is assigned. When i set the Text this way:
<TextBlock Text="{Binding }" Style="{StaticResource TitleBlock}"></TextBlock>
The items show the toString value of the class, but if i use:
<T...
Hi all xaml-geeks ;)
I've just been fooling around with a ListBox control that I want to style a certain way. For now it looks just like I want it to with rounded corners and no padding. However, the rounded corners seems to cause a problem with the items in the ListBox.
A screenshot so you can see what I mean:
The thing is, that th...
Please bear with me Silverlight Designer Gurus, this is compicated (to me).
I'm creating a custom control which derives form the Silverlight 3.0 ListBox. In an effort not to show tons of code (initially), let me describe the setup.
I have a class library containing a class for my control logic. Then I have a Themes/generic.xaml t...
Question about the ListBox.DataBinding method. I'm loading a listbox with a DataRows array object and I want to check for each DataRow element a column value if its true/false. If the column value is true, then modify the style for the current listBox.ListItem object. Below is some sample code.:
System.Data.DataRow[] rows = Data.SchoolD...
Hello,
i want to know a double-clicking functionality for a list-box kann easily be build. I have a list-box with a collection as ItemSource. The collection contains own data-types.
<ListBox ItemsSource="{Binding Path=Templates}"
ItemTemplate="{StaticResource fileTemplate}">
I defined a data-template for my Items, which con...
Problem
We need to efficiently display a large (>1000) number of objects in a WPF ListBox control.
We are relying on the WPF ListBox’s virtualization (via VirtualizingStackPanel) to efficiently display these items.
Bug: The WPF ListBox control does not display items correctly when using virtualization.
How to Reproduce
We have distil...
I am new to WPF, so I thought this was simple. I have a form with a listbox and a button. In the click handler for the button I do something iteratively that generates strings, which I want to put in the listbox as I get them. The xaml for the list box is like
<ListBox Height="87" Margin="12,0,12,10" Name="lbxProgress" VerticalAlignmen...