Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add support to Flutter style by Blazor engine #6267

Open
congzhangzh opened this issue Jul 17, 2021 · 4 comments
Open

Add support to Flutter style by Blazor engine #6267

congzhangzh opened this issue Jul 17, 2021 · 4 comments

Comments

@congzhangzh
Copy link

Is your feature request related to a problem? Please describe.
A clear and concise description of what the problem is. Ex. I'm always frustrated when [...]

No

Describe the solution you'd like
A clear and concise description of what you want to happen.

make avalonia more reative style, like flutter, which really improve productivity

@inject CounterState CounterState

<ContentView>
    <StackLayout>

        <StackLayout Margin="new Thickness(20)">
            <Label Text="@($"You pressed {CounterState.CurrentCount} times")" FontSize="30" />
            <Button Text="Increment from native" OnClick="@CounterState.IncrementCount" Padding="10" />
        </StackLayout>

        <BlazorWebView ContentRoot="WebUI/wwwroot" VerticalOptions="LayoutOptions.FillAndExpand">
            <FirstBlazorHybridApp.WebUI.App />
        </BlazorWebView>

    </StackLayout>
</ContentView>

@code {
    // initialization code
   // blablabla
}

https://devblogs.microsoft.com/aspnet/hybrid-blazor-apps-in-mobile-blazor-bindings-july-update/

@danroth27 please

Describe alternatives you've considered
A clear and concise description of any alternative solutions or features you've considered.
No

Additional context
Add any other context or screenshots about the feature request here.

@congzhangzh
Copy link
Author

MAUI the end of 2021 .net 6, MAUI with blazor style 2022 .net 7 or maybe 2023 .Net 8?

And then, .Net UI developer will be less and less then?

if mix avalonia with blazor, that maybe another story!

It’s really cool, will Microsoft give some help @nat @migueldeicaza

@maxkatz6
Copy link
Member

maxkatz6 commented Jul 17, 2021

Please, keep discussion in already created issue for alternative markup syntax. Alternative markup syntax proposal

@robloo
Copy link
Contributor

robloo commented Jul 17, 2021

#2502 (comment)

image

@robloo
Copy link
Contributor

robloo commented Jul 17, 2021

MAUI the end of 2021 .net 6, MAUI with blazor style 2022 .net 7 or maybe 2023 .Net 8?

Note that MAUI is going the MVU route with their own syntax and even changes to C# to support it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants