• Home
  • About Us
  • Contact Us
  • Disclaimer
  • Privacy Policy
  • Terms & Conditions
Flyy Tech
  • Home
  • Apple
  • Applications
    • Computers
    • Laptop
    • Microsoft
  • Security
  • Smartphone
  • Gaming
  • Entertainment
    • Literature
    • Cooking
    • Fitness
    • lifestyle
    • Music
    • Nature
    • Podcasts
    • Travel
    • Vlogs
  • Camera
  • Audio
No Result
View All Result
  • Home
  • Apple
  • Applications
    • Computers
    • Laptop
    • Microsoft
  • Security
  • Smartphone
  • Gaming
  • Entertainment
    • Literature
    • Cooking
    • Fitness
    • lifestyle
    • Music
    • Nature
    • Podcasts
    • Travel
    • Vlogs
  • Camera
  • Audio
No Result
View All Result
Flyy Tech
No Result
View All Result

Sands of MAUI: Issue #70

flyytech by flyytech
August 30, 2022
Home Applications
Share on FacebookShare on Twitter


Welcome to the Sands of MAUI—newsletter-style issues dedicated to bringing together latest .NET MAUI content relevant to developers.

A particle of sand—tiny and innocuous. But put a lot of sand particles together and we have something big—a force to reckon with. It is the smallest grains of sand that often add up to form massive beaches, dunes and deserts.

Most .NET developers are excited with .NET Multi-platform App UI (MAUI)—the evolution of modern .NET cross-platform developer experience. Going forward, developers should have
much more confidence in the technology stack and tools as .NET MAUI empowers native cross-platform solutions on both mobile and desktop.

While it may take a long flight to reach the sands of MAUI island, developer excitement around .NET MAUI is quite palpable in all the shared content. Like the grains of sand, every piece of news/article/documentation/video/tutorial/livestream contributes
towards developer knowledge in .NET MAUI and we grow a community/ecosystem willing to learn & help.

Sands of MAUI is a humble attempt to collect all the .NET MAUI awesomeness in one place. Here’s what is noteworthy for the week of August 29, 2022:

Dependency Injection in .NET MAUI

Dependency Injection (DI) in modern .NET is elegantly done and has been around for a while—for ASP.NET, Blazor and more. However, the .NET generic host builder pattern is new in .NET MAUI, and as such, DI may be relatively new for .NET MAUI developers.

While DI concepts are well established, not all service registrations/lifetimes are the same—James Montemagno produced a video breaking down the differences in .NET Dependency Injection.

There are a few ways handle injected service lifespan in Dependency Injection—Singleton, Transient and Scoped, with the first two being most commonly used. Singleton provides a true single instance of whatever is registered, while Transient is the
opposite—every request produces a fresh instance. Choosing which one to use depends on developer scenarios and application needs. Using a .NET MAUI app with a View and ViewModel combo as base, James took on explaining the differences in .NET
Dependency Injection.

While Singleton and Transient behave as expected, there are some nuanced conditions that might be trip-ups—kudos to James for producing a video that is on-point and explains the differences clearly.

Playing Audio in .NET MAUI

Need to play any kind of audio from your .NET MAUI app? Gerald Versluis and Shaun Lawrence have you covered with the
Plugin.Maui.Audio package, a one-stop shop to play just about anything. Shaun also wrote up a post on how to play audio from inside .NET MAUI apps,
complete with an adorable .NET Bot playing a Ukulele tune on a guitar—because why not?

To get started, developers have to pull in the Plugin in their .NET MAUI apps and register the AudioManager through Dependency Injection. With an instance of IAudioPlayer, the player can play audio files that are either embedded as a file in the app or
if pointed to an audio stream. Features like Play/Pause/Stop/Loop are built in, but the IAudioPlayer implements IDisposable—so developers should Dispose the player when done using it.

Cheers Shaun and Gerald for this straightforward but well-implemented audio player for all .NET MAUI apps—let there be music.

.NET MAUI To-Do List

.NET MAUI apps do not live in a silo—just like any other modern app, they would need to integrate with other systems, talk to APIs or communicate with web services. A common scenario for those invested in Microsoft technology stack is to have
client and server both in .NET—have .NET MAUI as the cross-platform client app and a .NET API backing it up on the server. Wouldn’t it be nice if there was an end-to-end tutorial for the whole picture?

