Nacho Man Randy Cabbage
Nacho Man Randy Cabbage
CC#
Created by Nacho Man Randy Cabbage on 7/12/2024 in #help
Winforms - cursor doesn't stay as "WaitCursor" in long running async method
?
4 replies
CC#
Created by Nacho Man Randy Cabbage on 7/11/2024 in #help
How does .Contains work inside of a .All()?
oh interesting. never heard of it before. thanks!
9 replies
CC#
Created by Nacho Man Randy Cabbage on 5/19/2024 in #help
Proper way to constantly log to file
That can work. Just need to add something to write the last log if the app completely crashes.
17 replies
CC#
Created by Nacho Man Randy Cabbage on 5/19/2024 in #help
Proper way to constantly log to file
Oh wait just read this "Instead, synchronously add log messages to an in-memory queue and have a background worker pull the messages out of the queue to do the asynchronous work of pushing data to SQL Server."
17 replies
CC#
Created by Nacho Man Randy Cabbage on 5/19/2024 in #help
Proper way to constantly log to file
Microsoft libraries are typically fine. We essentially copied this already for setting the log level in a config file and formatting the messages and all that. Am I missing where it talks about the actual logging process itself?
17 replies
CC#
Created by Nacho Man Randy Cabbage on 5/19/2024 in #help
Proper way to constantly log to file
Reading up on blockingcollection now. Sounds like it may be what I want?
17 replies
CC#
Created by Nacho Man Randy Cabbage on 5/19/2024 in #help
Proper way to constantly log to file
They actually do want to read logs sometimes while the app is running.
17 replies
CC#
Created by Nacho Man Randy Cabbage on 5/19/2024 in #help
Proper way to constantly log to file
Can't use any third party libraries unfortunately.
17 replies
CC#
Created by Nacho Man Randy Cabbage on 5/13/2024 in #help
Textblock is overlapping with combobox items (WPF)
Figured it out. A combobox's items are not set to stretch horizontally by default. Setting the items' HorizontalContentAlignment to Stretch fixes it
4 replies
CC#
Created by Nacho Man Randy Cabbage on 5/13/2024 in #help
Textblock is overlapping with combobox items (WPF)
Update: It happens when clicking on the blankspace to the right of any checkbox's text.
4 replies
CC#
Created by Nacho Man Randy Cabbage on 5/13/2024 in #help
Textblock is overlapping with combobox items (WPF)
The only thing I ever want visible on the non-pop up part of the combobox is "Show/Hide Columns".
4 replies
CC#
Created by Nacho Man Randy Cabbage on 5/3/2024 in #help
Binding DataGrid to DataTable. DataGrid's ItemSource is null on first load. - WPF
@SpReeD yeah I would love to use the toolkit, unfortunately this is an a massive older app relying on mvvmlight and just don't have the time to convert it all.
5 replies
CC#
Created by Nacho Man Randy Cabbage on 4/16/2024 in #help
Binding Dictionary to DataGrid (WPF)
Thanks! yeah that's pretty much what I ended up doing. works fine 🙂
3 replies
CC#
Created by Nacho Man Randy Cabbage on 2/28/2024 in #help
WPF: Bind to each value of a property generated via reflection in ObservableCollection
Oh jeez, yeah never really looked into Roslyn related things. Maybe that'll be the next thing I read up on
11 replies
CC#
Created by Nacho Man Randy Cabbage on 2/28/2024 in #help
WPF: Bind to each value of a property generated via reflection in ObservableCollection
I'd rather use an ItemTemplate and just bind to something to auto-create it all
11 replies
CC#
Created by Nacho Man Randy Cabbage on 2/28/2024 in #help
WPF: Bind to each value of a property generated via reflection in ObservableCollection
Have never done anything with source generators before, but I'm guessing that would just replace the reflection part? Would I still have to re-create the collection of properties every time I select a new object? Like if I listed out every property by hand in the xaml it would look something like
<Textblock Text="My Property" />
<TextBox Text={Binding SelectedObject.MyProperty" />
<Textblock Text="My Property" />
<TextBox Text={Binding SelectedObject.MyProperty" />
for every property
11 replies
CC#
Created by Nacho Man Randy Cabbage on 2/28/2024 in #help
WPF: Bind to each value of a property generated via reflection in ObservableCollection
What I have doesn't seem like a good way to refresh the data when I change the selected item. Looking for any help to make it better.
11 replies
CC#
Created by Nacho Man Randy Cabbage on 2/26/2024 in #help
Design for letting user select properties to write to a CSV file
sweet, will give this a shot, thank you
9 replies
CC#
Created by Nacho Man Randy Cabbage on 2/26/2024 in #help
Design for letting user select properties to write to a CSV file
yup
9 replies
CC#
Created by Nacho Man Randy Cabbage on 2/26/2024 in #help
Design for letting user select properties to write to a CSV file
hmm yeah they aren't all strings but they will be in teh end anyways
9 replies