Dotnet-maui-rc-1

2 Answers 150 Views
General Discussions
Daniel
Top achievements
Rank 1
Silver
Bronze
Daniel asked on 13 Apr 2022, 10:04 AM

Hi,

Last VS 2022 preview released yesterday.

https://devblogs.microsoft.com/dotnet/dotnet-maui-rc-1/

Can I install it , without any change in Telerik controls.

If yes what are step to done after upgarding vs?

Thanks in advance,

2 Answers, 1 is accepted

Sort by
0
Lance | Manager Technical Support
Telerik team
answered on 13 Apr 2022, 11:37 AM

Hello,

Please see my answer in this thread https://feedback.telerik.com/maui/1561420-some-androidf-renderers-fail-in-maui-rc1 

This is the same thing you asked when trying to use UI for MAUI 0.5.0, that was built with preview13, for preview14. It is just not possible to expect compatibility between prerelease SDK version because of breaking changes.

If Microsoft releases RC2, there may be more compatibility between RC releases... but it is still all prerelease and you should expect zero compatibility as a default stance.

Regards,
Lance | Manager Technical Support
Progress Telerik

Virtual Classroom, the free self-paced technical training that gets you up to speed with Telerik and Kendo UI products quickly just got a fresh new look + new and improved content including a brand new Blazor course! Check it out at https://learn.telerik.com/.

Daniel
Top achievements
Rank 1
Silver
Bronze
commented on 13 Apr 2022, 11:45 AM

So we wait until you create version 0.7.0.
Lance | Manager Technical Support
Telerik team
commented on 13 Apr 2022, 11:56 AM

Correct. We're working on getting that out to you once we've handled all the issues we can. We don't want to rush it out the door just to meet the RC1 requirement and not include bug fixes. So we're doing both at the same time, working on the currently known issues and building that on top of RC1 (and addresses all the breaking changes between p14 and RC1)
Daniel
Top achievements
Rank 1
Silver
Bronze
commented on 18 Apr 2022, 06:05 AM

Is Version 0.7.0 is ready ?
0
Antoan
Telerik team
answered on 19 Apr 2022, 02:23 PM

Hi Daniel,

Thank you for reaching out.

Telerik UI for .NET MAUI just released it's 0.7.0 version compatible with .NET MAUI RC 1. Give the new version a try and let me know if you have any additional questions.

Regards,
Antoan
Progress Telerik

Virtual Classroom, the free self-paced technical training that gets you up to speed with Telerik and Kendo UI products quickly just got a fresh new look + new and improved content including a brand new Blazor course! Check it out at https://learn.telerik.com/.

Daniel
Top achievements
Rank 1
Silver
Bronze
commented on 19 Apr 2022, 03:05 PM | edited

I update vs t0 preview 3.

I removed the window package refences.

<ItemGroup Condition="$(TargetFramework.Contains('-windows'))">

  <PackageReference Include="Microsoft.WindowsAppSDK" Version="1.0.0" />
  <PackageReference Include="Microsoft.Graphics.Win2D" Version="1.0.0.30" />
</ItemGroup>

I got this error on build.

Severity	Code	Description	Project	File	Line	Suppression State
Error	CS0234	The type or namespace name 'RadNumericInput' does not exist in the namespace 'Telerik.XamarinForms.Input' (are you missing an assembly reference?)	AutomationClient.MAUI (net6.0-android)	D:\Applications\AutomationClient\AutomationClient.MAUI\Microsoft.Maui.Controls.SourceGen\Microsoft.Maui.Controls.SourceGen.CodeBehindGenerator\Views_AddSchedulerView.xaml.sg.cs	54	Active


Daniel
Top achievements
Rank 1
Silver
Bronze
commented on 19 Apr 2022, 03:07 PM

I used this xmlns:telerikInput="clr-namespace:Telerik.XamarinForms.Input;assembly=Telerik.Maui.Controls.Compa

   <telerikInput:RadNumericInput x:Name="numericInputRecursEvery" Value="{Binding SelectRecursEvery , Mode=TwoWay}" Minimum="0" HorizontalOptions="Center" VerticalOptions="Center" WidthRequest="200" Margin="5"/>


                                
Lance | Manager Technical Support
Telerik team
commented on 19 Apr 2022, 03:29 PM

Daniel, please carefully read release notes when going from preview to preview. Especially before just opening a new support ticket (or forum post) to see if there's something you might have missed.

You will see in the v0.7.0 release notes that we have explicitly stated we migrated the RadNumericInput to a MAUI handler :

 This explains the error message, which has nothing to do with Windows. IT says that the control isn't in the Telerik.XamarinForms.Input namespace anymore

This is expected and is because of that breaking change, all MUAI handlers use the same namespace. Remember, this is still a preview and there will be breaking changes in between our releases when a control goes from a Xamarin.Forms shim to .NET MAUI native handler.

So, what do you do when this happens?

  1. Look at the SDK Browser demo that came with your version (this is the first place you should always go because it has the latest build of all the controls)
  2. Look at the documentation (this is still being generated right now, so it's a little delayed)
  3. Search the forums for an answer
  4. If you don't see an answer in any of the above, then you can open a forum post (at this point, you can afford to wait a few days for an answer)

I highly recommend #1 because it will always have an immediate answer for you. If you look at the RadNumericInput > Getting Started example in there, you'll find the updated namespaces:

Here's the Getting started example's file:

Daniel
Top achievements
Rank 1
Silver
Bronze
commented on 19 Apr 2022, 04:03 PM | edited

I looked on documentations that are not updated yet.

Now I look on the SDK demo and  new namespace is:

  xmlns:telerik="clr-namespace:Telerik.Maui.Controls;assembly=Telerik.Maui.Controls"
Thanks,

                                  
Lance | Manager Technical Support
Telerik team
commented on 19 Apr 2022, 04:36 PM | edited

Yep! That's it. It's the same namespace for all the new controls. These are what are sometimes referred to as "handlers".

Warning If you have any custom ControlTemplates that you previously used for the old NumericInput, then you need to start over. I recommend not using any custom ControlTemplate override and trying the new styling first... then decide on what you want to change later. This is because we made significant changes to the structure of the control (this is the "Improved the UI" comment in the release notes).

[Edit 1] The documentation updates are now live. See NumericInput Control | Getting started. I have also removed my txt attachment as the same ControlTemplate code is now available here => NumericInput | Control Template.

Tags
General Discussions
Asked by
Daniel
Top achievements
Rank 1
Silver
Bronze
Answers by
Lance | Manager Technical Support
Telerik team
Antoan
Telerik team
Share this question
or