DaClownie
DaClownie
CC#
Created by DaClownie on 9/1/2024 in #help
Unable to get tabs to show after initial login screen for MAUI app
Oh I forgot, the mention, that janky "MainPage" link at the bottom of the first screenshot will actually navigate me back to the MainPage
2 replies
CC#
Created by DaClownie on 8/26/2024 in #help
✅ How to access specific fields from an [ObservableProperty] ObservableCollection<Object>?
forging along. If I get to the end and have time, i'll dig into the observable property on the collection issue, but not a big deal atm
227 replies
CC#
Created by DaClownie on 8/26/2024 in #help
✅ How to access specific fields from an [ObservableProperty] ObservableCollection<Object>?
Got that resolved now a well
227 replies
CC#
Created by DaClownie on 8/26/2024 in #help
✅ How to access specific fields from an [ObservableProperty] ObservableCollection<Object>?
My next issue is handling popups, but my google searches are showing that it might in fact be a bug in MAUI with iOS/MacOS, otherwise though I'm cruising along at the moment
227 replies
CC#
Created by DaClownie on 8/26/2024 in #help
✅ How to access specific fields from an [ObservableProperty] ObservableCollection<Object>?
Yea the only change I made to make everything display was add [ObservableProperty]. Weird right? lol
227 replies
CC#
Created by DaClownie on 8/26/2024 in #help
✅ How to access specific fields from an [ObservableProperty] ObservableCollection<Object>?
I know you had mentioned that it was already Observable and not necessary, but I went through all of the breakpoints, saw that the method was being called, the list was being populated, the list was being passed to the ObservableCollection<Term> Terms but it just wasn't drawing on the UI. For shits and giggles I went back to this just to see if it changed anything (thinking it wouldn't, but eliminating all things) and it worked.
227 replies
CC#
Created by DaClownie on 8/26/2024 in #help
✅ How to access specific fields from an [ObservableProperty] ObservableCollection<Object>?
I could not get my interface to update unless I changed back to this:
[ObservableProperty]
private ObservableCollection<Term> _terms;
[ObservableProperty]
private ObservableCollection<Term> _terms;
227 replies
CC#
Created by DaClownie on 8/26/2024 in #help
✅ How to access specific fields from an [ObservableProperty] ObservableCollection<Object>?
Interestingly enough
227 replies
CC#
Created by DaClownie on 8/26/2024 in #help
✅ How to access specific fields from an [ObservableProperty] ObservableCollection<Object>?
Ok, I got everything working
227 replies
CC#
Created by DaClownie on 8/26/2024 in #help
✅ How to access specific fields from an [ObservableProperty] ObservableCollection<Object>?
Been taking a lot of time to read docs and things to understand the guidance better. Don’t wanna just copy it and not understand what it’s doing
227 replies
CC#
Created by DaClownie on 8/26/2024 in #help
✅ How to access specific fields from an [ObservableProperty] ObservableCollection<Object>?
Very cool, greatly appreciated
227 replies
CC#
Created by DaClownie on 8/26/2024 in #help
✅ How to access specific fields from an [ObservableProperty] ObservableCollection<Object>?
I’ve been up close to 24 hours :kekw:
227 replies
CC#
Created by DaClownie on 8/26/2024 in #help
✅ How to access specific fields from an [ObservableProperty] ObservableCollection<Object>?
I should have noticed from the color coding from your visual studio screenshot
227 replies
CC#
Created by DaClownie on 8/26/2024 in #help
✅ How to access specific fields from an [ObservableProperty] ObservableCollection<Object>?
Ok, I’m about to drive home but I’ll take a quick stab at it before I go to bed and see if I can’t get it working like we want
227 replies
CC#
Created by DaClownie on 8/26/2024 in #help
✅ How to access specific fields from an [ObservableProperty] ObservableCollection<Object>?
I couldn’t call the TermsViewModel.OnLoaded. Rider threw an error because it wasn’t a static method in the VM
227 replies
CC#
Created by DaClownie on 8/26/2024 in #help
✅ How to access specific fields from an [ObservableProperty] ObservableCollection<Object>?
Where do I actually call the ContentPage_Loaded method, and what am I using for the sender and args when I do?
227 replies
CC#
Created by DaClownie on 8/26/2024 in #help
✅ How to access specific fields from an [ObservableProperty] ObservableCollection<Object>?
I can probably remove the whole var term thing there and make that a single line, lets see if it populates my terms first
227 replies
CC#
Created by DaClownie on 8/26/2024 in #help
✅ How to access specific fields from an [ObservableProperty] ObservableCollection<Object>?
Now everything seems to be happy?
227 replies
CC#
Created by DaClownie on 8/26/2024 in #help
✅ How to access specific fields from an [ObservableProperty] ObservableCollection<Object>?
Ok... so I had to move `(TermService termService) out of the primary constructor and make this:
public partial class TermsViewModel : BaseViewModel
{
private static TermService _termService;
public TermsViewModel(TermService termService)
{
_termService = termService;
}

public static async Task OnLoaded()
{
var term = await _termService.GetTermList();
Terms = new ObservableCollection<Term>(term);
}
public partial class TermsViewModel : BaseViewModel
{
private static TermService _termService;
public TermsViewModel(TermService termService)
{
_termService = termService;
}

public static async Task OnLoaded()
{
var term = await _termService.GetTermList();
Terms = new ObservableCollection<Term>(term);
}
227 replies
CC#
Created by DaClownie on 8/26/2024 in #help
✅ How to access specific fields from an [ObservableProperty] ObservableCollection<Object>?
I'm going in a loop :kek:
227 replies