user16258378
user16258378

Reputation: 145

What are the steps for .net MAUI DevExpress free control use?

I am facing this exception while using DEVEXPRESS. Please give me a solution for that.

MainPage.xaml

<dxe:TextEdit PlaceholderText="Email Address" 
     PlaceholderColor="Gray" FocusedBorderColor="#f96332" 
     BackgroundColor="White" CursorPosition="2" 
     HeightRequest="40" Text="{Binding Email}" TextColor="DarkGray" />

I've added DevExpress.editor nuget

enter image description here

System.TypeLoadException: 'Could not resolve type with token 01000173 from typeref (expected class 'Microsoft.Maui.IMauiHandlersFactory' in assembly 'Microsoft.Maui, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null')'

Upvotes: 1

Views: 991

Answers (1)

user16258378
user16258378

Reputation: 145

I have resolve this issue using :--Add handler on your MauiProgram.cs and used followinf name space in our Xaml for using editor control

xmlns:dxe="clr-namespace:DevExpress.Maui.Editors;assembly=DevExpress.Maui.Editors"

.ConfigureMauiHandlers(handlers =>
                   {
                       handlers.AddHandler<DXCollectionView, DXCollectionViewHandler>();
                       handlers.AddHandler<ChartView, ChartViewHandler>();
                       handlers.AddHandler<PieChartView, PieChartViewHandler>();
                       handlers.AddHandler<DataGridView, DataGridViewHandler>();
                       handlers.AddHandler<SimpleButton, SimpleButtonHandler>();
                       handlers.AddHandler<TextEdit, TextEditHandler>();
                       handlers.AddHandler<CheckEdit, CheckEditHandler>();
                       handlers.AddHandler<NumericEdit, NumericEditHandler>();
                       handlers.AddHandler<PasswordEdit, PasswordEditHandler>();
                       handlers.AddHandler<MultilineEdit, MultilineEditHandler>();
                       handlers.AddHandler<ComboBoxEdit, ComboBoxEditHandler>();
                       handlers.AddHandler<DateEdit, DateEditHandler>();
                       handlers.AddHandler<TimeEdit, TimeEditHandler>();
                       handlers.AddHandler<AutoCompleteEdit, AutoCompleteEditHandler>();
                       handlers.AddHandler<TextEdit, TextEditHandler>();
                       //handlers.AddHandler<DrawerView, DrawerViewHandler>();
                       handlers.AddHandler<InputChipGroup, ChipGroupHandler>();
                       handlers.AddHandler<TabView, TabViewHandler>();
                       handlers.AddHandler<DrawerPage, DrawerPageHandler>();
                       handlers.AddHandler<TabPage, TabPageHandler>();
                       handlers.AddHandler<PasswordEdit, PasswordEditHandler>();
                     
                   })

Upvotes: 1

Related Questions