Quantcast
Channel: Recent Threads — Xamarin Community Forums
Viewing all 204402 articles
Browse latest View live

VS2017 - New install - no Cross Platform App (Xamarin.Forms or Native) template

$
0
0

I tried following the "Windows Install" and the Quickstart, but keep getting stopped at the New Project.

I HAD an install of VS 2017 that had the template there, but did not have any of the Android tools. I eventually did a clean-install of VS2017, and now don't have the template.

I've uninstalled and fresh installed VS2017 via the installer several times. Each time I chose the Mobile Development with .Net. And each time when I pick New Project, I don't have that template:

(This was going to be a screenshot, but I can't upload an image?!??! Actually, I can upload an image, but I can't post links... wtf)

There are no pending updates under Extensions and Updates. Clicking Help -> Xamarin -> Release Notes leads to a 404 page so grr to that.

I have no idea what else I can check or try.


Create a bottom Navigation bar for xamarin.forms

$
0
0

how to create a bottom navigation control. using layout concept.

i have tried this code.


<Grid.ColumnDefinitions>





</Grid.ColumnDefinitions>

        <StackLayout BackgroundColor="Lime" x:Name="stckPersonal" Orientation="Vertical" Grid.Column="0" HorizontalOptions="Fill" VerticalOptions="End">
            <Image  Source="home.png"  WidthRequest="30" HeightRequest="30" />
            <Label  Text="Personal" TextColor="Black"  />
        </StackLayout>

        <StackLayout x:Name="stckMedical"  Orientation="Vertical" Grid.Column="1"  HorizontalOptions="Fill" VerticalOptions="End">
            <Image Source="cardholder.png" WidthRequest="30" HeightRequest="30"  />
            <Label HorizontalTextAlignment="Center" Text="Medical" TextColor="Black"  />
        </StackLayout>

        <StackLayout x:Name="stckLegal" Orientation="Vertical"  Grid.Column="2"  HorizontalOptions="Fill" VerticalOptions="End">
            <Image  Source="cardholderdetail.png"  WidthRequest="30" HeightRequest="30" />
            <Label HorizontalTextAlignment="Center" Text="Legal" TextColor="Black" />
        </StackLayout>

         <StackLayout BackgroundColor="Lime" x:Name="stckICE" Orientation="Vertical"  Grid.Column="3"  HorizontalOptions="Fill" VerticalOptions="End">
            <Image Source="refresh.png" WidthRequest="30" HeightRequest="30"  />
            <Label HorizontalTextAlignment="Center" Text="ICE" TextColor="Black"  />
        </StackLayout>

        <StackLayout x:Name="stckRecords" Orientation="Vertical" Grid.Column="4"  HorizontalOptions="Fill" VerticalOptions="End">
            <Image  Source="logout.png"  WidthRequest="30" HeightRequest="30" />
            <Label HorizontalTextAlignment="Center" Text="Records" TextColor="Black" />
        </StackLayout>

XLabs Image Button Control Not Displaying Image

$
0
0

Hi I'm using XLabs Image Control , i'm not using any Nuget Package , as i need only that image control I pulled out all classes which are required for Image Button, Everything working fine But Image is Not Displaying ,i 'm using the following link

https://github.com/XLabs/Xamarin-Forms-Labs/wiki/ImageButton

Here i'm Attaching one Sample Project Also,Please Check that

.NET Standard comes to the Xamarin.Forms project templates!

$
0
0

You asked for it, now it's here! .NET Standard comes to the Xamarin.Forms project templates.

Give it a try and let us know what you think.

Feel free to discuss this post below.

How to create simple TabbedPageRenderer for iOS and Android in Xamarin Forms

$
0
0

Need Simple working Tabbedpage Renderer

Culture Localization with Xamarin Forms and .Net Standard

$
0
0

I recently converted a localized app from PCL to .Net Standard which is localized with RESX files as described on this page: https://developer.xamarin.com/guides/xamarin-forms/advanced/localization/

After migration I noticed that .Net Standard does no longer need the assistant code to determine the language set on the device under Android and iOS. However, when I additionally to the culture also provide a culture such as en-GB.resx it is not recognized and will always fall back to the more generic language. Any idea how I can get .Net Standard to recognize the culture?

Adding rows to a grid using MVVM

$
0
0

On a page where I am displaying a receipt to a user, I have a section which lists the subtotal, any taxes, and the total. Since the taxes applicable vary by region and based on the products being sold, the number of rows in this section will vary. For example, here are 3 separate orders, one with GST and PST, one with just GST, and one with neither:



I've accomplished this by putting just the SubTotal in the grid in XAML, and adding the rest in the code-behind in a method I call from the ViewModel. However, I'd really like to avoid doing it this way, so I'm wondering if there is an approach to accomplishing this which doesn't require having a bunch of code in the View's code-behind. I'd like to do this while keeping the columns nicely aligned as if they were in a single grid, and without adding any weird spacing between the rows.

How to update/move the pin and track the user's location on the map?

$
0
0

I've implemented the map using Xamarin.Forms.Maps and showed the user's location using pin on the map. Now, I want to track the user's location and update/move the pin on the map.


Which Graphics Library for simple (Poss 3D) drag and drop of objects

$
0
0

At the early stages of scoping a project which is a line of business app that requires a visual interaction element. Think warehousing / storage and we have pallets (boxes /rectangles visually) that need to be quickly moved around a floor plan, colour coded based on contents etc, this is to be done by touch drag and drop, and force press or similar pops up detail on the contents.

