iskander
iskander
CC#
Created by iskander on 1/6/2025 in #help
✅ My MAUI android app keeps hitting a breakpoint. but only in debug mode.
ok i fixed by just moving the whole solution to another folder, make another solution with the same name and copy pasting the project files back :picard_facepalm:
8 replies
CC#
Created by iskander on 1/6/2025 in #help
✅ My MAUI android app keeps hitting a breakpoint. but only in debug mode.
UPDATE: turns out if i hit continue a bunch of times the app keeps running. it seems like the breakpoint hit everytime a view recomputes its size for one reason or another...
8 replies
CC#
Created by iskander on 1/6/2025 in #help
✅ My MAUI android app keeps hitting a breakpoint. but only in debug mode.
so i got the idea of just removing the old app and replacing it with a new MAUI project with the same name in the same solution file. long and behold the issue persists 🫠.
8 replies
CC#
Created by iskander on 1/6/2025 in #help
✅ My MAUI android app keeps hitting a breakpoint. but only in debug mode.
-as i said before if i launch an instance of the app it works fine. so theoretically i could attach the debugger after the app launches 🤔 but it sounds like a workaround to a problem that might bite me in the ass later
8 replies
CC#
Created by iskander on 1/6/2025 in #help
✅ My MAUI android app keeps hitting a breakpoint. but only in debug mode.
notes: -the issue only occurs when i launch the app in the debugger mode. hitting continue doesnt do anything. if i just start a new instance of the app it works all fine and dandy just like expected...
8 replies
CC#
Created by iskander on 1/6/2025 in #help
✅ My MAUI android app keeps hitting a breakpoint. but only in debug mode.
what i've tried: -i tried to isolate the issue to a specific piece of code. i first started by loaded pages one at a time before just making a new page with nothing of note in it. and the issue still persists. i've checked and this is the only piece of code that gets ran that i authored. return new Window(new EmptyUselessClass()); -i tried to launch the app in my android phone but the issue is the same. so the emulator is not to blame here -i tried to make a whole new project and also run previous projects and the all run fine. this issue only exist in this damned project :(
8 replies
CC#
Created by iskander on 1/6/2025 in #help
✅ My MAUI android app keeps hitting a breakpoint. but only in debug mode.
No description
8 replies
CC#
Created by iskander on 12/28/2024 in #help
✅ how should I deal with common/similar data types between the backend and front?
ah good to know. thanks a lot!
12 replies
CC#
Created by iskander on 12/28/2024 in #help
✅ how should I deal with common/similar data types between the backend and front?
oh yeah for sure but im still in the "god please just work" phase of the project. i will put in more thought for this in the future 😅
12 replies
CC#
Created by iskander on 12/28/2024 in #help
✅ how should I deal with common/similar data types between the backend and front?
im not the greatest with names either but i was thinking i'd just name it BuyMe.Common 😅 thanks a lot for your help! that does seem a whole lot more elegant then just ctrl+tab'ing between files lol
12 replies
CC#
Created by iskander on 1/19/2024 in #help
✅ (Avalonia) i dont get data binding
oh thanks for the heads up!
7 replies
CC#
Created by iskander on 1/19/2024 in #help
✅ (Avalonia) i dont get data binding
nvm my issue was my stupidity XD forgot to set the data context of the window in the app.axaml.cs file
desktop.MainWindow = new MainWindow
{
DataContext = new MainWindowViewModel()
};
desktop.MainWindow = new MainWindow
{
DataContext = new MainWindowViewModel()
};
7 replies
CC#
Created by iskander on 1/19/2024 in #help
✅ (Avalonia) i dont get data binding
//ToDoListView.axaml
<UserControl //boiler plate stff
x:Class="testAvaloniaApplication1.Views.ToDoListView"
x:DataType="vm:ToDoListViewModel">
<DockPanel>
<Button DockPanel.Dock="Bottom"
HorizontalAlignment="Stretch"
HorizontalContentAlignment="Center"
Content="Add an item"/>
<ItemsControl ItemsSource="{Binding ListItems}">
<ItemsControl.ItemTemplate>
<DataTemplate>
<CheckBox Margin="4"
IsChecked="{Binding IsChecked}"
Content="{Binding Description}"/>
</DataTemplate>
</ItemsControl.ItemTemplate>
</ItemsControl>
</DockPanel>
</UserControl>
//ToDoListView.axaml
<UserControl //boiler plate stff
x:Class="testAvaloniaApplication1.Views.ToDoListView"
x:DataType="vm:ToDoListViewModel">
<DockPanel>
<Button DockPanel.Dock="Bottom"
HorizontalAlignment="Stretch"
HorizontalContentAlignment="Center"
Content="Add an item"/>
<ItemsControl ItemsSource="{Binding ListItems}">
<ItemsControl.ItemTemplate>
<DataTemplate>
<CheckBox Margin="4"
IsChecked="{Binding IsChecked}"
Content="{Binding Description}"/>
</DataTemplate>
</ItemsControl.ItemTemplate>
</ItemsControl>
</DockPanel>
</UserControl>
using testAvaloniaApplication1.DataModels;

namespace testAvaloniaApplication1.ViewModels
{
public class MainWindowViewModel : ViewModelBase
{
//Depends on ToDoListServices
public ToDoListViewModel ToDoList { get; }
public MainWindowViewModel()
{
var service = new ToDoListService();
ToDoList = new ToDoListViewModel(service.GetItems());
}
}
}
using testAvaloniaApplication1.DataModels;

namespace testAvaloniaApplication1.ViewModels
{
public class MainWindowViewModel : ViewModelBase
{
//Depends on ToDoListServices
public ToDoListViewModel ToDoList { get; }
public MainWindowViewModel()
{
var service = new ToDoListService();
ToDoList = new ToDoListViewModel(service.GetItems());
}
}
}
using System.Collections.Generic;
using System.Collections.ObjectModel;
using testAvaloniaApplication1.DataModels;

namespace testAvaloniaApplication1.ViewModels;

public class ToDoListViewModel : ViewModelBase
{
public ObservableCollection<ToDoItem> ListItems { get; set; }
public ToDoListViewModel(IEnumerable<ToDoItem> items)
{
ListItems = new ObservableCollection<ToDoItem>(items);
}
}
using System.Collections.Generic;
using System.Collections.ObjectModel;
using testAvaloniaApplication1.DataModels;

namespace testAvaloniaApplication1.ViewModels;

public class ToDoListViewModel : ViewModelBase
{
public ObservableCollection<ToDoItem> ListItems { get; set; }
public ToDoListViewModel(IEnumerable<ToDoItem> items)
{
ListItems = new ObservableCollection<ToDoItem>(items);
}
}
7 replies
CC#
Created by iskander on 8/8/2023 in #help
✅ TcpClient is connected to TcpListener but TcpListener isn't connected...
i just checked and the remote client is indeed connected. i appreciate your help 🙏
26 replies
CC#
Created by iskander on 8/8/2023 in #help
✅ TcpClient is connected to TcpListener but TcpListener isn't connected...
yep that's probably it! thanks a lot kouhai 😅
26 replies
CC#
Created by iskander on 8/8/2023 in #help
✅ TcpClient is connected to TcpListener but TcpListener isn't connected...
oh yeah that makes sense! the tcplisten cant be connected to it's own socket
26 replies
CC#
Created by iskander on 8/8/2023 in #help
✅ TcpClient is connected to TcpListener but TcpListener isn't connected...
hmmm but dont you need both sockets to be connected to send information?
26 replies
CC#
Created by iskander on 8/8/2023 in #help
✅ TcpClient is connected to TcpListener but TcpListener isn't connected...
so yeah connected is still false 🫤
26 replies
CC#
Created by iskander on 8/8/2023 in #help
✅ TcpClient is connected to TcpListener but TcpListener isn't connected...
26 replies
CC#
Created by iskander on 8/8/2023 in #help
✅ TcpClient is connected to TcpListener but TcpListener isn't connected...
just a sec 😅
26 replies