Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Is it possible to use a Xaml designer or intellisense with Xamarin.Forms?

Xamarin 3.0 introduced Xamarin.Forms, a powerful UI abstraction that allows developers to easily create user interfaces that can be shared across Android, iOS, and Windows Phone.

It seems very powerful but I'm facing a few difficulties to create UI as Xamarin.Forms comes with more than 40 controls. Without intellisense or a minimalist designer, it's fairly counter-productive to search for all properties in the official doc or by browsing c# code.

The default Xaml teamplate is like this, and it's clearly not trivial to add new controls without any help.

<?xml version="1.0" encoding="utf-8" ?> <ContentPage xmlns="http://xamarin.com/schemas/2014/forms"                        xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"                        x:Class="App1.Class1">     <Label Text="{Binding MainText}"  VerticalOptions="Center" HorizontalOptions="Center" /> </ContentPage> 

So is there any chance to have intellisense inside Xaml or to use the Xaml designer ?

like image 598
Cybermaxs Avatar asked Jun 10 '14 19:06

Cybermaxs


People also ask

Does Xamarin forms have a designer?

The Xamarin. Android Designer allows developers to create and modify declarative layouts visually, without requiring hand-editing of XML files. The Designer also provides real-time feedback that lets the developer evaluate UI changes without having to redeploy the application to a device or to an emulator.

Does Xamarin use XAML?

XAML is never required in a Xamarin.

Is XAML the same as Xamarin?

XAML. XAML is used as the declarative markup language for WPF and Xamarin. Forms. For the most part, the syntax is identical - the primary difference is the objects that are defined/created by the XAML graphs.

How do I open XAML Designer in Visual Studio?

To open the XAML Designer, right-click a XAML file in Solution Explorer and choose View Designer. to switch which window appears on top: either the artboard or the XAML editor.


1 Answers

Xamarin.Forms does not come with a graphical designer (yet ?). As for intellisense there are 2 parts:

  • referencing xaml element tagged with x:Name in code behind works in both Xamarin.Studio and VisualStudio
  • Xaml completion of elements and attributes works in Xamarin.Studio, and support for completing attributes values is coming very soon. Unfortunately, intellisense for Xaml in VisualStudio does not work for now. But the problem is well known, and solutions are investigated.
like image 100
Stephane Delcroix Avatar answered Sep 28 '22 01:09

Stephane Delcroix