Visually I think this would look nicer in 3D, better represents the real world, but 2D floor plan style is feasible, I can sell the client on either. What I'm looking for is which graphics framework would allow me to do this most easily, cross platform, within Xamarin Forms - basically where would you go? Urhosharp, Skiasharp, some other? Or would I be better off doing it the older way and building shared core and 'Native' Xamarin UI applications for iOS and Android.

Am comfortable with all elements other than the graphics side, so don't really have the time scales to go off in the wrong direction. Advice and gotchas appreciated.

Thanks

How does Xamarin Forms fit the iPhone X?

$
0
0

Xamarin.forms how to fit the iPhone X, I've tried a couple of ways. Who knows? Thanks for telling me.

How to open a different xaml page on push notification click event?

$
0
0

Hello,I want to open a different xaml page from android push notification click? But I have searched the forum and internet but cant find a working solution.Any ideas about how to achive this? (I'm using fcm integration in xamarin.forms project)

Visual Studio 2017: This propertyis not valid when the SDK is not installed.

$
0
0

Suddently im getting this message everywhere on visual studio.
I cant even close it (File/Exit), I cant access to any options menu
What is this? i think at some point my pc has shutdown when a Visual studio update was installing
I have try to repair Visual Studio but i still getting this error.
Should i try to update the sdk manually? where i can find the sdk installation path?

Recommended workflow to downgrade VS Community for Mac

$
0
0

I'm not having much joy with the latest build of VS for Mac 7.3 (build 799)

What is the recommended method to downgrade to the previous version?

Using Xamarin.Forms with Native pages (Xamarin.iOS, UWP etc.)

$
0
0

Hi,

I already have a solution which consists of Xamarin.iOS and UWP. We have multiple views (Pages) in both platforms. We are using MVVMCross, so we have a common code (PCL) which consists of Viewmodels, business logic etc. Also, we have separate views (Pages) for both Xamarin.iOS and UWP.

Now we want to add Xamarin.Forms support for native pages of both projects so that we have same views for both Xamarin.iOS and UWP. We need the support of navigation (from Native to Xamarin.Forms & vice versa).

Is it possible to do it? If yes, then what steps should we follow to achieve our desired goal.

Any help and suggestions will be much appreciated. Thanks in advance.

Regards,
Faaiz Ahmed

Is IPrinciple the way to go?

$
0
0

Hi, Is IPrinciple still a good practice in Xmarin form apps?
I want to save some information regarding the login user to be used within the application. Like a userid or roles as claims. I have this information in my JWT.

I know I can save this data to a SecureStorage or Localstorage or Sqlite and so on. But then I need to implement all the other stuff like IsinRole etc...
I tried to google IPrinciple and Xamarin to find anyone talking about this but nothing.

Thread.CurrentPrincipal

Is this still a good pattern to go with as long the user is online in the application?

My idea is:
When user login I save the access token in SecureStorage for communication with REST APIas. Then I create my IPrinciple based on the payload information and add it to the Thread to be used within the application itself with Thread.CurrentPrincipal.


how to read the sent mail from gmail?

$
0
0

how to read the sent mail from gmail using valid user name and password?

It is Possible to Store FingerPrint on local db.

$
0
0

Dear All,
We Want to store Finger print in local db and on login time we want to validate fingerprint from local db It's Possible or not. If Possible Then how please suggest.

Custom 3d models (Very strange behaviour)

$
0
0

Hi,

I'm trying to learn UrhoSharp (hoping I'm not losing my time as the project doesn't seem very active).

Everything is going very well, after few days I can already do a lot of different things bnut I have a problem with custom models.

Every time I try to use a custom model, it will appear without materials/textures or not appear at all (I use Blender + the urho importer for blender)

Usually I download a free model from a site and then I import it with blender (I have checked the option to export & materials/textures) but until now no luck.

Yesterday I've tried to import a very basic model made with paint3d (no texturtes, only a color) and strangely it worked.

But then I tried to import a flower (available for free in Paint3d), and the result was crazy:

If I set the model without the material, I can see the model, of course without texture;

If I set the model with the material, I can see nothing.

If I use a standard model (cube, spere, etc) and apply the texture, I can see it.

So basically it seems that the combination custom model+ texture doesn't work.

What I'm doing wrong?

Thank you very much

Media Plugin and uwp

$
0
0

Hello,

I'm trying to take a picture in my Forms app (code sharing is plc). For this I try to use the media plugin by James (github.com/jamesmontemagno/MediaPlugin)

The code is copied from the readme, (see below)
- the Initialize() function is called

  • the permissions are ok (I've checked with the persmissions plugin)

But the TakePhotoAsync call immediatly returns null, camera does not appear (On UWP I haven't been able to test on other devices yet ).

Please help!

takePhoto.Clicked += async (sender, args) =>
{
    await CrossMedia.Current.Initialize();

    if (!CrossMedia.Current.IsCameraAvailable || !CrossMedia.Current.IsTakePhotoSupported)
    {
        DisplayAlert("No Camera", ":( No camera available.", "OK");
        return;
    }

    var file = await CrossMedia.Current.TakePhotoAsync(new Plugin.Media.Abstractions.StoreCameraMediaOptions
    {
        Directory = "Sample",
        Name = "test.jpg"
    });

    if (file == null)
        return;
}

When installing newtonsoft.json nuget

$
0
0

I install Newtonsoft.json nuget package in xamarin forms pcl project. Did separate installation is needed for each platform project.

Viewing all 204402 articles
Browse latest View live