![]() |
|
Announcing Experimental Mobile Blazor Bindings May update - Printable Version +- Sick Gaming (https://sickgaming.net) +-- Forum: Programming (https://sickgaming.net/forum-76.html) +--- Forum: C#, Visual Basic & .NET (https://sickgaming.net/forum-79.html) +--- Thread: Announcing Experimental Mobile Blazor Bindings May update (/thread-95254.html) |
Announcing Experimental Mobile Blazor Bindings May update - xSicKxBot - 05-26-2020 Announcing Experimental Mobile Blazor Bindings May update Eilon May 26th, 2020 It’s been a few months so it’s time for another update of Experimental Mobile Blazor Bindings! This release brings several bug fixes in the areas of CSS styling support, adding XML doc comments to common APIs, and several syntax improvements to common controls. Here are the major changes in this release:
Get started To get started with Experimental Mobile Blazor Bindings preview 3, install the .NET Core 3.1 SDK and then run the following command: Code: dotnet new -i Microsoft.MobileBlazorBindings.Templates::0.3.26-previewAnd then create your first project by running this command: Code: dotnet new mobileblazorbindings -o MyAppThat’s it! You can find additional docs and tutorials on https://docs.microsoft.com/mobile-blazor-bindings/. Upgrade an existing project To update an existing Mobile Blazor Bindings project please refer to the Migrate Mobile Blazor Bindings From Preview 2 to Preview 3 topic for full details. Updated components and docs Because most of the components in Mobile Blazor Bindings are based on Xamarin.Forms native controls, the components have been updated to Xamarin.Forms 4.5. For example, properties such as Code: Image.IsAnimationPlayingCode: Stepper.StepperPositionImprove Label and Button syntax Because one of the key motivators for building Mobile Blazor Bindings was to have patterns that were more familiar to web developers, the syntax for Label and Button components has been simplified and improved. In previous versions setting the text for a Label’s Span’s Text or a Button’s Text had to be done via a property setter: Code: <Button Text="Click me" ... />
...
<Button Text="@("Buy " + @items.Count + " items")" ... />Starting with Preview 3 you can use this simplified syntax that is more similar to web patterns: Code: <Button ...>Click me</Button>
...
<Button ...>Buy @items.Count items</Button>This change applies to Code: Button.TextCode: Span.TextSpeaking of Code: Span.TextCode: <Label FontSize="12"> <FormattedText> <FormattedString> <Spans> <Span Text="This text is large... " FontSize="50" /> <Span Text="and this is plain... " /> <Span Text="and this is green!" TextColor="Color.Green" /> </Spans> </FormattedString> </FormattedText>
</Label>And starting with Preview 3, the intermediate tags have all been removed: Code: <Label FontSize="12"> <Span FontSize="50">This text is large... </Span> <Span>and this is plain... </Span> <Span TextColor="Color.Green">and this is green!</Span>
</Label>CSS is a great way to style your application while keeping it separate from the layout and behavior. Check out the CSS Styles topic for more information on how to use CSS in your Mobile Blazor Bindings apps. There are three CSS-related improvements in this release:
More information: For more information please check out: Thank you to community blog posts! If you’d like to learn more, please check out these blog posts from community members: Thank you! What’s next? Let us know what you want! We’re listening to your feedback, which has been both plentiful and helpful! We’re also fixing bugs and adding new features. And you may have seen last week’s announcement for .NET Multi-platform App UI (.NET MAUI). As an experiment, what we find with Mobile Blazor Bindings will feed directly into the Blazor aspects of .NET MAUI so please share with us your thoughts on using Blazor with .NET MAUI on this project’s repo or on .NET MAUI’s GitHub repo. This project will continue to take shape in large part due to your feedback, so please let us know your thoughts at the GitHub repo. P.S.: My apologies for the delay in this update. The realities of work-from-home (and stay-at-home parenting) meant that progress was extremely limited. I thank everyone for their patience, understanding, and support. You can always stay up-to-date by going to the GitHub repo and using the latest builds, or reach me on Twitter @original_ejl. |