!Rushaan
Unable to import models in service interface
Hi im learning Dependency Injection for the first time and making a micro-project to try it out. But I have a model class in my main project and a class from that model is needed in the service interface however im unable to import the model class in the interface.
I can import ServiceContracts in ASPNETCoreLearn2 but i can't do vice-versa even though ive properly added the project dependencies.
21 replies
button background not changing wpf
I have a very simple but extremely annoying issue, ive assigned 4 buttons with the same mouse enter event and trying to change their background/foreground/border brush AND NOTHING IS CHANGING IT JUST STAYS THE SAME AS WHENEVER BUTTON IS NORMALLY HIGHLIGHTED!
im 100% sure the event is triggered though as i checked
the only thing i can change about the button is isHitTestVisible
16 replies
Out of memory error
Using
AForge.Video.DirectShow
to integrate a QR Code scanner in my WPF App but whenever the scanner is open it crashes in 15 seconds due to out of memory error as it reaches 4gb memory usage and I'm not able to exactly pinpoint the reason why its happening, BitmapToImageSource()
throws the out of memory error.
https://pastebin.com/XjsE9BuJ19 replies
Preventing TextBlock from getting deleted
I'm using a RichTextBox and setting some inline as TextBlock but the user is able to delete that textblock and i dont want that to happen, for some reason the inline returns Run type even if its a textblock, how do i see if its a textblock and prevent deletion
1 replies
✅ Image source not being set with C#, WPF
I have a very basic C# statement but whenever it gets executed the image is not set and the image element disappears.
I have no clue why its not being set, the image is present in that directory, build action of the image is set to content and copy to output is set to copy always
31 replies
Trying to publish WPF App but getting error
I'm trying to publish a WPF C# application so that I get it's .exe but I keep getting that error.
The command I ran was
dotnet publish -c Release
MSBuild.exe was not present in the folder give in error so from somewhere of Visual Studio folder I found MSBuild.exe and copy pasted it in that folder and still getting the exact same error.34 replies
Error while trying to publish WPF Application
MSBuild.exe was not present in the folder give in error so from somewhere of Visual Studio folder I found MSBuild.exe and copy pasted it in that folder and still getting the exact same error..
The command I ran was
dotnet publish -c Release
1 replies
An event running every few seconds, want it to run only once
I'm making a WPF application and for that using GeoCoordinateWatcher but the GeoCoordinateWatcher event is supposed to run only once until I want it to run again, but it automatically runs every seconds and i have no idea why.
The event name is SettingWeatherData
Keep in mind im a beginner and dont have a lot of idea bout events & delegates
https://pastebin.com/81UBJjPC
6 replies