dansav / vs-eye-tracking

Extension for Visual Studio using eye tracking
MIT License
5 stars 4 forks source link

Create a custom UI for the options page #9

Closed dansav closed 4 years ago

dansav commented 5 years ago

I have seen some code examples that use WinForms to create a custom UI. I would be more comfortable if it was possible to use WPF.

Some GUI ideas:

niklaskallander commented 5 years ago

I know I've fiddled with something along the lines of: https://docs.microsoft.com/en-us/dotnet/framework/wpf/advanced/walkthrough-hosting-a-wpf-composite-control-in-windows-forms to accomplish (long time ago). I remember it wasn't exactly perfect, but it might have been my lack-of-skill rather than anything else. (:

dansav commented 4 years ago

I have experimented a bit with how I think the custom UI should look, and this is what I have come up with: Custom Options Design proposal 1

Obviously it is what is in the blue rectangle that can be customized, and I did not spend too much time on the texts. Texts will probably evolve over time anyway, and I am thinking about adding some short descriptions for each feature

dansav commented 4 years ago

I just found out that there is a built in class in Visual Studio shell (UIElementDialogPage) that already handles the wrapping of WPF in a WinForms host control!

dennyronngren commented 4 years ago

That's great!

dansav commented 4 years ago

I have a very rough implementation on a branch: feature/options-gui. Only the basic properties are there and I have not styled anything yet.

dansav commented 4 years ago

I just merged this #12 to the develop branch, and will hopefully do a release soon.

dansav commented 4 years ago

I have released version 0.5 with the new options GUI