1,098 questions
0
votes
2
answers
80
views
How can I check whether an item exists in a ListView?
My application accepts files dragged from Windows and adds them to a GUICtrlCreateListView(), but I don’t want to add them twice:
GuiCreate('Drag and Drop', 530, 320, @DesktopWidth / 2 - 192, @...
0
votes
2
answers
110
views
ListViewItem Background Not Changing Despite Setting Global ItemContainerStyle in App.xaml
I'm working on a WPF application where I want to apply a global style to all ListViewItem elements across my application. I've defined an ItemContainerStyle for ListViewItem in App.xaml, intending to ...
0
votes
0
answers
350
views
.NET MAUI intuitive context menu for ListView items
I have a .NET MAUI App with a ListView Control.
Every ListViewItem opens a new Details Page when being selected (let-click/tapped).
Additionally, I have a set of actions (Edit, Delete, Add Child ...) ...
0
votes
1
answer
51
views
How to Sort Records in a ListView
I would like to use the following class:
internal class IPComparer : IComparer<string>
{
public int Compare(string a, string b)
{
return Enumerable.Zip(a.Split('.'), b.Split('.')...
-1
votes
2
answers
72
views
C# WPF - How can i preselect ListView Items programmatically using the .IsSelected property?
I have a C# WPF application and using ListView with basically works fine.
My issue is:
I want to preselect items in the list view. The selection should be visible for the user, and the user should be ...
0
votes
0
answers
52
views
Finding a specific value in WindowsForms ListView via FindItemWithText, but method having some troubles with numbers
I have a ListView named lst_Employees and have combined 2 ComboBoxes named cmb_EmployeeID and cmb_EmployeeName. When I choose someone from cmb_EmployeeName, the cmb_EmployeeID's selected index change ...
0
votes
1
answer
130
views
How to update multiple Observable Collections in a WPF application?
I have written a WPF application that lets a user add and view a list of project files that he needs to build in batch mode, and then view the run time progress of each file as it is being built one-...
0
votes
0
answers
22
views
C# ListView Select Multiple Items Fires ItemSelectionChanged and SelectedIndexChanged multiple times [duplicate]
I created a list view where I added rows of data coming from the database. Imagine there are 200 records in the list view, user selects the first row, then hold shift and click the last row. This ...
0
votes
0
answers
88
views
C# ListView move to next object when i click button
I have a little problem. When I click the button, I want the ListView to move to the next object. Also, when it moves to the new object, it needs to get the address of the new object.
The program will ...
0
votes
1
answer
72
views
Display only one TextBox which is bound to selected item from ListView
I have a ListView which is bound to an ObservableCollection
I have added a DataTemplate to a ListView to bind item with TextBox in purpose to Rename selectedItem using Rename from ContextMenu:
View
...
1
vote
1
answer
350
views
AlertDialog with ListView inside causing an issue
I have an alert dialog with a list inside.
For some weird reason, I am getting a an error because of a size property
var jobTypes = [
{"Job type": jobTypeHm, "Active": true},
...
0
votes
0
answers
40
views
ListViewItem is Null for some reason
This is the error I got whenever I tried to populate my ListView with "users" collection using DataTable returned from a repository function that communicates with MySQL database. Note that ...
0
votes
3
answers
205
views
Flutter: performance issue in long lists with random colors
I have a List of items, each item has a color, when the list passes like 15 items the color of the items that are off-screen changes. I've tried with ListView.builder and ListView.custom and it's the ...
0
votes
2
answers
527
views
Unable to change properties of ListView FMX except by Text
I created a ListView and add some ItemsText's, arranged them in their respective sizes/positions and when try to populate them, some ItemsText was cut in half (short width), then I decide to change ...
-1
votes
1
answer
581
views
C# WPF UI is not updated by datatrigger when I change a property in the listview item
I want to make a chess game in WPF, I decided to use listview to display my fields. I have a class named Field with properties. I have a list containing 64 fields and i changed to style of my listview ...
1
vote
4
answers
521
views
Count all duplicates in ListView column. C#
I'm creating a software for a marketplace and want to create a listview that counts all the duplicate values inside a column.
This count will show how many items were oftenly bought by buyers.
This is ...
0
votes
1
answer
253
views
Change item control property of checked listview item Xamarin.Forms
Hy,
I am trying to show a comment input if the item checkbox is checked and hide it else, i have this XAML
<ListView ItemsSource="{Binding TaskItems}" x:Name="TasksItems" ...
1
vote
0
answers
61
views
How to prevent focus going to whole ListViewItem when the item's content view is clicked
I have created a Xamarin ListView sample with customized item template.
When I clicked the content view in the item template focus is applied for the list view item instead of that content view in ...
0
votes
1
answer
223
views
ListViewItem MultiDataTrigger and AlternationIndex
So I tried to apply a different Background color to each ListViewItem:
<Style.Triggers>
<MultiDataTrigger>
<MultiDataTrigger.Conditions>
<Condition Binding=...
-1
votes
1
answer
386
views
WPF Converter: Unable to cast object of type 'System.Int32' to type 'System.Windows.Controls.ListViewItem'
In a GridViewColumn I have below converter:
<GridViewColumn Header="Number"
DisplayMemberBinding="{Binding (ItemsControl.AlternationIndex),
...
-1
votes
1
answer
813
views
HOWTO Remove the extra empty space(column) on the right handside of a WPF ListView
I have an WPF ListView with three columns. I see that in my ListView appears an extra empty space(column) on the right handside and I do not know why. How can I remove this extra space using XAML?
&...
0
votes
0
answers
429
views
WPF ListView: Inline edition on button clicked
In an WPF ListView I have ListViewItems that consist of two columns, one column is a TextBlock and the another one contains two buttons (Edit and Delete) in the same column.
Also the first row of the ...
2
votes
2
answers
276
views
How do I set a proportional value for row height in a listView so it occupies the entire screen?
I need the items in my listView to have a height so it the list exactly fits the screen. Here's my code given below. I tried setting the Height of rows in my grid to a custom value, but that would ...
0
votes
1
answer
102
views
How can we change the foreground color on point hover in a listview binded with two textblock of the different foreground colors?
I am using this style
<Style x:Key="ListViewItemContainerStyle"
TargetType="ListViewItem">
<Setter Property="FontFamily"
...
0
votes
1
answer
642
views
ListView not working properly after calling Sort()-Function
I am currently working on this old, rusted .NET Framework Platform.
In my form I have a ListView, and I´m adding some data-tagged items into it.
The new data-tagged item gets placed one step under the ...