Les Jackson has done just that with an epic video building both a .NET MAUI app and a backing .NET 6 API—both
in steps.

The long format video starts out with Les explaining the .NET MAUI basics, an app demo and walkthrough of corresponding architectures. Les then proceeds to build the .NET API backend with Entity Framework and full Create/Read/Update/Delete (CRUD)
operation support. Next up comes the .NET MAUI app built up over small steps—the UI, code-behind and integrating with the data service.

With excellent teaching skills, Les showcases how developers can achieve end-to-end goal with .NET and
.NET MAUI—cheers to learning.

Telerik UI for .NET MAUI Update

With .NET MAUI as a platform out for a few months now and developer tooling coming out of Preview, arguably a lot more developers are getting into the mix. And developer productivity needs a rich ecosystem.

Developers need UI ammunition to kick-start
their cross-platform journey or to modernize applications. Telerik UI for .NET MAUI is the most comprehensive UI component library featuring rich performant UI that runs seamlessly on mobile/desktop. A recent write-up shed light on the state of .NET MAUI and Telerik UI tooling.

The latest release of Telerik UI for .NET MAUI marked as 2.3.0, goes with the latest .NET MAUI release 6.0.424. Tooling is integrated with Visual Studio 2022—17.3 release version on Windows and 17.4 preview on MacOS. An integrated Toolbox keeps
all Telerik UI at hand and hooks are in place to speed up developer inner loop in the usual ways—Hot Reload and Live Visual Tree.

With open source real-world demo apps and solid docs, Telerik UI for .NET MAUI aims to make .NET MAUI developers
a little more productive and be able drop rich performant UI in cross-platform mobile/desktop apps.

.NET MAUI with Sonos

Sonos Inc. is an American manufacturer of audio products, with lineup of powered speakers, amplifiers and peripherals—like portable speakers, soundbars, sub-woofers and integrated components. Sonos speakers can be controlled with the Sonos app,
but let’s face it—you are a developer and you would rather build something custom through integrations with the Sonos API.

Turns out, .NET MAUI can help and Andreas Nesheim wrote up an article on how to control Sonos speakers through API integration within a .NET MAUI app.

Developers can start with a fresh .NET MAUI app and pull in the ByteDev.Sonos NuGet package—this plugin allows communications with Sonos speakers with commands like play/pause, next/previous track, volume up/down and adding songs to queue. Before
any integrations, developers need to find the IP of the Sonos speaker they’re trying to reach—the Sonos app can help.

Once configured, a SonosController class can expose all API in a a fluent asynchronous way—play, pause, next and more.
Andreas shows off how to pull this off from a simple .NET MAUI app—now you have one more reason to go grab a Sonos speaker.

That’s it for now.

We’ll see you next week with more awesome content relevant to .NET MAUI.

Cheers, developers!





Source_link

flyytech

flyytech

Next Post
Honor 70 – Unboxing – Coolsmartphone

Honor 70 - Unboxing - Coolsmartphone

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *

Recommended.

Defending against attacks on Azure AD: Goodbye firewall, hello identity protection

Defending against attacks on Azure AD: Goodbye firewall, hello identity protection

February 15, 2023
Twitter verified accounts will actually be verified; use multiple colors

Twitter verified accounts will actually be verified; use multiple colors

November 25, 2022

Trending.

Image Creator now live in select countries for Microsoft Bing and coming soon in Microsoft Edge

Image Creator now live in select countries for Microsoft Bing and coming soon in Microsoft Edge

October 23, 2022
Allen Parr’s false teaching examined. Why you should unfollow him.

Allen Parr’s false teaching examined. Why you should unfollow him.

September 24, 2022
Review: Zoom ZPC-1

Review: Zoom ZPC-1

January 28, 2023
Elden Ring best spells 1.08: Tier lists, sorceries, incantations, and locations

Elden Ring best spells 1.08: Tier lists, sorceries, incantations, and locations

January 14, 2023
CPU Benchmarks Hierarchy 2022: Processor Ranking Charts

