Elio
Garbage Management wpf
Hi, I'd like to know how to manage process memory in my software. Here is some code that has a constructor with a
modalNavigationStore
parameter, which is a singleton that I never dispose of. I'd like to know if I need to set _modalNavigationStore = null
to ensure proper disposal and garbage collection when i'm done with my service ?
24 replies
Project Installer
Hi, i've created a .Net 8.0 Wpf application and i'd like to know which project installer i should choose between wix Toolsets and Microsoft Visual Studio Installer Projects 2022 ? It seems likes Visual Studio Installer Projects 2022 are more .net Framework app oriented.
27 replies
Visualizer XAML
Hi, i've created my own ToggleButton Control and i was wondering how to remove the Cannot find resource named <Resource name>. error in the xaml vizualizer ?
Because it can display my control on runtime and even in xaml vizualizer but it bother me to see this ghost error.
here the code if it can help : https://paste.mod.gg/zaxjipozqilv/4
2 replies
✅ JSON Deserialize Derived Class
Hi, i'm struggling to deserialize my object with the Newtonsoft.Json Librairy. I've a collection of
Step
named Steps
which can be a Stepspecial
or Stepnormal
. I'm trying to write my JsonConverter to deserialize the collection of Step
but when i try to deserialize i keep getting the stack overflow error because jObject.ToObject call back ReadJson
:
Any idea how to solve this and write a good ReadJson
method ? i've thought about the populate
method but not sure this is the good way of doing it.61 replies
SQLITE EFcore saving value
Hi, i'm working on a project which have a SQLITE database. I'm using EFcore to managed it. I want to know if there is a way to automatically add/remove/update by tracking or idk all the variable in my list Widths.
Basically i want to call a methods
Save
that will add thickness if not added or add/remove/update elements in width a if thickness i already in the database.
57 replies
Custom ToggleButon WPF
https://paste.mod.gg/siztgxijeavn/1
Hello, i'm trying to make my own togglebutton because i want it to have the property
IscheckedLeft
that allow me to easily switch the side of the checked value of my button. I've almost done it but i can't find a way to change my storyboard depends of IscheckedLeft
. Basically i would like to
Set this if IscheckedLeft
= false
and Set this if IscheckedLeft
= true
My problem there is if i use a converter the following error is triggered "Cannot freeze this Storyboard timeline tree for use across threads".
Have you any idea how i could do this ?1 replies
✅ Deploying WPF APP
Hi, i'm a bit lost with all the informations i've found like .net Framework, .net Runtime, Publish ClickOnce etc. I'd like to have some help to deploy my wpf app.
To summ up i've developped an wpf app which :
- Use .Net 8 Framework
- Target Windows 10 .0.17763
This app is destinated to be set on a computer which isn't connected to Internet by using a usb key. So basically i thought about an installer which include the framework if needed to download and have all the stuff related to my app to set everything on the offline computer.
How i'm am supposed to do ? Do i need to create an installer by myself or the publish tool on visual studio is supposed to work if well configured ?
49 replies
MVVM TOOLKIT SetProtperty
Hello, i'm trying to had a decimal number in my textbox but i can't add a
.
or ,
to write my decimal number.
here is the declaration of my property that i bind to my textbox.
Do i need to link my textbox to a string and then i parse this string to affect the value to RollPosition ?7 replies
✅ RelayCommand CanExecute MVVM
Hi, I'm using this nuget
CommunityToolkit.Mvvm.Input
to add my relaycommand.
i've set CanExecute this way =>
AddThickCommand = new RelayCommand(AddThickCommand_Execute, () => CanAddThickness);
My problem there is that canexecute is trigger only when i declare AddThickCommand
and canexecute is never raised again even if the boolean CanAddThickness
change.
I'd like to update canexecute each time CanAddThickness
change to enable or not the button. Any idea why this don't work with this package ?10 replies
✅ WPF IEnumerable PropertyChanged()
Hi, Any idea why my IEnumerable variable isn't refreshed even when the Onpropertychanged is triggered ?
Here is the code : https://paste.mod.gg/xucezzpuabkj/3
note that the viewmodel is correctly bind to the view.
4 replies