Quantcast
Channel: Xamarin.Forms — Xamarin Community Forums
Viewing all 77050 articles
Browse latest View live

How to implement kiosk mode for xamarin.forms applications.

$
0
0

I have been searching for the sample application in xamarin. forms which run in kiosk mode, but I could not find it anywhere. can someone please help me to implement kiosk mode application, it would be a great help.

Thanks in advance.


Retrieving data from an asmx web service which returns a dataset

$
0
0

I'd like to know if I can retrieve data from an asmx web service which returns a dataset. If so, any tips?

Both binding source on Listview

$
0
0

I have this listview, but for the MenuItem I pass a comand ToRemovePersonand ( in my VM ) but there isn't binding because there is into the listview.
how I can specify the source of the command.

<ListView ItemsSource="{Binding DatasModels}" x:Name="listViewDatas"
                          IsPullToRefreshEnabled="true"
                      RefreshCommand="{Binding RefreshCommand}"
                        IsRefreshing="{Binding IsRefreshing}">
                <ListView.ItemTemplate>
                    <DataTemplate>
                        <ViewCell>
                            <ViewCell.ContextActions>
                                <MenuItem  Command="{Binding ToRemovePerson}" CommandParameter="{Binding .}"
                                Text="Delete" IsDestructive="True"/>
                            </ViewCell.ContextActions>

                            <StackLayout Orientation="Horizontal">
                                <Label Text="{Binding Firstname}"/>
                                <Label Text="{Binding Lastname}"/>
                                <Label Text="{Binding Company}"/>
                            </StackLayout>
                        </ViewCell>
                    </DataTemplate>
                </ListView.ItemTemplate>
                <ListView.Behaviors>
                    <behaviors:ListViewBehavior Command="{Binding SelectedItemList}" Converter="{StaticResource SelectedItemConverter}" />
                </ListView.Behaviors>
            </ListView>

UWA doesn't run

$
0
0

DEP3321: To deploy this application, your deployment target should be running Windows Universal Runtime version 10.0.15063.0 or higher. You currently are running version 10.0.10240.17443. Please update your OS, or change your deployment target to a device with the appropriate version.

Deleting cached image with the same Uri

$
0
0

How do i delete cached image with the same Uri (old cached image always served after user change his profile image which has the same Uri)
I tried with FFImageLoading CachedImage.InvalidateCache(_userProfileImagePath, CacheType.All, true); and set CachingEnabled="False" with regular image
<ImageButton Command="{Binding SetPageCommand}" CommandParameter="{Binding MenuItems[8].TargetType}"> <ImageButton.Source> <UriImageSource Uri="{Binding UserProfileImagePath}" CachingEnabled="False"/> </ImageButton.Source> </ImageButton>

Tab indicator in Xamarin Forms Tabbed Page placed at bottom

$
0
0

I have a Xamarin Forms bottom placed tabbed page rendered using C#. I want a tab indicator to be displayed above each tab icons as it would in a top placed tabbed page. Is it possible? I am not able to find solution anywhere. I came across this SO post - https://stackoverflow.com/a/41570159/10329199, where we can define app:tabIndicatorColor="#123456" in Tabbar.axml. But I didnt work because I'm rendering the tabbar using C# not in AXML. I also want this tab indicator in iOS. Thanks

Xamarin Live Player vs Gorilla Player

$
0
0

Can someone tell me what is better at the current moment? Xamarin Live Player is official, but still in development. Gorilla player seems more stable. Did you test them both so you can tell me the differences?

Unable to navigate to next 8th page after 7 pages navigated in xamarin forms using prism

$
0
0

I am unable to navigate to 8th from 7th page in prism

Please help....


This app is incompatible with all of your devices

$
0
0

Hi,
I have published my first app and it is working well on my mobile. But I can't find it from play store search as well as other people. When I open it directly from the link I can see the message: This app is incompatible with all of your devices. Probably this is why I can't find it.
Can you help me fix it?
This is my manifest.xml

<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http -removed ://- schemas.android.com/apk/res/android" android:versionCode="5" android:versionName="1.0" package="dillos.taxcalculator.android" android:installLocation="auto">
    <uses-sdk android:minSdkVersion="22" android:targetSdkVersion="27" />
    <uses-permission android:name="android.permission.INTERNET" />
    <uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" />
    <application android:label="Kalkulator Przedsiębiorcy 2019" android:icon="@drawable/iconcalc">
        <activity android:name="com.google.android.gms.ads.AdActivity" android:configChanges="keyboard|keyboardHidden|orientation|screenLayout|uiMode|screenSize|smallestScreenSize" android:theme="@android:style/Theme.Translucent" />
    </application>
    <meta-data android:name="com.google.android.gms.ads.APPLICATION_ID" android:value="ca-app-pub-9289439137782734~6416628524" />
</manifest>

Custom Map tiles Overlay hides my routes highlight

$
0
0

Hello everyone, I'am currently working on a Pcl project that, among other things, displays a custom map.

I have used this tutorial to customize my map :

and this one to add custom map tiles.

and finally I used this tutorial to highlight routes on the map :

My map works well, the custom tiles overlay looks nice and I managed to change the look of the pins on the map (yay!)

Now my problem is this : My highlighted routes are not visible on the map.

I know the routes are being displayed because if I zoom in or zoom out of the map, I can actually see the highlighted routes during the short time the custom tile overlay is loading and is not being displayed.

wich makes me guess that my map tiles overlay hides my highlighted routes.

I wanted to know if this was a known issue because I couldnt find anything about this problem online. I can post my code if requested.

