Закрыть
×
=0) { let js = text.slice(pos1, pos2); + '<\/' + "script" + '>'; arrText.push(js); // next pos1 = pos2; continue; } } } break; } return arrText; } function OpenDialog(parentDiv, urlContent) { parentDiv = document.getElementById('modal-background'); // new !!!!!!! parentDiv.appendChild(document.getElementById('modal-template')); document.getElementById('modal-background').style.display = "flex"; // !!!!! block document.getElementById('modal-template').style.display = "flex"; // !!!!! document.getElementById('modal-body').innerHTML = ""; post_url(urlContent, "", function(text_from_server) { var element = document.getElementById('modal-body'); element.innerHTML = text_from_server; // add scripts var arrJSText = get_scripts(text_from_server); for (var i=0; i
dir.by
Праздники ...
Праздники ...
День города Минска (2-ая суббота сентября) (9 и 10 сентября 2023)
Концерты, выставки ...
Концерты, выставки ...
Вадим Самойлов "Агата Кристи"|||г. Минск 19 декабря 2026
Афишу
Спорт занятия ...
Спорт занятия ...
Настольный теннис
Спорт занятие
Компьютер, программы...
Компьютер, программы...
Объявления ...
Объявления ...
КПП МТЗ-1005,1025.4 ремонт
Объявление
Новости ...
Новости ...
Форум ...
Форум ...
обсуждение...
Поиск
Концерты
Спорт
Форум
Компьютер
Компьютер, программы
→
Xamarin (приложение на C# для Windows, iOS, Android)
→
Xamarin Forms (Maui elements)
What is Xamarin.Forms (Maui)?
посмотрели
10108
раз
обновлено: 14 October 2025
Xamarin.Forms
- allows you to use one library of elements (text fields, buttons, radio buttons, labels, list views, etc.) for all systems (Android, iOS, Windows)
You add elements in your Xamari application, and on a specific platform (iOS or Android or Windows) for each of your elements generation is called and native elements are drawn (iOS has its own buttons, Android has its own buttons, etc.)
You can add elements in both Xamarin c# code and XAML format.
Advantages of Xamarin.Forms
•
First of all, it's the well-known C# and .NET
. If you've been writing in sharpies for a long time, then you don't need to spend a lot of time learning several new frameworks, or even languages. Or, at least, at the beginning, you don't need to, and you can start quickly enough using your current knowledge.
•
Secondly, the approach to creating and working with the user interface is close to what we are all used to in Windows. WPF developers
will be especially happy, since Xamarin Forms supports working with XAML, bindings, templates, styles, and other joys of life. I think it's clear that they're a bit stripped down and we shouldn't expect the full power of WPF, but it still adds convenience.
•
You can reuse code that has already been written. For the most part, it will work correctly. Platforms have limitations, but they are not so great.
•
The fact that Xamarin.Forms is similar to WPF
leads to the following advantage of this platform: MVVM. Indeed, Xamarin.Forms has XAML, visuals have a BindingContext (analogous to the DataContext in WPF), and there is a BindableProperty (analogous to the DependencyProperty). In this way, you can bind a View to a ViewModel in a similar way to WPF.
• Another advantage
of this framework is that since the UI is described only in one place, applications under different systems will look very similar. Which can be important, for example, in corporate development.
Disadvantages of Xamarin.Forms
• Incomplete implementation of the functionality
WPF ...
• Trade-offs in the implementation of functionality that differs on different platforms
• Different behavior on different platforms
• Performance
How to solve problems?
To solve problems, you have to get into native mobile parts and write your renderers on elements and solve what default renderers cannot cope with.
Inference
Xamarin.Forms
can be used when you need a quick start on multiple platforms at once, when performance isn't very important, or when there is a lot of old code that you want to reuse in a new application.
If you care about some unusual design, or high speed, and you write applications for sale in stores, then maybe it is better to write in native or in Xamarin Mobile.
Although the
Xamarin
team is actively developing its product at the moment, updates are released quite often.
← Previous topic
Running and debugging a Xamarin.iOS application on a computer with the MacOSX operating system
Next topic →
(ContentPage, FlyoutPage, NavigationPage, TabbedPage) is a page in Xamarin.Forms | C# | MAUI
Your feedback ... Comments ...
Your Name
Your comment
(www links can only be added by a logged-in user)
+ Picture
Xamarin
•
What is Xamarin?
Download and install Xamarin
•
Download and install Microsoft Visual Studio to write Miaui applications on a computer with the Windows system
•
Open Visual Studio (for writing in Xamarin)
Creating a Xamarin app
•
Creating a new Xamarin app on a Windows computer
Run the Xamarin.UWP app on a Windows computer
•
Run and debug a Xamarin.UWP app on a Windows computer
•
Making App Packages for Xamarin.UWP apps on a Windows computer | Run the Xamarin.UWP app using App Packages
Run the Xamarin.Android application on a Windows computer
•
Run and debug Xamarin.Android apps on your computer (Windows) in Android emulator mode
•
Running and debugging Xamarin.Android apps on your phone via USB
•
Running Xamarin.Android app on your phone (create apk file)
•
Testing Xamarin.Android Apps on Your Phone
Android (install)
•
Creating an Android Virtual Device in Visual Studio 2017
•
Installing the Android Platform (SDK 7.1.1 API 25) in Visual Studio 2017...
•
Errors in Xamarin.Android app: Error IDE0006 | Error "Could not find android.jar for API Level"
Run the Xamarin.iOS application on a computer with an iOS system
•
Running and debugging a Xamarin.iOS app on your computer (Windows) in iOS emulator mode
•
Running and debugging a Xamarin.iOS application on a computer with the MacOSX operating system
Xamarin Forms (Maui elements)
•
What is Xamarin.Forms (Maui)?
•
(ContentPage, FlyoutPage, NavigationPage, TabbedPage) is a page in Xamarin.Forms | C# | MAUI
•
(Grid, StackLayout) is the layout of graphic elements in Xamarin.Forms (Maui)
•
A graphic element in Xamarin.Forms (this is a button, text field, etc., inherited from the View class) | Xamarin.Forms | C# | Maui
•
Graphical editor for XAML file in Xamarin.Forms
Database in Xamarin
•
Download and install DB Browser for SQLite (program for working with sqlite)
•
Open (run) DB Browser for SQLite
Additional topics, questions
•
Why does the minimum Xamarin.Android program get an apk file larger than 5 mb?
Books about Xamarin
•
Xamarin Study Books
Ваши вопросы присылайте по почте:
info@dir.by