Donut5162
Donut5162
CC#
Created by Donut5162 on 11/25/2023 in #help
Changing color of MenuItem
it doesnt do the edges
6 replies
CC#
Created by Donut5162 on 11/25/2023 in #help
Changing color of MenuItem
I changed the background of MenuItem and that's how i got what's in the screenshot above
6 replies
CC#
Created by Donut5162 on 11/2/2023 in #help
❔ Publishing project
yeah
24 replies
CC#
Created by Donut5162 on 11/2/2023 in #help
❔ Publishing project
well, it works on my machine at least...
24 replies
CC#
Created by Donut5162 on 11/2/2023 in #help
❔ Publishing project
it's a single file and less than a megabyte
24 replies
CC#
Created by Donut5162 on 11/2/2023 in #help
❔ Publishing project
oh shoot, adding --self-contained=false actually worked
24 replies
CC#
Created by Donut5162 on 11/2/2023 in #help
❔ Publishing project
i will look into it, thanks 👍
24 replies
CC#
Created by Donut5162 on 11/2/2023 in #help
❔ Publishing project
I can do ClickOnce, I would have liked to avoid using an installer but if that's the best bet i guess it can't be helped
24 replies
CC#
Created by Donut5162 on 11/2/2023 in #help
❔ Publishing project
oh okay
24 replies
CC#
Created by Donut5162 on 11/2/2023 in #help
❔ Publishing project
.NET 6.0-windows
24 replies
CC#
Created by Donut5162 on 11/2/2023 in #help
❔ Publishing project
unfortuante
24 replies
CC#
Created by Donut5162 on 11/2/2023 in #help
❔ Publishing project
is .NET backwards compatible with older versions?
24 replies
CC#
Created by Donut5162 on 7/29/2023 in #help
WPF MenuItems
Okay nevermind, for some reason Windows thinks right-handed people get this ^ and left handed people get menu items that are correctly aligned for WPF apps. This is a solution I found on stackoverflow in case anyone is curious:
private static void SetDropDownMenuToBeRightAligned() {
var menuDropAlignmentField = typeof(SystemParameters).GetField("_menuDropAlignment", BindingFlags.NonPublic | BindingFlags.Static);
Action setAlignmentValue = () =>
{
if (SystemParameters.MenuDropAlignment && menuDropAlignmentField != null) menuDropAlignmentField.SetValue(null, false);
};

setAlignmentValue();

SystemParameters.StaticPropertyChanged += (sender, e) =>
{
setAlignmentValue();
};
}
private static void SetDropDownMenuToBeRightAligned() {
var menuDropAlignmentField = typeof(SystemParameters).GetField("_menuDropAlignment", BindingFlags.NonPublic | BindingFlags.Static);
Action setAlignmentValue = () =>
{
if (SystemParameters.MenuDropAlignment && menuDropAlignmentField != null) menuDropAlignmentField.SetValue(null, false);
};

setAlignmentValue();

SystemParameters.StaticPropertyChanged += (sender, e) =>
{
setAlignmentValue();
};
}
2 replies
CC#
Created by Donut5162 on 7/27/2023 in #help
❔ WPF ListView with LinkedList
Yeah. I'll try to do that. Thanks for your help
9 replies
CC#
Created by Donut5162 on 7/27/2023 in #help
❔ WPF ListView with LinkedList
Well not really, I'm trying to make a song playlist editor. A linked list would be good for adding/removing songs at any position in constant time, and for that i would need the node itself
9 replies
CC#
Created by Donut5162 on 7/27/2023 in #help
❔ WPF ListView with LinkedList
(with the enumerator returning the node instead of the T value)
9 replies
CC#
Created by Donut5162 on 7/27/2023 in #help
❔ WPF ListView with LinkedList
Would making my own linked list class that implements IEnumerable work?
9 replies
CC#
Created by Donut5162 on 7/24/2023 in #help
Dockpanel vs Stackpanel
Thanks, this makes much more sense now
4 replies