Thanks in advance for any bit of advice or ideas :)

Picker pops up twice

$
0
0

I have a simple picker inside a list view and on my devices when I use my finger to scroll or tap it pops up twice

I have verified this on multiple devices and I know it is not my code - it's just a picker

best

JK

Develop Xamarin app for Knox platform

$
0
0

Hi, I am new to Xamarin development trying to develop a proof of concept app with Xamarin forms that will be deployed on Samsung on a knox workspace and pushed to the devices with BlackBerry bes server. I was able to create a simple app that runs on a device with no Knox that runs with no issues. Can someone direct me what is needed to accomplish this task or reference any article that outlines the steps

I developed an Application based on Android 8.1 and I need to downgrade it to Android 5.0

$
0
0

Once I did though the application gives me a lot of errors, even after downloading android SDK for 5.0, is it Nuget problem? if though how I downgrade the NuGet packages, what is the root cause?

**Some of the Errors:
Error max res 21, skipping mipmap-anydpi-v26 "max res 21, skipping mipmap-anydpi-v26".
Error No resource found that matches the given name: attr 'windowNoTitle'.
Error NU1202 Package Xamarin.Android.Support.v7.AppCompat 27.0.2.1 is not compatible with monoandroid50 (MonoAndroid,Version=v5.0). Package Xamarin.Android.Support.v7.AppCompat 27.0.2.1 supports: monoandroid81 (MonoAndroid,Version=v8.1)

Hi, I am facing Deployment to emulator error in Xamarin Forms

$
0
0

I am trying to build a Xamarin forms Application, It's a blank code, the code builds perfectly without error but it does not get deployed on an emulator.

If I click "Start without Debugging" then the application gets installed on my emulator or else it stays black and after building complete I get just a "Ready" output. It happened all of sudden. Visual Studio version: VS2017 15.9.6

Can anyone help me with this? It started out of nowhere.

I tried to search for mono in "Extensions and Update" to enable it but couldn't find anything installed. If I try to install mono it gives an error "Either it is not compatible or already installed"

Also in my registry, I can't find the SDK path.

I need visual studio to build and display output in emulator.!

How to add a black strokes to my white text?????


Obtaining Exception "Xamarin.Forms.Platform.Android.Platform+DefaultRenderer"'.

$
0
0

Hi ,

I have facing the below exception issue while using the rotator click one page and move on to next page this crash occur.

This happens randomly don't know why it comes

"Unhandled Exception:
System.ObjectDisposedException: Cannot access a disposed object.
Object name: 'Xamarin.Forms.Platform.Android.Platform+DefaultRenderer'."

Could you please provide any solution to override this

CarrouselView, what happened?

$
0
0

I read some posts about Xamarin.Forms.CarouselView, but this still in pre-release state "2.3.0-pre2".
In some forum thread I read that the project moved to https://github.com/alexrainman/CarouselView with the possibility of merging into Xamarin.Forms.
Has been merged already at this version (Xamarin.Forms 3.5)?? . If not, Is there any plans soon?

UWP LaunchUriAsync failing without error message

$
0
0

I have a UWP app, and I am trying to get it to ask the device to open a pdf in whatever manner it chooses.

The code looks like this:

async static partial void OpenFileWithNativeApp(string filepath)
    {
        Device.BeginInvokeOnMainThread(async () =>
        {
            Uri targetUri = new Uri(filepath);
            bool outcome = await Windows.System.Launcher.LaunchUriAsync(targetUri);
        });
    }

filepath is roughly: {file:///C:/Users/walter.fakename/AppData/Local/Packages/Guid/LocalState/PDFWhatever.pdf} . I can navigate to that place on my c drive, and the pdf is actually there.

When I run this code the outcome that is set by LaunchUriAsync is set to false, indicating that the Uri was not successfully launched. This is correct, as indeed, no other app launches the Uri. But it doesn't tell me how to fix it, such that the Uri would be successfully launched by whatever browser or pdf viewer the device associates with pdfs.

Does anyone see what I'm doing wrong?

-Regards,
Walter

TabbedPage using Iconize nuget.

Shell - Add page with constructor argument

$
0
0

I'm trying to use the new Shell for Forms 4.0

I have some pages that I would have added in the past like this new GenericPage("link");

Is there a way I can do that with Shell in xaml?

This is what I have now:

    <ShellItem x:Name="RepSpotlight">
        <ShellSection Title="Stats" Icon="tab_feed.png">
            <ShellContent ContentTemplate="{DataTemplate local:Spotlight.StatsPage}" />
        </ShellSection>
        <ShellSection Title="Upcoming" Icon="tab_about.png">
            <ShellContent ContentTemplate="{DataTemplate local:Spotlight.UpcomingPage}"  />
        </ShellSection>
        <ShellSection Title="By Month" Icon="tab_about.png">
            <ShellContent ContentTemplate="{DataTemplate local:Spotlight.ByMonthPage}" />
        </ShellSection>
    </ShellItem>

I'd love to be able to do something like this:

<ShellSection Title="Stats" Icon="tab_feed.png">
<ShellContent ContentTemplate="{DataTemplate local:Spotlight.GenericPage("stats")}" />
</ShellSection>

Or maybe something like:

<ShellSection Title="Stats" Icon="tab_feed.png">
<ShellContent ContentTemplate="{DataTemplate local:Spotlight.GenericPage}" parameter="stats" />
</ShellSection>

Is anything similar to this possible? How would I go about doing it?

Thanks!

Viewing all 77050 articles
Browse latest View live


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>