Donut5162
Donut5162
CC#
Created by Donut5162 on 11/25/2023 in #help
Changing color of MenuItem
No description
6 replies
CC#
Created by Donut5162 on 11/2/2023 in #help
❔ Publishing project
Hello, I am trying to publish a WPF project with NuGet dependencies. I am trying to publish to a single executable. I can publish it in visual studio and get a lightweight exe but it requires a few other DLLs. I can use the command line to publish to a single file but it is very large; the
--self-contained
--self-contained
flag is necessary for this, but it seems to include the .NET runtume in the executable. I would like to avoid this to reduce size since i believe windows comes with the runtime already. Any ideas?
24 replies
CC#
Created by Donut5162 on 7/29/2023 in #help
WPF MenuItems
2 replies
CC#
Created by Donut5162 on 7/27/2023 in #help
❔ WPF ListView with LinkedList
Hello, I have a ListView/GridView that is binded to a LinkedList. When I use the SelectedItem property of my ListView, it returns the value T of the LinkedListNode that is selected, and not the LinkedListNode itself, which is what I want. How do I get the LinkedListNode? I could just use the Find() method on my LinkedList with the T value to get the node I want, but I would like to avoid this as it is a linear time operation. Any help would be greatly appreciated!
9 replies
CC#
Created by Donut5162 on 7/25/2023 in #help
❔ Closing media with MediaPlayer
Hello, I am trying to make an audio player that also allows the user to edit tag metadata using TagLib#. When the user inputs their desired changes to the tag and clicks confirm, it should close the media, save the changes to the file, then open the media again. The problem is that Close() seems to asynchronously close the media player, so by the time it is trying to save the changes to the file, the file sometimes is still being closed and is therefore in use by that other process, causing the save to fail. There does not seem to be a 'MediaClosed' event for the MediaPlayer class, even though there is a 'MediaOpened' event. If there was, I would use that. I cannot use 'await', either. Any ideas how I can go about this?
2 replies
CC#
Created by Donut5162 on 7/24/2023 in #help
Dockpanel vs Stackpanel
4 replies