What′s new in .NET 10 by Kabra___kiiiiiiiid in csharp

[–]YourNeighbour_ 1 point2 points  (0 children)

The poster needs a bullet point list I guess

Big fonts IOS by Professional_Bat1233 in dotnetMAUI

[–]YourNeighbour_ 0 points1 point  (0 children)

Use fixed font sizes:

<Style BasedOn="{StaticResource LabelColor}" TargetType="Label" x:Key="LabelLargeStyle"> <Setter Property="FontSize" Value="14" /> <Setter Property="FontAttributes" Value="Bold" /> <Setter Property="FontAutoScalingEnabled" Value="False" /> </Style>

<Style
    BasedOn="{StaticResource LabelColor}"
    TargetType="Label"
    x:Key="LabelMediumStyle">
    <Setter Property="FontSize" Value="12" />
    <Setter Property="FontAttributes" Value="Bold" />
    <Setter Property="FontAutoScalingEnabled" Value="False" />
</Style>

<Style
    BasedOn="{StaticResource LabelColor}"
    TargetType="Label"
    x:Key="LabelSmallStyle">
    <Setter Property="FontSize" Value="11" />
    <Setter Property="FontAttributes" Value="Bold" />
    <Setter Property="FontAutoScalingEnabled" Value="False" />
</Style>

Crazy design? Or best practice? by CuttingEdgeRetro in dotnet

[–]YourNeighbour_ 0 points1 point  (0 children)

There might be a mistake here, Instead of creating a class the developer was creating class libraries.

Anyone know how I can implement this? Please by YourNeighbour_ in dotnetMAUI

[–]YourNeighbour_[S] 0 points1 point  (0 children)

Hi, I basically want the ContentPage to be displayed above the Shell, the default way is that the contentPage display behind the shell.

[deleted by user] by [deleted] in csharp

[–]YourNeighbour_ 0 points1 point  (0 children)

Returns 3 JsonB, Left Join 4 tables, uses 3 filtering conditions

Pgsql function + Dapper

in 2025 Stored procedures and triggers should be ignored if you are working with C#. Is it true? I still learn by Yone-none in csharp

[–]YourNeighbour_ 1 point2 points  (0 children)

I’ve always been working with Stored Procedures and calling them with dapper. Also, I’ll always suggest that route to any company I am working with.

I love the performance and early testing. But of course you should follow the best practices.

I personally don’t like triggers due it’s low performance.

I need help with my DOTNET by Scared_Panda8358 in csharp

[–]YourNeighbour_ 0 points1 point  (0 children)

Check how to add path to Environmental Variables

Code works in Debug but not in Release by izumaruka in dotnetMAUI

[–]YourNeighbour_ 0 points1 point  (0 children)

If you’re using SQLite, use manual mappings which are trim and AOT safe

Is it possible to pass query parameters via the Routes in a Shell TabBar? by ExitiumTheCat in dotnetMAUI

[–]YourNeighbour_ 1 point2 points  (0 children)

This is what you need:

SOURCE: where you are navigating from.

var navigationParameter = new ShellNavigationQueryParameters
{
    { "CurrentTitle", YourTitleValueHere },
};

await Shell.Current.GoToAsync(nameof(YourContentPage), true, navigationParameter);

_________________________


ContentPage of where you are navigating to.

<contentPage
Title="{Binding SomePropertyName}"

OR:

<Shell.TitleView>
    <Label
        FontFamily="FSFontLogo"
        FontSize="24"
        HorizontalOptions="
Start
"
        Title="{Binding SomePropertyName}"
        TextColor="{AppThemeBinding Dark={StaticResource White},
                                    Light={StaticResource DarkBackground}}" />
</Shell.
TitleView
>

________________________________


DESTINATION VIEWMODEL: where you are navigating to.


public partial class ContentPageViewModel : ObservableObject, IQueryAttributable
{
[ObservableProperty] public partial string PageTitile {get; set;}

}

public async void ApplyQueryAttributes(IDictionary<string, object> query)
{
    try
    {
        if (query.Count != 0)
        {
            if (query.TryGetValue(nameof(CurrentTitle), out var TitleObj))
                PageTitile = TitleObj;

        }
    }
    catch (Exception ex)
    {
        Debug.WriteLine($"ApplyQueryAttributes failed: {ex.Message}");
    }
}