K232
K232

Reputation: 1069

Xamarin Sample Apps for iPad and iPhone?

I wonder why none of the Xamarin Prebuilt Apps at https://www.xamarin.com/prebuilt support both iPad and iPhone? They all have the same design on each resolution. Especially Apps like 'Acquaint' would be perfect on iPad to have the contact list on the left and the details on the right. But instead it just has the same design like the iPhone Version.....

Are there any reasons why Xamarin does not offer samples with different designs depending on the client resolution? Are there somewhere else some examples?

Many thanks!

Upvotes: 0

Views: 623

Answers (2)

Kevin Mullins
Kevin Mullins

Reputation: 61

You might want to take a look at our Creating Mobile Apps with Xamarin.Forms Book First Edition by Charles Petzold.

I work on the same team as Charles and I know it's a topic he's covered in detail. The full book should be available soon too.

BTW, we are looking into creating some detailed, annotated cross-platform app samples that do all the goodies that a typical modern app would be expected to have.

Upvotes: 1

SushiHangover
SushiHangover

Reputation: 74094

I do not know of any of the stock Xamarin examples that use OnIdiom, but it just a matter of time to code them...hahahah, always just a matter of time and code. (I'm sure the Xamarin guys can chime in on this one):

Xamarin.Forms.OnIdiom Class

<OnIdiom.Phone>Vertical</OnIdiom.Phone>
<OnIdiom.Tablet>Horizontal</OnIdiom.Tablet>

In terms of finding examples that use the Xamarin.Forms XAML OnIdiom I would search Github for OnIdiom, there a few OSS examples of phone/tablet switching floating around there as I used at least one as a template to do a quick phone/tablet prototype for a client.

Upvotes: 0

Related Questions