Shock
WPF local: when using Dependency Injection
Hello,
My WPF app is utilizing dependency injection following https://achraf-chennan.medium.com/net-core-dependency-injection-for-wpf-core-62dc282690f8 (which removes StartupUri from the App.xaml file).
When I'm attemping to utilize data binding, but local:SessionConverter isn't being recognize and I'm not understanding how to work around it as I'm unable to set the DataContext in the main window due to the parameters.
The .xaml code looks like the following (button data removed)
Could anyone point me in the right direction here?
14 replies
Out Parameter Question
I think this should be simple, but I am coming up blank on a method call with an out parameter. (The example below is basic but my actual code requires the parameters)
File1.Cs
If I am trying to call the Position Method in File2.Cs
What do I put for the last parameter on p.Position?
16 replies