system.componentmodel Questions

2

Solved

What is the difference between the System.ComponentModel.BindingList methods Add(object) and AddNew()? The MSDN documentation says this: Add: Adds an object to the end of the Collection<T>....

0

I am currently using the System.ComponentModel.Design.Serialization namespace to generate C# code. This code is compiled later by another application. var manager = new DesignerSerializationManage...
Flatfoot asked 23/7, 2021 at 20:9

3

Solved

I am trying to create an extension method that will return a List<string> containing all the Description attributes for only the set values of a given [Flags] Enum. For example, suppose I ha...
Penult asked 31/7, 2017 at 22:29

3

Solved

More of a usability question. I'm building a big MVVM application, and I find myself copying / modifying this piece of code all over the place: public NodeKind Kind { get { return (NodeKind)this....
Garderobe asked 9/3, 2017 at 9:24

6

Solved

Are there any data binding frameworks (BCL or otherwise) that allow binding between any two CLR properties that implement INotifyPropertyChanged and INotifyCollectionChanged? It seems to be it shou...
Ileana asked 2/3, 2009 at 10:27

1

When trying to deserialize using the ComponentSerializationService, errors are populated that references were not found: public ICollection Deserialize(object serializationData) { var serializati...
Saintmihiel asked 3/3, 2016 at 8:20

4

Solved

I want to add some custom PropertyGrid-centric Attributes to the object's properties, to provide richer editing, hide some values and group them in categories, because that class I'm working with d...
Harbird asked 27/8, 2012 at 14:10

5

Solved

I was looking at this post that describes a simple way to do databinding between POCO properties: Data Binding POCO Properties One of the comments by Bevan included a simple Binder class that can ...
Axon asked 9/3, 2011 at 21:8

2

Solved

What is the difference between IEditableObject and IRevertibleChangeTracking (both from the System.ComponentModel namespace)? It looks as if the first supports explicit transaction whilst the secon...
Rillis asked 3/6, 2010 at 14:41

1

Solved

Is there an attribute I can use when creating a table ? I tried [StringLength] but it seems to be ignored. public class EntityRegister { public int Id { get; set; } [StringLength(450)] public...
Phraseograph asked 23/12, 2012 at 3:44

2

Solved

First of all, I have to say that I'm going to talk about System.ComponentModel.Component. You know, I understand, that the .NET Component Model provides ability (through Site Services) to define s...
Ebeneser asked 19/3, 2010 at 10:22

2

Solved

Note first of all that this question is not tagged winforms or wpf or anything else GUI-specific. This is intentional, as you will see shortly. Second, sorry if this question is somewhat long....

1

Solved

Is anybody could explain when and why we should use System.ComponentModel.Container, please? Recently I have met using of this class here, but really cannot understand what a benefit can get us thi...
Tellurian asked 12/1, 2011 at 9:23

2

Solved

What is AggregateCatalog? What does it mean when you construct a new AggregateCatalog()? What does it mean when you add assemblies to the catalog, eg catalog.Catalogs.Add(new AssemblyCatalog(someAs...
Orpheus asked 22/11, 2010 at 3:59

2

Solved

I would like to dynamically apply the MEF Export attribute to a type at run-time, exactly as if the type had had an Export attribute applied at compile time. Is there a simple way to do this? Bar...
Tarbes asked 17/11, 2010 at 22:2

1

I consider myself a reasonably experienced .NET developer but I have almost never directly used types in the System.ComponentModel namespace. (I've implemented a few custom attributes and consumed ...
Guffaw asked 15/12, 2009 at 13:30

1

Possible Duplicate: When and why should I implement IComponent, IContainer, and ISite? There are various online docs about using IContainer and ISite (eg http://www.theserverside.net/...
Veolaver asked 19/5, 2009 at 13:38

1

Solved

I've wondered for a long time what IComponent, IContainer, and ISite are for. I've read the documentation, but it is extremely vague (or I'm thinking about it too hard). I know that if I create a c...
Hagfish asked 7/11, 2008 at 20:57
1

© 2022 - 2024 — McMap. All rights reserved.