Shinyshark
Shinyshark
CC#
Created by Shinyshark on 1/17/2023 in #help
❔ Overwriting a WPF ListView Style.
I am trying to overwrite a WPF ListView Style to add a button into it at the top. Normally, I would use a UserControl and build a component but there are some issues with hosting items inside of the ListView that make use of x:Name. When I make a new style based on the ListView, a lot of internal items are overwritten such as the GridViewHeaderRowPresenter. How would I go about this issue? Is it a good idea to add this button into a Style or would I have to make a UserControl for it?
2 replies
CC#
Created by Shinyshark on 1/14/2023 in #help
❔ How can I create a UML Class Diagram from an existing .NET 6 Project?
I have a project that has grown to a larger size than I had anticipated. I want to generate a UML Class Diagram so that I can inspect it further. I have followed this tutorial, but the option to add a class diagram is missing. https://learn.microsoft.com/en-us/visualstudio/ide/class-designer/how-to-add-class-diagrams-to-projects?view=vs-2022 I installed the Class Designer. If I open the Visual Studio Installer via the Tools -> Get Tools and Features option, it says the Class Designer is installed. All my projects target .NET 6.0 framework. I have restarted my Visual Studio 2022 Community Edition. I have restarted my computer.
13 replies
CC#
Created by Shinyshark on 11/19/2022 in #help
Unable to create an object of type 'UnitOfWork'. [Answered]
Hello everyone. I have two projects; one is an API and the other is a DAL (Data Access Layer). I want the DbContext and the Migrations to live in the DAL. However, it seems I have to add migrations via the API project. How can I create migrations in the DAL project?
40 replies