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

How to add swiping dots to Tabbed/Carousel page?

$
0
0

I'm wondering how to add dots indicating to swipe screens in either TabbedPage or CarouselPage like in the below image?

I tried adding images for that but they don't look natural so is there a real way for doing that?

My above workaround explanation in an example with 3 page:

I create 3 images each image has 3 dots one of them is highlighted:

First image highlighted dot is the first one.

Second image highlighted dot is the second one.

and etc.


Use .Xaml X:names in another .Xaml.cs?

$
0
0

Hi, can anybody tell me if this is possible and the best way to do it.

I have created a ContentView which is called Page21.xaml inside that file I have an Entry with an x:Name of 'page21entry'. Is there anyway to pull that through to my MainPage.xaml.cs so I can use it in a function.

Hope that makes sense

AdMob appears only after rotation

$
0
0

Hi !
I implemented AdMob in my Xamarin.Forms app (VS2017 community) following guidelines from
"AdMob In Xamarin.Forms – Display Google Ads In Your Mobile App" (posted by: Adam Pedley in Xamarin Help Community Site"
and it works fine but ads do not show initially in portrait mode, but only after the device is rotated to landscape. Once they show in landscape mode, I can rotate back to portrait and ads stay visible.
So any suggestions as to why ads do not show initially in portrait mode ?
I created test app using VS2017 cross platform xamarin.forms project and the problem seems to persist....
Any suggestions ?

having an hamburger menu on a tabbedpage

$
0
0

Is it possible to add an hamburger menu (one like on the masterdetail page) on a tabbedpage.
if so please help me i have no idea how i could manage this

Xamarin data transfer with Wi-Fi (HotSpot or Wi-Fi Driect)

$
0
0

I'm working on Arduino & Xamarin project. I want to data transfer with Wi-Fi. My codes ready Arduino side, but i don't find Xamarin Android source(Wi-Fi Source). I want to record a video with an Arduino camera and I want to send the video to an Android Phone via Wi-Fi connection.

Execute function after entry is completed not working in c#

$
0
0

Hello Folks, I want to execute the function OnRecoverButtonClicked() after the repeatNewPasswordEntry is completed, but the way I wrote the code is not working, can anyone give me some light? I'm making the App only in C# and not in XAML.

        repeatNewPasswordEntry = new Entry
        {
            Placeholder = "Repita a nova senha",
            IsVisible = false,
            IsPassword = true,
            Style = (Style)Application.Current.Resources["acessEntryStyle"]
        };
        repeatNewPasswordEntry.Completed += (object sender, EventArgs e) =>
        {
            recoverButton.Clicked += OnRecoverButtonClicked;
        };

I have tried

repeatNewPasswordEntry.Completed += (object sender, EventArgs e) =>
        {
            recoverButton.Command.Execute(null);
        };

To execute the method but doesnt work also

How to access ContentView objects (x:Name) when you include this contentview in a page?

$
0
0

Hello,

I got this page:

<ContentPage xmlns="http://xamarin.com/schemas/2014/forms"
             xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
             x:Class="Manager.Pages.EstablishmentCreateUser"
             xmlns:local="clr-namespace:APP.Views;assembly=APP"
             Title="Create user">
    <local:UserInfos/>
</ContentPage>

And i got this ContentView:

<?xml version="1.0" encoding="UTF-8"?>
<ContentView xmlns="http://xamarin.com/schemas/2014/forms" xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml" x:Class="APP.Views.UserInfos">
    <ContentView.Content>
        <StackLayout Orientation="Vertical">
            <Entry x:Name="E_Firstname" Placeholder="Prénom"/>
            <Entry x:Name="E_Lastname" Placeholder="Nom"/>
            <Entry x:Name="E_RegistrationNumber" Placeholder="Matricule"/>
            <Entry x:Name="E_Phone" Placeholder="Téléphone fixe"/>
            <Entry x:Name="E_Mobile" Placeholder="Téléphone mobile"/>
            <Entry x:Name="E_Email" Placeholder="Adresse électronique"/>
            <Entry x:Name="E_Adress" Placeholder="Adresse du domicile"/>
            <Picker x:Name="P_Job"/>
            <Picker x:Name="P_WeeklyHours"/>
            <StackLayout Orientation="Horizontal">
                <Label x:Name="L_Intermittent" Text="Intermittent"/>
                <Switch x:Name="S_Intermittent"/>
            </StackLayout>
        </StackLayout>
    </ContentView.Content>
</ContentView>

My design works fine but i'm trying to access :xName entries from my ContentView when i'm in my Page.
How i can access it?

Best regards

Button Text Color

$
0
0

My button text color is changing which I dont want to do on disabling the font button. Here is my code

 IconButton.Clicked += (sender, e) =>
                        {
                           ((FontButton)sender).IsEnabled = false;
                            ((FontButton)sender).TextColor = Item.IconColor;
                             SelectedItem(((FontButton)sender).ClassId);
                        };

Remove page from Navigation

$
0
0

In my app structure is like below,
List Page -> Detail Page -> Edit Page

and in edit page there is button "Delete" which removes data from database.

Now my problem is to navigate user from Edit page to List Page,

I'm using Navigation.popasync 2 times for this, but on detail page i'm getting error from service that no such record exist.

How can i properly navigate user from Edit page to list page?

Having a hamburger menu on tabbedpage

$
0
0

The title kinda already describes my problem.
is it possible to have an hamburger menu on my tabbedpage? could someone help me how i can do this... i have no idea

Button color

$
0
0
Hi All,

I am developing application using xamarin.forms. it is supporting API level 19 to 26 in Android. Previously it was supporting till API level 24 then we have upgraded packages to support till API level 26. After that I am facing issue for button background color. In one of my device which is supporting API level 19, button is rendering with background color greish. I am not able to identify issue. Same code is working fine to device which is supporting API level 24.


Can anyone help me here to resolve this issue?

Xamarin Picker

$
0
0

After selecting a Picker ,I want to truncate the selected picker text in end if It's not coming in single line with ....

In ios it's working automatically but I'm unable to do the same in android.

E.g.

Seleced Picker Text should come like this: xyz...

Forcing the Media Plugin picker/camera to close

$
0
0

Just what the title says, when I background the app I'd like to force the camera picker to close and not sure if there is a built in way to do this?

Just to be clear, calling TakePhotoAsync or PickPhotoAsync shows a popup that I'd like to be able to close without user intervention.

Any help/suggestions would be appreciated!

Image Performance in Xamarin forms

$
0
0

Hi Everyone. I'm working with an Application which deals with a lot of Images from Server. Sometimes (I thought due to less memory but it's the same in all devices) the images are not showing and getting disappear from the view. I can't understand why it's happening. I have gone through Glidex but unable to install it due to Package conflictions. If anyone knows how to increase the performance of the app which deals with images, please help me.

