intee_
intee_
CC#
Created by intee_ on 10/1/2024 in #help
✅ Deserialize JSON back into custom object
I just threw TaskList = on the front and it seems to be loading the json into my datagrid haha 😛
6 replies
CC#
Created by intee_ on 10/1/2024 in #help
✅ Deserialize JSON back into custom object
Oh, never mind. Got it! Thanks heaps mate, I never tried the <ObservableCollection<TaskItem>> I tried <ObservableCollection><TaskItem> -.-
6 replies
CC#
Created by intee_ on 10/1/2024 in #help
✅ Deserialize JSON back into custom object
Legend, thanks heaps mate! Is that going to create a new TaskList object or use the one that is being declared in the constructor above it? This is also in the constructor:
c#
TaskList = new ObservableCollection<TaskItem>();
c#
TaskList = new ObservableCollection<TaskItem>();
6 replies
CC#
Created by intee_ on 9/27/2024 in #help
✅ How does the button know what to do?
Legend man. thanks for all the help! It's making so much more sense now hahah..
39 replies
CC#
Created by intee_ on 9/27/2024 in #help
✅ How does the button know what to do?
Yeah, I'll keep defaults in mind from now on for sure haha. Thanks again!
39 replies
CC#
Created by intee_ on 9/27/2024 in #help
✅ How does the button know what to do?
I would never have figured that out haha.
39 replies
CC#
Created by intee_ on 9/27/2024 in #help
✅ How does the button know what to do?
Ahhh, thanks so much mate!
39 replies
CC#
Created by intee_ on 9/27/2024 in #help
✅ How does the button know what to do?
Ohh, so whenever I click set, I'm jsut losing focus.
39 replies
CC#
Created by intee_ on 9/27/2024 in #help
✅ How does the button know what to do?
That is about all I tried if I'm being honest though haha.
39 replies
CC#
Created by intee_ on 9/27/2024 in #help
✅ How does the button know what to do?
I tried putting it into a different grid as well (Within the main one, whatever it's called) and same thing.
39 replies
CC#
Created by intee_ on 9/27/2024 in #help
✅ How does the button know what to do?
Yeah, it's muscel memory still haha.
39 replies
CC#
Created by intee_ on 9/27/2024 in #help
✅ How does the button know what to do?
namespace NoGoogle_MVVM_Test.ViewModel {
class MainWindow_ViewModel
{
private string displayText;

public string DisplayText {
get { return displayText; }
set { displayText = value; }
}

}
}
namespace NoGoogle_MVVM_Test.ViewModel {
class MainWindow_ViewModel
{
private string displayText;

public string DisplayText {
get { return displayText; }
set { displayText = value; }
}

}
}
39 replies
CC#
Created by intee_ on 9/27/2024 in #help
✅ How does the button know what to do?
This is the base if it matters, but yeah NAmespace is wrong and I'm not inheriting it as far as I know.
namespace Basic_Tutorial_Rerun.MVVM {

internal class ViewModel_Base : INotifyPropertyChanged {

public event PropertyChangedEventHandler? PropertyChanged;

protected void OnPropertyChanged([CallerMemberName] string propertyName = null) {
PropertyChanged?.Invoke(this, new PropertyChangedEventArgs(propertyName));
}

}
}
namespace Basic_Tutorial_Rerun.MVVM {

internal class ViewModel_Base : INotifyPropertyChanged {

public event PropertyChangedEventHandler? PropertyChanged;

protected void OnPropertyChanged([CallerMemberName] string propertyName = null) {
PropertyChanged?.Invoke(this, new PropertyChangedEventArgs(propertyName));
}

}
}
39 replies
CC#
Created by intee_ on 9/27/2024 in #help
✅ How does the button know what to do?
I'm going to say no but not 100% sure. The only place I have an event is in the base
39 replies
CC#
Created by intee_ on 9/27/2024 in #help
✅ How does the button know what to do?
And I just checked, I haven't even changed my ViewModel bases namespace from another project I copied it from.
39 replies
CC#
Created by intee_ on 9/27/2024 in #help
✅ How does the button know what to do?
No description
39 replies
CC#
Created by intee_ on 9/27/2024 in #help
✅ How does the button know what to do?
I am using a base for my view mode that is using INotify but it's not being inherited anywhere
39 replies
CC#
Created by intee_ on 9/27/2024 in #help
✅ How does the button know what to do?
But it is working :\
39 replies
CC#
Created by intee_ on 9/27/2024 in #help
✅ Invoking an event on property changed (WPF)
I was looking at the MVVM toolkit before but figure I should understand what it actually does first haha
11 replies
CC#
Created by intee_ on 9/27/2024 in #help
✅ Invoking an event on property changed (WPF)
Thanks heaps mate, think I am just over thinking it too much!
11 replies