Click here to Skip to main content
16,017,707 members
Home / Discussions / C#
   

C#

 
GeneralRe: Comboboxes in DataGrid question Pin
royg7717-May-05 1:25
royg7717-May-05 1:25 
GeneralHELP! (Im just confused) Pin
Anthony Mushrow17-May-05 0:37
professionalAnthony Mushrow17-May-05 0:37 
GeneralRe: HELP! (Im just confused) Pin
MoustafaS17-May-05 0:43
MoustafaS17-May-05 0:43 
GeneralRe: HELP! (Im just confused) Pin
Marc Clifton17-May-05 3:37
mvaMarc Clifton17-May-05 3:37 
GeneralFlickering problem Pin
sbozcan17-May-05 0:14
sbozcan17-May-05 0:14 
GeneralRe: Flickering problem Pin
_darkwalker17-May-05 21:29
_darkwalker17-May-05 21:29 
GeneralInterpolating properties .. Pin
mrpink16-May-05 23:54
mrpink16-May-05 23:54 
GeneralRe: Interpolating properties .. Pin
Marc Clifton17-May-05 0:20
mvaMarc Clifton17-May-05 0:20 
That was a seriously confusing post. If I've made any sense of it, here's an approach I would take:

If you have control of the assemblies, I would decorate the properties of each class with an attribute, like "[EditableProperty]", so that I can use reflection and select only those properties that I want to allow the user to change.

If you want this to work with any assembly, well, then, I guess having a complete list of properties is what you're stuck with unless you provide a separate dictionary.

mrpink wrote:
In a way I would need to store like a 'pointer' to the property to animate, and a 'instance' of that property to store the value into the 'anim'.

Again, using reflection, you need:

the class instance
the property name
the new value

Also, by property, I truly mean a property with get/set methods. This is different from a "field", like "int foo;".

Look at something like MycroXaml[^], which is a good example of how you use reflection to create classes and change their property values. You could pretty easily create an xml file that specifies an animation of an object by streaming values into various properties.

I hope this response made sense!

Marc



MyXaml
Advanced Unit Testing
YAPO
Generalcreating registry key during setup Pin
Sasuko16-May-05 23:44
Sasuko16-May-05 23:44 
GeneralRe: creating registry key during setup Pin
MoustafaS17-May-05 0:29
MoustafaS17-May-05 0:29 
GeneralRe: creating registry key during setup Pin
exhaulted17-May-05 0:29
exhaulted17-May-05 0:29 
GeneralRe: creating registry key during setup Pin
Marc Clifton17-May-05 3:40
mvaMarc Clifton17-May-05 3:40 
GeneralRe: creating registry key during setup Pin
mav.northwind17-May-05 20:23
mav.northwind17-May-05 20:23 
GeneralRe: creating registry key during setup Pin
Marc Clifton18-May-05 2:21
mvaMarc Clifton18-May-05 2:21 
GeneralRe: creating registry key during setup Pin
mav.northwind17-May-05 21:35
mav.northwind17-May-05 21:35 
Questiondata type capacity? Pin
16-May-05 23:11
suss16-May-05 23:11 
AnswerRe: data type capacity? Pin
Colin Angus Mackay16-May-05 23:46
Colin Angus Mackay16-May-05 23:46 
AnswerRe: data type capacity? Pin
Dave Kreskowiak17-May-05 9:33
mveDave Kreskowiak17-May-05 9:33 
GeneralQuerying NDIS Pin
Mohan vijay16-May-05 22:35
Mohan vijay16-May-05 22:35 
GeneralRe: Querying NDIS Pin
Dave Kreskowiak17-May-05 9:42
mveDave Kreskowiak17-May-05 9:42 
QuestionVS.NET 2003 - Bug in project list ? Pin
Seraphin16-May-05 22:29
Seraphin16-May-05 22:29 
AnswerRe: VS.NET 2003 - Bug in project list ? Pin
Colin Angus Mackay16-May-05 22:38
Colin Angus Mackay16-May-05 22:38 
GeneralRe: VS.NET 2003 - Bug in project list ? Pin
Anonymous16-May-05 23:02
Anonymous16-May-05 23:02 
AnswerRe: VS.NET 2003 - Bug in project list ? Pin
leppie17-May-05 1:18
leppie17-May-05 1:18 
GeneralRe: VS.NET 2003 - Bug in project list ? Pin
Anonymous17-May-05 1:45
Anonymous17-May-05 1:45 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.