This is a migrated thread and some comments may be shown as answers.

Need pure C# examples

1 Answer 50 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Shawn
Top achievements
Rank 2
Shawn asked on 06 Feb 2019, 05:11 PM

The SDKBrowser set of examples is ALL XAML!!  What about all of the developers that do not like/use XAML, like myself?  Sometimes it is not easy to convert a XAML example to the equivalent pure C# version.  I would like the SDKBrowser to include BOTH the current XAML examples AND pure C# versions of the same thing.

 

Why do I not like XAML, you may ask?

  1. XAML is a different language than C#.  I prefer to work in 1 language if possible
  2. With Visual Studio for Mac, refactoring does not work with XAML.  If my XAML includes "{Binding Name}" and then I rename the Name property to Title, the XAML is NOT refactored too (I am told this does work on Windows, but I know it does NOT work on Mac).  Therefore, my project no longer binds correctly since Name no longer exists.
  3. XAML makes it harder, if not impossible, to use Abstract Page classes.  Maybe I have some common UI in a few of my pages, so I make an AbstractPage with that common UI.  Then I make derived classes that construct more specific UI around the common UI.  I am not sure if that is possible with XAML, having 1 XAML page extend/inherit another.

1 Answer, 1 is accepted

Sort by
0
Yana
Telerik team
answered on 08 Feb 2019, 01:22 PM
Hello Shawn,

Indeed, you've raised some valid points regarding the XAML usage and I understand  why you'd prefer using C# only.  I have a few comments, though:

First, and most important - almost all of our customers at the moment are using XAML and we haven't received a complaint regarding this so far.

Additionally, we consider XAML as an integral part of the platform and the development process of Xamarin apps, so creating our examples in such a way was the natural choice. Still, I agree there are scenarios when using XAML is not suitable, so I logged a feature request on your behalf in our feedback portal, you could check it here:
https://feedback.telerik.com/xamarin/1387068-provide-c-only-versions-of-all-sdkbrowser-app-examples

We'll definitely keep an eye on this item, and if there is demand, we will plan it.

Let me know if any additional questions arise.

Regards,
Yana
Progress Telerik
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items
Tags
General Discussions
Asked by
Shawn
Top achievements
Rank 2
Answers by
Yana
Telerik team
Share this question
or