CPU Benchmarks Hierarchy 2022: Processor Ranking Charts

September 11, 2022

Flyy Tech

Welcome to Flyy Tech The goal of Flyy Tech is to give you the absolute best news sources for any topic! Our topics are carefully curated and constantly updated as we know the web moves fast so we try to as well.

Follow Us

Categories

  • Apple
  • Applications
  • Audio
  • Camera
  • Computers
  • Cooking
  • Entertainment
  • Fitness
  • Gaming
  • Laptop
  • lifestyle
  • Literature
  • Microsoft
  • Music
  • Podcasts
  • Review
  • Security
  • Smartphone
  • Travel
  • Uncategorized
  • Vlogs

Site Links

  • Home
  • About Us
  • Contact Us
  • Disclaimer
  • Privacy Policy
  • Terms & Conditions

Recent News

Dynamics SL to Dynamics 365 Business Central Migration 2023

Dynamics SL to Dynamics 365 Business Central Migration 2023

March 31, 2023
BEC Fraudsters Expand to Snatch Real-World Goods in Commodities Twist

BEC Fraudsters Expand to Snatch Real-World Goods in Commodities Twist

March 31, 2023

Copyright © 2022 Flyytech.com | All Rights Reserved.

No Result
View All Result
  • Home
  • Apple
  • Applications
    • Computers
    • Laptop
    • Microsoft
  • Security
  • Smartphone
  • Gaming
  • Entertainment
    • Literature
    • Cooking
    • Fitness
    • lifestyle
    • Music
    • Nature
    • Podcasts
    • Travel
    • Vlogs

Copyright © 2022 Flyytech.com | All Rights Reserved.

What Are Cookies
We use cookies on our website to give you the most relevant experience by remembering your preferences and repeat visits. By clicking “Accept All”, you consent to the use of ALL the cookies. However, you may visit "Cookie Settings" to provide a controlled consent.
Cookie SettingsAccept All
Manage consent

Privacy Overview

This website uses cookies to improve your experience while you navigate through the website. Out of these, the cookies that are categorized as necessary are stored on your browser as they are essential for the working of basic functionalities of the website. We also use third-party cookies that help us analyze and understand how you use this website. These cookies will be stored in your browser only with your consent. You also have the option to opt-out of these cookies. But opting out of some of these cookies may affect your browsing experience.
Necessary
Always Enabled
Necessary cookies are absolutely essential for the website to function properly. These cookies ensure basic functionalities and security features of the website, anonymously.
CookieDurationDescription
cookielawinfo-checkbox-analytics11 monthsThis cookie is set by GDPR Cookie Consent plugin. The cookie is used to store the user consent for the cookies in the category "Analytics".
cookielawinfo-checkbox-functional11 monthsThe cookie is set by GDPR cookie consent to record the user consent for the cookies in the category "Functional".
cookielawinfo-checkbox-necessary11 monthsThis cookie is set by GDPR Cookie Consent plugin. The cookies is used to store the user consent for the cookies in the category "Necessary".
cookielawinfo-checkbox-others11 monthsThis cookie is set by GDPR Cookie Consent plugin. The cookie is used to store the user consent for the cookies in the category "Other.
cookielawinfo-checkbox-performance11 monthsThis cookie is set by GDPR Cookie Consent plugin. The cookie is used to store the user consent for the cookies in the category "Performance".
viewed_cookie_policy11 monthsThe cookie is set by the GDPR Cookie Consent plugin and is used to store whether or not user has consented to the use of cookies. It does not store any personal data.
Functional
Functional cookies help to perform certain functionalities like sharing the content of the website on social media platforms, collect feedbacks, and other third-party features.
Performance
Performance cookies are used to understand and analyze the key performance indexes of the website which helps in delivering a better user experience for the visitors.
Analytics
Analytical cookies are used to understand how visitors interact with the website. These cookies help provide information on metrics the number of visitors, bounce rate, traffic source, etc.
Advertisement
Advertisement cookies are used to provide visitors with relevant ads and marketing campaigns. These cookies track visitors across websites and collect information to provide customized ads.
Others
Other uncategorized cookies are those that are being analyzed and have not been classified into a category as yet.
SAVE & ACCEPT