Skip to content
This repository has been archived by the owner on Feb 11, 2023. It is now read-only.

Strange situation in repeated hooking #7

Closed
razinalex123 opened this issue Oct 23, 2013 · 7 comments
Closed

Strange situation in repeated hooking #7

razinalex123 opened this issue Oct 23, 2013 · 7 comments
Assignees

Comments

@razinalex123
Copy link

I have strange situation. When i first time catch control the Hawkeye2 is showing all good. But if i second time catch this control, the Hawkeye2 start show extra information.

Here is a video http://dfiles.ru/files/zshprxzby

First:
first_time

Second:
second_time

@odalet
Copy link
Owner

odalet commented Oct 23, 2013

OK. That's indeed a bug and your video really helped. I'll try to reproduce then examine this one.

I think the correct behavior (by correct, I mean the behavior I intended to code) would be to always have the second kind of grid displayed... But, thanks to your comments on codeplex, I know you prefer the first kind. So I'll try to fix both issues at once.

@ghost ghost assigned odalet Oct 23, 2013
@razinalex123
Copy link
Author

I noticed next thing - first time button "All Properties" (on toolbar) not pressed. But if we press it, the second case is appeared. And then not possible to unpress this button

@odalet
Copy link
Owner

odalet commented Oct 23, 2013

Yes, I know the issue is somehow related to the way I handle the "pages" of the property grid. Thanks.

@razinalex123
Copy link
Author

Hello.
So have you got time to fix this?
I try myself to fix it (set in internal static class ComponentModelExtensions
private static readonly BindingFlags instanceFlags = BindingFlags.Instance | BindingFlags.Public;
)
but i have not success. If i set only BindingFlags.Public the property grid was empty.

@odalet
Copy link
Owner

odalet commented Oct 25, 2013

Honestly I don't know when I have time to look into this. So I'll fix this when I fix this. Sorry.

@razinalex123
Copy link
Author

ok, i understand you. But can you give me some hint (help). I want to fix this myself. What object (or class) is responsible for getting control properties? I want to disable in it getting all properties, and stay only like in picture one from first post.

odalet added a commit that referenced this issue Oct 27, 2013
@odalet odalet closed this as completed Oct 27, 2013
@razinalex123
Copy link
Author

Thank you!

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

2 participants