Any help is appreciated.

Get image thumbnail from a video file.

$
0
0

Hey, I tried a lot of tutorials and some of the NuGet packages (most of them are not free, instead I need a free one) and yet I failed to find a solution for this "get thumbnail from a video file in Xamarin (or c#)", so can anyone provide me a solution on how to create a thumbnail image from a video file (when pick existing video or take a new one), it would be much appreciated.


How to open excel sheet in your app

$
0
0

i am using xamarin forms how can i open excel sheet in my app its urgent

REPL Not Working

$
0
0

public void SearchBar()
{
app.Repl();
app.Screenshot("Welcome screen");
app.PressEnter();
app.Tap(x => x.Marked("AIDSearchBarButton"));
app.Screenshot("SearchBarButton Tap screen");
}

Have anyone got HardwareAndro's "Xamarin-Firebase Real Time Database" to work - The observable one?

Listview's activity indicator sometimes leaves space on top of the listview

$
0
0

Hi all,

I have an issue with the xamarin forms IOS listview. Sometimes randomly the space of the listview's activity indicator remains after a pull refresh of a listview. Only the space and not the activity indicator itself. If you make another pull refresh to that listview the space is disappeared as it should normally do. Of course on Android device this never happens. I could guess that the refresh indicator on android doesn't create an extra space above the list as it seems when you make the pull refresh.
I describe below what happens when a pull refresh is activated in my app.
In my code for each pull refresh the following steps are followed :
1) the listview.ItemsSource = null;
2) fill an ObservableCollection object with data from a server
3) listview.ItemsSource = ObservableCollection_Object;
4) listview.EndRefresh();

In the listview xaml tag i have set the following properties :
IsPullToRefreshEnabled="True" IsRefreshing="{Binding IsRefreshing}"

I can't figure it out why that happen.

So, Has someone faced a similar problem ?
Could anyone show me into the right direction in order to find a solution for that issue?

Thanks in advance!

QueryAsync is not returning columns using Sqlite-net-pcl

$
0
0

Hello ,

I am trying to get List of rows using Sqlite.QueryAsync() method. something like this. I am getting correct number of rows but there are no values in those rows. Database is created outside project using (DB browser) and used in PCL project. I am facing this problem with all Query or QueryAsync, rest of functions Table,deleteAsync, updateAsync etc. all are working fine. Did anyone faced similar problem? Or Is there any other way to fetch column from sqlite database?

var t= databaseAsync.QueryAsync<int>("Select distinct HospitalId from HospitalServices where ServiceId in (1,2,6)");

Somewhat like this

I am using sqlite-net-pcl 1.5.231 and sqlitedatabase in android asset.

Viewing all 91519 articles
Browse latest View live


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