1659346500
Многооконный режим — это приятная функция в .NET MAUI, и мы можем предоставить их настольной версии дополнительный TLC.
.NET MAUI — замечательный инструмент, позволяющий создавать приложения с одинаковой общей кодовой базой как для настольных, так и для мобильных устройств, и может быть разработан для Android, iOS, macOS и Windows.
Некоторые функции более полезны в настольной версии приложения, поэтому потребуют дополнительного внимания. Одной из таких функций является мультиоконность. Рабочий стол и планшеты могут поддерживать несколько окон и представлений, когда у вас открыто приложение. На этих устройствах этот функционал имеет больший вес и более необходим, однако мы можем сделать это и в мобильных версиях.
Важные моменты, которые следует выделить:
Базовые приложения в настольном приложении. Как я упоминал ранее, эти приложения имеют некоторые функции, которые, хотя и работают на мобильных устройствах, здесь имеют больше смысла, например создание меню или многооконность.
Принимая во внимание предыдущий пункт, многооконный режим — это функция, которая будет работать одинаково для любого устройства и платформы , только вы, вероятно, заметите больше преимуществ при использовании ее в настольных приложениях или устройствах, таких как iPad, которые больше .
Приветствуем многооконность! 🎊
Чтобы реализовать многооконность, следуйте приведенным ниже инструкциям:
Начнем с Info.plist:
➖ Нажмите на папку платформы
➖ Нажмите на папку iOS или MacCatalyst (вы должны делать эту платформу одну за другой)
➖ Info.plist
➖ Чтобы открыть: дважды щелкните или нажмите « Открыть с помощью… » и выберите инструмент
Открыв файл, выполните следующие действия:
Шаг 1: Добавьте манифест сцены приложения. После добавления вы получите результат, подобный показанному на следующем изображении.
Шаг 2. Установите для параметра «Включить несколько окон» значение «ДА».
Шаг 3: Добавьте роль сеанса приложения. После добавления вы получите результат, подобный показанному на следующем изображении.
Шаг 4: Наконец, добавим следующее:
Выполнение всех шагов в вашем Info.plist даст вам результат, подобный следующему.
Если вы откроете его в текстовом редакторе, эта часть вашего Info.plist должна выглядеть так:
<key>UIApplicationSceneManifest</key>
<dict>
<key>UIApplicationSupportsMultipleScenes</key>
<true/>
<key>UISceneConfigurations</key>
<dict>
<key>UIWindowSceneSessionRoleApplication</key>
<array>
<dict>
<key>UISceneDelegateClassName</key>
<string>SceneDelegate</string>
<key>UISceneConfigurationName</key>
<string>__MAUI_DEFAULT_SCENE_CONFIGURATION__</string>
</dict>
</array>
</dict>
</dict>
Наконец, давайте добавим класс SceneDelegate.
В той же папке iOS:
➖ Создайте класс
SceneDelegate ➖ Зарегистрируйте SceneDelegate с помощью [Register("SceneDelegate")]
➖ Наследуется от MauiUISceneDelegate
класса
Результат должен выглядеть как следующий пример кода:
using Foundation;
using Microsoft.Maui;
namespace MultiWindowsSample;
[Register("SceneDelegate")]
public class SceneDelegate : MauiUISceneDelegate
{
}
⚠ Примените точно такие же шаги в папке MacCatalyst .
Для Android : дополнительная настройка не требуется.
Для Windows : дополнительная настройка не требуется.
Многооконный режим помогает вам открывать все окна, которые вам нужны в вашем приложении. Эта функциональность была анонсирована в Preview 11 .NET MAUI .
Я объясню два наиболее важных и фундаментальных метода работы с нашими окнами, а именно «Открыть» и «Закрыть окна» — давайте посмотрим!
Давайте подробно рассмотрим метод OpenWindows , который состоит из следующего:
Microsoft.Maui.Control
, за которым следует .Current , который относится к экземпляру приложения, которое работает в данный момент.Графическое объяснение будет следующим:
Давайте посмотрим на это в коде:
void OnOpenWindowClicked(object sender, EventArgs e)
{
Application.Current.OpenWindow(new Window(new MainPage()));
}
Давайте подробно рассмотрим метод CloseWindows , который состоит из следующего:
Давайте посмотрим на это в коде:
void OnCloseWindowClicked(object sender, EventArgs e)
{
var window = GetParentWindow();
if (window is not null)
Application.Current.CloseWindow(window);
}
XAML
<ScrollView>
<VerticalStackLayout Spacing="25" VerticalOptions="Center">
<Image Source="dotnet_bot.png"
HeightRequest="200"
HorizontalOptions="Center" />
<Label Text="Let's explore Multi-Windows in .NET MAUI!"
FontSize="25"
HorizontalOptions="Center" />
<Button Text="Open Windows"
Clicked="OnOpenWindowClicked"
HorizontalOptions="Center" />
<Button Text="Close Windows"
Clicked="OnCloseWindowClicked"
HorizontalOptions="Center" />
</VerticalStackLayout>
</ScrollView>
Наконец, это наш потрясающий результат! 😍
И давайте посмотрим на macOS. 😍
Спасибо за чтение! Увидимся в следующем посте! 🙋♀️
Ссылка: https://www.telerik.com/blogs/exploring-multi-windows-dotnet-maui
#dotnet #dotnetmaui #csharp
1602560783
In this article, we’ll discuss how to use jQuery Ajax for ASP.NET Core MVC CRUD Operations using Bootstrap Modal. With jQuery Ajax, we can make HTTP request to controller action methods without reloading the entire page, like a single page application.
To demonstrate CRUD operations – insert, update, delete and retrieve, the project will be dealing with details of a normal bank transaction. GitHub repository for this demo project : https://bit.ly/33KTJAu.
Sub-topics discussed :
In Visual Studio 2019, Go to File > New > Project (Ctrl + Shift + N).
From new project window, Select Asp.Net Core Web Application_._
Once you provide the project name and location. Select Web Application(Model-View-Controller) and uncheck HTTPS Configuration. Above steps will create a brand new ASP.NET Core MVC project.
Let’s create a database for this application using Entity Framework Core. For that we’ve to install corresponding NuGet Packages. Right click on project from solution explorer, select Manage NuGet Packages_,_ From browse tab, install following 3 packages.
Now let’s define DB model class file – /Models/TransactionModel.cs.
public class TransactionModel
{
[Key]
public int TransactionId { get; set; }
[Column(TypeName ="nvarchar(12)")]
[DisplayName("Account Number")]
[Required(ErrorMessage ="This Field is required.")]
[MaxLength(12,ErrorMessage ="Maximum 12 characters only")]
public string AccountNumber { get; set; }
[Column(TypeName ="nvarchar(100)")]
[DisplayName("Beneficiary Name")]
[Required(ErrorMessage = "This Field is required.")]
public string BeneficiaryName { get; set; }
[Column(TypeName ="nvarchar(100)")]
[DisplayName("Bank Name")]
[Required(ErrorMessage = "This Field is required.")]
public string BankName { get; set; }
[Column(TypeName ="nvarchar(11)")]
[DisplayName("SWIFT Code")]
[Required(ErrorMessage = "This Field is required.")]
[MaxLength(11)]
public string SWIFTCode { get; set; }
[DisplayName("Amount")]
[Required(ErrorMessage = "This Field is required.")]
public int Amount { get; set; }
[DisplayFormat(DataFormatString = "{0:MM/dd/yyyy}")]
public DateTime Date { get; set; }
}
C#Copy
Here we’ve defined model properties for the transaction with proper validation. Now let’s define DbContextclass for EF Core.
#asp.net core article #asp.net core #add loading spinner in asp.net core #asp.net core crud without reloading #asp.net core jquery ajax form #asp.net core modal dialog #asp.net core mvc crud using jquery ajax #asp.net core mvc with jquery and ajax #asp.net core popup window #bootstrap modal popup in asp.net core mvc. bootstrap modal popup in asp.net core #delete and viewall in asp.net core #jquery ajax - insert #jquery ajax form post #modal popup dialog in asp.net core #no direct access action method #update #validation in modal popup
1618666860
This year’s .NET Conf was the largest one yet, with over 80 live sessions across three days that were co-organized and presented by the .NET community and Microsoft. On top of all of that, it also marked the release of .NET 5.0 that brings a full set of new capabilities, performance gains, and new languages features for developers to create amazing apps. If you missed this year’s .NET Conf live stream, don’t worry because we have you covered!
#.net #.net core #asp.net #c# #.net conf #.net foundation #community #demos
1615787193
Descargue el MBOX al convertidor PST y convierta los archivos MBOX al formato PST. Con esta aplicación, los archivos se convierten a gran velocidad sin ningún problema. Para conocer la aplicación el usuario puede instalar la versión demo de esta aplicación y así conocer la aplicación y su funcionamiento. Con una alta velocidad de compatibilidad, la aplicación convierte todos los archivos MBOX en formato PST.
Esta aplicación avanzada funciona en un orden específico para convertir los archivos MBOX a formato PST. Por lo tanto, a continuación se muestran algunos de los puntos que hablan sobre la aplicación y ver si la aplicación cumple con todas las expectativas del usuario.
Por lo tanto, la aplicación ofrece estas funciones avanzadas que permiten que el software funcione de manera avanzada.
Los usuarios pueden convertir el archivo en unos pocos pasos sin asistencia técnica. Siga estos pasos para convertir su archivo MBOX al formato PST de Outlook:
Paso 1: descargue el convertidor MBOX a PST
Paso 2- Inicie el convertidor
Paso 3- Seleccione los archivos MBOX que desea convertir
Paso 4- Ahora, elija el tipo que desea exportar los archivos.
Paso 5- Elija la ubicación donde desea guardar el archivo
Paso 6- Finalmente, haga clic derecho en el botón “Convertir ahora”.
Estos pasos pueden ser realizados por cualquier usuario novato.
Analicemos las funciones inteligentes de este convertidor que se indican a continuación:
Esta herramienta convierte archivos MBOX de cualquier tipo desde Thunderbird a Apple Mail. Este es un convertidor avanzado.
Los usuarios pueden convertir cualquier cantidad de archivos de datos sin ningún obstáculo. No importa cuál sea el tamaño del archivo MBOX, la conversión procede.
Los archivos que selecciona el usuario se convierten de archivos MBOX al formato PST de Outlook. Los resultados convertidos son los deseados por los usuarios.
El usuario puede guardar el archivo en cualquier ubicación donde el usuario quiera guardarlo. En una ubicación adecuada, se guardan los datos convertidos.
El usuario proporciona una interfaz fácil de usar que ayuda al usuario a convertir los archivos sin problemas y sin ningún obstáculo.
El resultado proporcionado por la aplicación es 100% exacto. La calidad del resultado sigue siendo impecable.
La aplicación da todos los resultados adecuados después de la conversión. Con una alta velocidad de compatibilidad, la tarea de conversión es procesada por la aplicación sin ningún error. Descargue la versión de demostración gratuita del convertidor MBOX a PST para ver si funciona.
Más información:- https://www.datavare.com/ru/конвертер-mbox-в-pst.html
#конвертер mbox в pst #mbox в импортер pst #преобразование mbox в pst #mbox в экспортер pst #конвертировать mbox в pst #импортировать mbox в pst
1624386660
It’s been a busy week for the .NET community with the release of new previews for .NET 6 and its related frameworks (including MAUI), along with the first preview of Visual Studio 2022, new Azure SDK libraries, and more. InfoQ examined these and a number of smaller stories in the .NET ecosystem from the week of June 14th, 2021.
This week’s highlight was the release of new previews for .NET 6 and its related frameworks. .NET 6 Preview 5 includes improvements to a new feature named SDK workloads, which - according to Richard Lander, program manager for the .NET team at Microsoft - is the foundation of the .NET unification vision. The new feature allows developers to add support for new application types (such as mobile and WebAssembly) without increasing the size of the SDK. The improvements to the new feature are the inclusion of two new verbs - list
and update
- providing a sense of the expected final experience with the general availability release in November. Other features in .NET 6 Preview 5 include NuGet package validation, more Roslyn analyzers, improvements in the Microsoft.Extensions
APIs (focused on hosting and dependency injection), WebSocket compression, and much more. Also according to Lander, “.NET 6 Preview 5 is perhaps the biggest preview yet in terms of breadth and quantity of features.” A comprehensive list of all features included in the new preview can be found in the official release post.
The ASP.NET Core framework also received significant improvements in .NET 6 Preview 5. One of the most important features of this release is the reduced Blazor WebAssembly download size with runtime relinking. Now developers can use the .NET WebAssembly tools (the same tools also used for .NET WebAssembly AOT compilation) to relink the runtime and remove unnecessary logic, dramatically reducing the size of the runtime. According to Microsoft, the size reduction is particularly relevant when using invariant globalization mode. Other features in the new release include .NET Hot Reload updates for dotnet watch
, faster get and set for HTTP headers, and ASP.NET Core SPA templates updated to Angular 11 and React 17.
#azure #.net #.net maui #visual studio 2019 #.net 6 #visual studio 2022 #devops #news
1617882168
A universally accepted and the most popular framework that can be used for a small or big websites or Web application development projects is the ASP.NET. This framework is majorly used to produce an interactive and data driven web applications.
Are you looking to use an ASP.NET framework for your development needs?
WebClues Infotech offers a dedicated ASP.NET developers where a business can hire a dedicated ASP.NET developer that matches their project requirement. WebClues Infotech also has a flexible pricing structure that suits most project or business requirements.
Want to hire a dedicated ASP.NET developers?
Share your requirements here https://www.webcluesinfotech.com/contact-us/
Book Free Interview with ASP.NET developer: https://bit.ly/3dDShFg
#hire dedicated asp.net developers #hire asp.net developers #hire .net developers #full-stack .net developers india #dedicated .net programmers india #hire asp.net developers or programmers