XE SparkyCracked
XE SparkyCracked
CC#
Created by XE SparkyCracked on 2/7/2025 in #help
How do I "pre-load" a view model
Thank you, all this information is very helpful. I will attempt both and see which one works. Appreciate it
8 replies
CC#
Created by XE SparkyCracked on 2/7/2025 in #help
How do I "pre-load" a view model
I’d appreciate any suggestions or best practices on how to structure this properly! Thanks in advance.
8 replies
CC#
Created by XE SparkyCracked on 2/7/2025 in #help
How do I "pre-load" a view model
Here’s the relevant XAML snippet for context:
c#
<Grid x:Name="LoadingOverlay" Grid.Row="1">
<Grid.Style>
<Style TargetType="Grid">
<Setter Property="Visibility" Value="Collapsed"/>
<Style.Triggers>
<DataTrigger Binding="{Binding ViewSelector}" Value="4">
<Setter Property="Visibility" Value="Visible"/>
</DataTrigger>
</Style.Triggers>
</Style>
</Grid.Style>
<Grid Background="#80000000">
<StackPanel HorizontalAlignment="Center" VerticalAlignment="Center">
<TextBlock Text="Loading..." Foreground="White" FontSize="16" Margin="0,10"/>
<ProgressBar IsIndeterminate="True" Width="200" Height="20"/>
</StackPanel>
</Grid>
</Grid>
c#
<Grid x:Name="LoadingOverlay" Grid.Row="1">
<Grid.Style>
<Style TargetType="Grid">
<Setter Property="Visibility" Value="Collapsed"/>
<Style.Triggers>
<DataTrigger Binding="{Binding ViewSelector}" Value="4">
<Setter Property="Visibility" Value="Visible"/>
</DataTrigger>
</Style.Triggers>
</Style>
</Grid.Style>
<Grid Background="#80000000">
<StackPanel HorizontalAlignment="Center" VerticalAlignment="Center">
<TextBlock Text="Loading..." Foreground="White" FontSize="16" Margin="0,10"/>
<ProgressBar IsIndeterminate="True" Width="200" Height="20"/>
</StackPanel>
</Grid>
</Grid>
8 replies
CC#
Created by Faker on 1/18/2025 in #help
when to use var keyword and when to use data type itself
Ohh ok got it, thank you I thought it was some complex way the computer reads variables. mb
31 replies
CC#
Created by Faker on 1/18/2025 in #help
when to use var keyword and when to use data type itself
Sorry I'm just reading this now, cause I have the same question. What do you mean read from the right hand side?
31 replies
CC#
Created by XE SparkyCracked on 1/22/2025 in #help
Threading issues, settter with ObservableCollection and ListCollectionView
It gets called in my xaml.cs file
c#
public partial class DashboardWindow : Window
{
ViewModel viewModel = new();
// unrelated code
}
c#
public partial class DashboardWindow : Window
{
ViewModel viewModel = new();
// unrelated code
}
5 replies
CC#
Created by XE SparkyCracked on 1/22/2025 in #help
Threading issues, settter with ObservableCollection and ListCollectionView
It's just my view model:
c#
public ViewModel()
{
// Code here
DisplayList = new ObservableCollection<DisplayError>();
_DisplayListView = new ListCollectionView(_DisplayList)
{
Filter = DisplayErrorFilter
};
// More code
}
c#
public ViewModel()
{
// Code here
DisplayList = new ObservableCollection<DisplayError>();
_DisplayListView = new ListCollectionView(_DisplayList)
{
Filter = DisplayErrorFilter
};
// More code
}
5 replies
CC#
Created by Abdesol on 7/4/2024 in #help
standard output from Process not giving any output for certain commands
I'll def look into it as soon as I have some time (my git profile is even looking horrendous lmao)
82 replies
CC#
Created by Abdesol on 7/4/2024 in #help
standard output from Process not giving any output for certain commands
Yo wassup man. Yeah it's such a nieche issue. I honestly haven't even played around with this recently. I've been so busy it's crazy
82 replies
CC#
Created by Abdesol on 7/4/2024 in #help
standard output from Process not giving any output for certain commands
i capped myself to 45 min yesterday on working on it, still at the same place. Will look into it today again.
82 replies
CC#
Created by Abdesol on 7/4/2024 in #help
standard output from Process not giving any output for certain commands
Yoo wassup
82 replies
CC#
Created by Abdesol on 7/4/2024 in #help
standard output from Process not giving any output for certain commands
Ok @Abdesol I can't lie, it may take me some time to figure this out. I managed to get it to the point where it exits the cloning process when done and waits for input again by itself but the actual printing of output is a little tougher. I don't understand the reason it is bombing out as of yet
82 replies
CC#
Created by Abdesol on 7/4/2024 in #help
standard output from Process not giving any output for certain commands
@Abdesol Some progress... I've located a potential issue where the output capturing from the process in C# is not handling the asynchronous nature of the git clone operation correctly. It's super weird so I am gonna try see if I can read the outputs properly and prevent early termination of the process (I mean git still clones cause my massive project managed to clone so it works which is good)
82 replies
CC#
Created by Abdesol on 7/4/2024 in #help
standard output from Process not giving any output for certain commands
Ok cool
82 replies
CC#
Created by Abdesol on 7/4/2024 in #help
standard output from Process not giving any output for certain commands
You can use the above link
82 replies
CC#
Created by Abdesol on 7/4/2024 in #help
standard output from Process not giving any output for certain commands
$code
82 replies
CC#
Created by Abdesol on 7/4/2024 in #help
standard output from Process not giving any output for certain commands
Ohh fair, if you comfortable with that...
82 replies
CC#
Created by Abdesol on 7/4/2024 in #help
standard output from Process not giving any output for certain commands
For me I want to see if you ever have more than that one in your code at any point. So when you step in your code, once you print out 'Cloning into...' hover over the variable and see what it's contents are
82 replies
CC#
Created by Abdesol on 7/4/2024 in #help
standard output from Process not giving any output for certain commands
I've recently been diving deep into tasks and threading so yeah
82 replies
CC#
Created by Abdesol on 7/4/2024 in #help
standard output from Process not giving any output for certain commands
Here is some documentation on race conditions
82 replies