locked
Is Xamarin.Forms XAML designer supported on Visual Studio? RRS feed

  • Question

  • User60490 posted

    Hi!

    I've just added a new XAML to a Shared project but it seems not detect the schema and the designer is broken.

    Is it a bug or the designer and XAML editing isn't supported on Shared projects at Xamarin.Forms?

    Attached images showing the error.

    Thanks!

    Saturday, June 28, 2014 7:48 PM

Answers

  • User65 posted

    There is (currently) no designer support in XS or VS for Xamarin Forms.

    • Marked as answer by Anonymous Thursday, June 3, 2021 12:00 AM
    Saturday, June 28, 2014 7:55 PM

All replies

  • User65 posted

    There is (currently) no designer support in XS or VS for Xamarin Forms.

    • Marked as answer by Anonymous Thursday, June 3, 2021 12:00 AM
    Saturday, June 28, 2014 7:55 PM
  • User60490 posted

    Ok but, why are those red lines into The XAML editor? Just added a new shared Project and added a new XAML file... This doesn't happen on PCL projects, only on shared ones...

    Saturday, June 28, 2014 8:07 PM
  • User60490 posted

    @JasonAwbrey? any clues?

    Sunday, June 29, 2014 12:30 AM
  • User65 posted

    No idea. I personally don't use the XAML approach.

    Sunday, June 29, 2014 12:39 AM
  • User21936 posted

    Jason is correct, there is currently no Designer support for Xamarin.Forms on either platform. I am not sure what red lines you are referring to.

    Thursday, July 3, 2014 9:57 PM
  • User60490 posted

    The red lines is the syntax highlight pointing that is an error there... Like if we are are typing the wrong name or that class/namespace doesn't exist...

    Thursday, July 3, 2014 10:04 PM
  • User54590 posted

    Are you using resharper? If so, and you are referring to the "errors" in recognising the xaml partial classes, it could be down to this bug:

    http://youtrack.jetbrains.com/issue/RSRP-265402

    Sunday, July 6, 2014 4:23 PM
  • User60490 posted

    Nop I'm not...

    Sunday, July 6, 2014 4:26 PM
  • User97185 posted

    It's Very hard to design without designer view in Xamarin.Forms , any one please give some idea to get designer view and easy designing any ways are there ? please help

    Friday, January 2, 2015 12:41 PM
  • User88553 posted

    Totally agree with Prem. Why push XAML out if it offers nothing better than other alternatives (cs, xml), when it's only advantage is that of the (missing) visual designer. It's counter-productive to compile and deploy to a device just to know how the XAML page looks like.

    Friday, January 30, 2015 2:50 AM
  • User28783 posted

    +1 for having a XAML Designer.

    Friday, January 30, 2015 3:07 AM
  • User104756 posted

    I also agree with premnath. Please anyone give alternative solution.

    Friday, February 6, 2015 11:53 AM
  • User90529 posted

    The "lines" in VS are because the VS Xaml designer doesn't understand what you gave it. XF's xmlns is not known to the designer so it has no idea what ContentPage, Label, or the Binding markup extension are or in what assembly the live. Installing Resharper makes VS behave more favorable with XF Xaml.

    Friday, February 6, 2015 12:18 PM
  • User76049 posted

    At least we have intellisence now in the XAML editor in studio now

    Friday, February 6, 2015 12:58 PM
  • User60490 posted

    Do we? It was threated as a XML, so it never detects the intellysense etc...

    Friday, February 6, 2015 1:00 PM
  • User76049 posted

    @GutembergRibeiro

    Yeah, definitely works with the latest version of Xamarin in VS2013 (Updated4)....on my machine anyway (see attached)

    Friday, February 6, 2015 1:14 PM
  • User60490 posted

    Finally! We are using 2015 here from a internal MS build. Will check how it behaves. I'll not mark you reply as a answer, just so Xamarin can do something about the designer. It still really necessary. Still hard to see the changes if every line we change we have to compile/deploy/run.

    But thank you for the reply, at least some good news.

    Friday, February 6, 2015 1:18 PM
  • User76049 posted

    @GutembergRibeiro

    I 100% agree that some kind of design time experience is important, even if it only shows a rough guess at what the screen may look like (A tabbed approach to show iOS, Android & WinPhone), at least you'd know roughly what it would look like. You'd have to take tablets into account to. I was at Evolve 2014 and attended all of the Xamarin forms talks and there was a lot of questions asking specifically about some sort of design time experience. There is a lot of demand for it. Something would be better than nothing but at least intellisence makes things easier. You do loose time running things on the handset to see how it looks when it's just a basic layout. Coming from a WPF background I'm comfortable hacking about in XAML but if your used to a design experience it's a different story (people moving from Winforms to WPF often find this a hurdle).

    Hopefully once they have forms fully stable they can visit these nice to have areas.

    Friday, February 6, 2015 1:46 PM
  • User60490 posted

    @NMackay
    Yes, we decided to leave away Forms just 'cause of this missing designer. I love the technology but it still unfinished unfortunatelly...

    Thanks

    Friday, February 6, 2015 1:49 PM
  • User76049 posted

    Ermmmm

    I think it's probably resharper doing the intellisence :blush:

    http://hotkrossbits.com/2015/02/04/a-sharper-way-to-work-with-xamarin-forms/?utmsource=Xamarin+Weekly+Newsletter&utmcampaign=e865d3c0a0-Issue0261302015&utmmedium=email&utmterm=007f5b54b81-e865d3c0a0-256838145

    Sorry if I've mislead anyone.

    It does work very well though.

    Friday, February 6, 2015 5:14 PM
  • User28783 posted

    @GutembergRibeiro what did you end up using?

    Friday, February 6, 2015 6:53 PM
  • User60490 posted

    Hello guys,

    Just to update you... Just arrived an email from Xamarin with this link: http://blog.xamarin.com/webinar-recording-whats-new-in-xamarin.forms-1.3/

    It claims that we have to install MobileEssentials extensions on Visual Studio in order to get Xamarin.Forms Intellisense form here http://www.cazzulino.com/mobileessentials.html

    I'm not able to test now, please someone give it a try and share with us.

    Thanks

    Tuesday, February 10, 2015 4:22 PM
  • User11072 posted

    Feels like the early days of WPF, no designer then either. Intellisense has helped a lot. I wouldn't be surprised if a designer eventually showed up.

    Thursday, February 12, 2015 4:27 AM
  • User60490 posted

    Yes... Bad times :wink:
    I hope Xamarin Team don't take so long to implement it. :blush:

    Thursday, February 12, 2015 4:35 AM
  • User104130 posted

    Yeah, we all need this feature. I posted a suggestion on the Xamarin UserVoice : https://xamarin.uservoice.com/forums/144858-xamarin-product-suggestions/suggestions/6716840-blend-for-xamarin

    Thursday, February 12, 2015 2:25 PM
  • User60490 posted

    +3 on it. I think Blend would be awesome but, they have to start from somewhere...

    They need have intellisense first by themselves. It is not a big deal. Just a matter of implement a LanguageService and a lexer on Visual Studio. There are tons of examples already working, just modify one of those.

    After they have pure XAML editor working, they can follow 2 paths:

    1. Use the already created Xamarin Designer for iOS porting it to support XAML. It should not hurt, since the designer already create XML files for the iOS Storyboards.
    2. Integrate with VS designer, which today, is nothing more than Blend canvas integrated on it.
    Thursday, February 12, 2015 2:35 PM
  • User76049 posted

    +3 as well.

    Thursday, February 12, 2015 2:58 PM
  • User28783 posted

    My guess is that if they're making a XAML designer, it will be for Xamarin Studio first. It seems that it's the trend with this company. To say that devs using VS are paying almost $700 more per platform is a bummer.

    Thursday, February 12, 2015 4:10 PM
  • User60490 posted

    Well, I don't really like it... But things can change... I see a lot of movement between Microsoft and Xamarin... Also, Visual Studio full is Free now on the community edition...

    Thursday, February 12, 2015 4:13 PM
  • User28783 posted

    @GutembergRibeiro, I hope so.

    Thursday, February 12, 2015 4:21 PM
  • User104130 posted

    @GutembergRibeiro, I heard that XAML intellisense for Xamarin.Forms is near to be done (if it is not done now).

    The fact is I am a Microsoft fan so Blend was the best tool for me to implement XAML interaction with Xamarin.Forms. If a tool is directly integrated in Xamarin Studio, why not, but that's not the great way to work for me.

    And, whatever, Blend is free with VS 2015 (or VS 2013 Community Edition) so I don't see what could be better. :)

    Also, the big difficulty seems to be the iOS editor. And again, I think this could be achieved in a while since Microsoft is working on Cross-Platform technologies directly integrated in VS (like Visual C++ Cross-Platform).

    Friday, February 13, 2015 8:24 AM
  • User60490 posted

    Yes, no one but me knows that :) I used to work on Microsoft from the past 10 years :)

    Friday, February 13, 2015 3:41 PM
  • User49949 posted

    Visual Studio or Xamarin Studio still does not support designer for Xamarin.Forms?

    Tuesday, July 28, 2015 1:52 PM
  • User21407 posted

    Yes, that's correct.

    In this Gone Mobile Podcast, the interviewer asked @TheRealJasonSmith (Xamarin.Forms lead dev.) if a designer is in the works. He couldn't say much about it, but did mention there is a Visual Studio extension that will live-preview XAML as you type it. He also mentioned that "a full-on designer would be a fantastic idea" ... ;) So, there you go.
    The extension is written by @DanielCazzulino and I believe he's referring to this one: https://github.com/MobileEssentials/FormsPlayer

    Tuesday, September 8, 2015 4:28 PM
  • User137666 posted

    Hey guys! We are about to realease a Beta of Gorilla Player - Xamarin Forms XAML preview. Please check it out.

    www.gorillaplayer.com

    Cheers!

    Saturday, December 5, 2015 3:36 PM
  • User21407 posted

    @PabloGermano - Awesome! Would love to see this

    Monday, December 7, 2015 5:00 PM
  • User99143 posted

    Excellent @PabloGermano

    Thursday, December 17, 2015 12:42 AM
  • User151763 posted

    @PabloGermano - I would love to see also. I signed up for the beta - but haven't heard anything yet. I am new to Xamarin - Forms, NOT Xamarin and was VERY disappointed when i saw that there was no Designer support. What a pity - very nice technology. But, speaking for myself - if I can simply get "anything" that will let me preview the xaml, I'm good.

    Monday, January 25, 2016 11:26 PM
  • User137666 posted

    @DonRedd thanks for your subscription :) You should get a download link and credentials in the next 24hrs or less. Oh! Don't forget to check on your -spam- folder!

    Thank you :)

    Tuesday, January 26, 2016 10:53 AM
  • User151763 posted

    @PabloGermano - got it yesterday, been so busy - haven't had time to install it yet, but i will get to it tonight.

    PS: When it goes "Gold" - will there be a charge? Looks great, would probably buy it if there is a charge.

    Thanks, Don

    Thursday, January 28, 2016 5:23 AM
  • User176749 posted

    It looks good but there are some errors I believe. First of all it doesnt recognize external libraries like xlabs. another thing, i have xaml like below and although it will be rendered fine on emulator, gorillaplayer will return error.

      <StackLayout VerticalOptions="FillAndExpand">
    <ListView x:Name="listView" ItemsSource="{Binding Items}" SelectedItem="{Binding SelectedItem}" VerticalOptions="FillAndExpand">
      <ListView.ItemTemplate>
        <DataTemplate>
          <TextCell Text="{Binding name}"  />
        </DataTemplate>
      </ListView.ItemTemplate>
    </ListView>
    

    Saturday, January 30, 2016 8:42 PM
  • User137666 posted

    Hey @batmaci, thanks for your feedback.

    So Gorilla player current scope is just to preview XAML, what you mentioned about xlabs is not currently supported. We are working on the Gorilla SDK which will allow to do more complex things -like preview custom renderers-. It is still immature but in case you could want to take a look here is a document on our Gorilla support website that explains how to use it:

    https://github.com/UXDivers/Gorilla-Player-Support-And-Issues/wiki/Gorilla-SDK

    And about the second issue, yes, it is a known issue that we will be fixing on next versions: https://github.com/UXDivers/Gorilla-Player-Support-And-Issues/issues/21

    Sunday, January 31, 2016 10:52 AM
  • User203151 posted

    I've been evaluating Xamarin the past couple of weeks. Discovering that the Xamarin.Forms, which utilizes XAML, has no designer is disheartening. It definitely takes the "rapid" out of RAD. I have used WPF with a designer, and I would guess that development time would increase exponentially without a designer.

    Wednesday, March 30, 2016 5:42 PM
  • User169828 posted

    If you have done any extensive XAML'ing in WPF, the designer becomes pretty useless.

    Wednesday, March 30, 2016 6:03 PM
  • User176749 posted

    Yes dev time is extremely long with xamarin forms. Especially starting Debugging in order to see ui changes bur still xamarin is great Tool and we hope that soon or later there will be Design Support.

    Wednesday, March 30, 2016 7:37 PM
  • User141483 posted

    I'll be releasing a public beta build of my Xamarin.Forms UI designer in mid-April.

    https://www.xenforms.com

    Wednesday, March 30, 2016 7:50 PM
  • User179286 posted

    I recently used The GorillaPlayer with the SDK to design some Pages and it was a great help! Almost all CustomRenderer worked with the exception of XamSVG.

    So any Tool like Gorilla Player or XenForms (we'll have to see what it's worth ;-) ) is extremely helpful.

    Also why I prefer coding Xaml directly is that I have real control about which LayoutComponents are used.

    Thursday, March 31, 2016 1:53 PM
  • User284706 posted

    Xenforms looks like it's disappeared, Gorilla looks great, but it's not for Visual Studio, and Mobile Essentials could have been a contender but it has not been touched in a couple of years (aside from a couple of small updates about 7-9 months ago). Any new solutions?

    Wednesday, March 15, 2017 7:12 PM
  • User221952 posted

    https://forums.xamarin.com/discussion/97303/where-are-the-xaml-designer-tools#latest

    Monday, July 10, 2017 8:46 PM
  • User76049 posted

    Any solution will have to cope with 3rd party custom controls, they are so widely used (as they are in WPF).

    I thought the designer was heading that way and even spoke to our control provider who said they'd love to work with Microsoft on it but they had no idea of their plans....

    Monday, July 10, 2017 8:50 PM