Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Any fork with this fix? #272

Open
sisi399 opened this issue Jul 9, 2024 · 3 comments
Open

Any fork with this fix? #272

sisi399 opened this issue Jul 9, 2024 · 3 comments

Comments

@sisi399
Copy link

sisi399 commented Jul 9, 2024

Hello,

I am using the Dependencies tool and have a feature request that I hope someone can help me with. Currently, when I click on a module with missing imports, the default view in the imports section does not prioritize the missing imports. I have to click the sortable column header twice to sort the missing imports to the top. Here are some screenshots illustrating the current behavior and the desired outcome:

  1. Default view: Kernel32.dll has missing imports, but these are scattered throughout the "PI" column.

Default View

  1. Double-clicking the "PI" column header (indicated by the red arrow) sorts the column so that the missing imports appear at the top. See Picture 2.

Sorted View 1

Picture 2

Sorted View 2

I would love for Dependencies to automatically show the missing imports at the top by default when I click on a module.
Unfortunately, I do not have experience with C# or XAML, so I am unsure how to make this change myself.

It would be wonderful if someone with a coding experience could modify the source code so I can compile it myself. Alternatively, is there a fork that already has this modification implemented?

Thank you in advance for your help.

@sisi399
Copy link
Author

sisi399 commented Jul 11, 2024

I've managed to compile successfully, but despite hours of effort i haven't had any success as I have no idea what I'm doing, lmao.

Here are some of my attempts:

  • I tried commenting out this.ImportList.ResetAutoSortProperty(); in DependenciesGui\DependencyWindow.xaml.cs to prevent the column sort from resetting when switching between different modules after manually sorting by the "PI" column.

  • I attempted to manually add util:GridViewSort.AutoSort=True properties in some .xaml files.

  • I also experimented with replacing Wpf.Util.GridViewSort.RemoveSort(this.Items, this); at Line 89 in DependenciesGui\DependencyImportList.xaml.cs with Wpf.Util.GridViewSort.ApplySort. However, I encountered compilation issues, likely due to incorrect specification of the four arguments required.

@sisi399
Copy link
Author

sisi399 commented Jul 12, 2024

I found a question on Stack Overflow from 8 years ago that addresses the exact same issue using the same library. There’s even an answer provided. I still wasn't able to do it myself.

https://stackoverflow.com/questions/31458719/implementing-initial-sort-on-listview-using-a-class

Tagging some individuals who have contributed to Dependencies or maintain their own forks:
@viruscamp @lhak @sonyps5201314 @wekoil @DawmosTomie @himeshsameera @neeraj9 @sj6219

I apologize for the unsolicited tag. Your assistance would be greatly appreciated.

@Neustradamus
Copy link

I have done a new ticket for @lucasg to migrate this repository into an organization to continuous the development:

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

No branches or pull requests

2 participants