Questions tagged [items]

637 questions
6
votes
1 answer

Animating the Addition / Removal of items within a TreeView - WPF

I know similar questions have been asked in relation to animating items within an ItemsControl so if an acceptable answer has been posted then it would be great if I could be pointed in the right direction. I have a databound TreeView where the…
SilverX
  • 1,509
  • 16
  • 18
6
votes
3 answers

jQuery UI Sortable - how to include/exclude multiple "items"?

I have a working example of the jQuery UI Sortable function. I'm applying it to a HTML table to drag and drop and sort table rows. It works great except I want to exclude certain classes of row from being sortable. Using the items parameter, I can…
TrojanName
  • 4,853
  • 5
  • 29
  • 41
6
votes
2 answers

How to add a custom NSToolbarItem to an existing toolbar programmatically

I am having difficult to add a custom NSToolbarItem to my existing toolbar. NSToolbar was created in NSWindowController, then I have a function to populate toolbar items programmatically, code as: public func populateFileToolbarItem(_ toolbar:…
cidy.long
  • 417
  • 12
  • 35
6
votes
2 answers

Optimized way to get "get_Item" MethodInfo

Right now, I have: targetType.GetMethod("get_Item", BindingFlags.Instance) Is there anything better?
smartcaveman
  • 41,281
  • 29
  • 127
  • 212
6
votes
1 answer

How to get all Property value's Labels of an Wikidata Item?

How would you request the set of all Properties that an Item has? Specifically, I'm looking for the English Labels for each Item that is the Value of an Item's Property. E.g. "Earth": { "Challenger Deep", "Solar System", "oblate…
Ware
  • 97
  • 6
6
votes
3 answers

Android: Listview duplicates itself when I launch a new activity and press back to go back to it

I have two list views that are fragments in view pager tabs. When you click on the items in the list view it launches a new activity. But when I press the back-button to get back to the tabbed list view, the list view has doubled and if I open the…
I'm_With_Stupid
  • 1,112
  • 4
  • 16
  • 35
5
votes
1 answer

Consider iterating with items()

I'm browsing a dictionary to delete some values in another dictionary. However, pylint doesn't like my code and suggest me to use .items() method. I discover this method and I don't understand how to get the same result with this. My dictionaries…
Menryck
  • 149
  • 1
  • 9
5
votes
5 answers

how to clear list till some item? c#

i have List with 5 entries. [0],[1],[2],[3],[4]. if I use List.Clear() all item are removed. i need remove till specific item, for example till [1]. that means in my list are just 2 items [0] and [1]. how do that with c#?
r.r
  • 7,023
  • 28
  • 87
  • 129
5
votes
2 answers

Difference between an item and an attribute - Jinja, Python

I am reading about templates in Jinja, especially about variables. I would like to ask you for explanation for this sentence about acessing values of the passed to Jinja syntax objects: Implementation For the sake of convenience, foo.bar in Jinja2…
fgh
  • 169
  • 1
  • 3
  • 15
5
votes
1 answer

UIPrintInteractionController printingItems not showing up / working

Pretty straightforward... I consider myself a fairly well-seasoned iOS developer these days, but this one seems like a glaring bug in iOS, unless I missed something. Please see the code below. The file paths point to two one-page PDFs. What shows up…
iOS4Life
  • 226
  • 2
  • 13
5
votes
2 answers

How to change the appearance of a MenuStrip

I add a MenuStrip in my app and is add on ManagerRenderMode at Render Mode. The problem is with the appearance, look offal. Look at those two photos, I want to change that white border of submenus in transparent, that blue rectangule that look offal…
AnDr3yy
  • 239
  • 2
  • 5
  • 16
4
votes
2 answers

Populating a listview from a SQLite database

I have an activity where i write a name which is insert in the database. In another activity I want to put a ListView which is populated with those names which are in the database or to add the new item directly when i write it in the edittext from…
stanga bogdan
  • 724
  • 2
  • 8
  • 26
4
votes
3 answers

Custom User Control and Friendly Property Item Collection (Like ListBox and ListItems, but with List) on .ASPX

I have been wondering a long time how to do a public property for a User Control that work's like .NET native Item's collection Property (for Example, ListBox and ListItems): <- Inline item…
Pablo HDG
  • 53
  • 1
  • 7
4
votes
5 answers

Python, remove duplicates from list of tuples

I have the following list: [('mail', 167, datetime.datetime(2010, 9, 29)) , ('name', 1317, datetime.datetime(2011, 12, 12)), ('mail', 1045, datetime.datetime(2010, 8, 13)), ('name', 3, datetime.datetime(2011, 11, 3))] And I want to remove…
alexvassel
  • 10,600
  • 2
  • 29
  • 31
4
votes
7 answers

Drawer footer items

i have some little trouble with the drawer , i've searched on stack a solution for this , and found a solution , but after trying it out , it didnt work for me ! :) the idea is , i want to have some items in drawers displayed in the very end of it…
1
2
3
42 43