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

Are there any working Plugins for Push Notifications, for a project developed in xamarin forms?

$
0
0

The nuget package named Plugin.pushnotification creates error in Styles.xml in runtime, whereas the Xamarin.GooglePlayServices.GCM plugin gives a Java.lang Error. can you suggest any ways to do push notifications???

Error:

Error retrieving parent for item: No resource found that matches the given name 'Theme.AppCompat.Light.DarkActionBar'. (APT0000) (monSFest.Droid)


How to open master detail menu from another content page button click?

$
0
0

I want to open master details menu from another content page button click event?
so how to do this in xamarin forms?

Xamarin Forms and Estimote SDK?

Android Binding library resource not found

$
0
0

I have created the binding library, when i implement the function and build the android application i getting below error.

No resource found that matches the given name (at 'textColor' with value '@color/bt_white').
No resource found that matches the given name (at 'background' with value '@color/bt_blue').
No resource found that matches the given name (at 'drawable' with value '@color/bt_black_12').

how to fix it

Set an app icon in the oncreate method

$
0
0

Hello,
I would like to set my app icon based on an action which occurs in my oncreate method.

It should work something like this pseudo code:

if(Userlicence == other) 
    Icon = othericon

Icon = @drawable/icon --- defined in the Activity attribute

After some reseach I am no sure if this is possible or not.
Does anyone know this ?

Voip Push Notification + Pushkit

$
0
0

Hi all,

Now a days i am trying to configure Pushkit and receive VoIP notification.
I have done all the basic steps from certificate to pushkit in xamarin forms.
Now i am trying to send VoIP push but i am receiving token invalid if i use Push-Sharp.
I tried to use HOUSTON , ONESIGNAL to send VoIP push but no luck.

Anyone who help to what i am missing and whats is the main problem , I searched on internet but didn't find the good resource for xamarin.

I am totally tired and i don't know what to do .

Please guide if anyone have any solution.

Regards

Aqtif

Download, save and display Pdf file

$
0
0

I have the following requirements in my xamarin.forms app

  1. I need to download a pdf file from the url on button click
  2. Need to save them locally in defined folder
  3. Then i need to display with installed pdf viewer.

Any help on this? @FredyWenger @MitchMilam

Create ToolbarItems using template or some other dynamic mechanism.

$
0
0

Hi guys,

I have few common toolbar items which I want to add on every view of the application.
(Though there are some specific items per view, however let's not worry about them right now.)

What I want is to add these common toolbar items via a template or external file/code in XF - PCL.

I tried the following code which gets compiled without error, however crashes, I am not sure how I can overcome this issue.

MainPage.xaml: (Note the xmlns:mnu)

<?xml version="1.0" encoding="utf-8" ?>
<ContentPage xmlns="http://xamarin.com/schemas/2014/forms"
             xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
             xmlns:mnu="clr-namespace:Toolbarz.Views;assembly=Toolbarz"
             xmlns:prism="clr-namespace:Prism.Mvvm;assembly=Prism.Forms"
             prism:ViewModelLocator.AutowireViewModel="True"
             x:Class="Toolbarz.Views.MainPage"
             Title="MainPage">
    <mnu:ToolBarMenu></mnu:ToolBarMenu> <!--THIS GETS COMPILED HOWEVER DOES NOT WORK-->
    <!--
         THIS CODE WORKS
         <ContentPage.ToolbarItems>
             <ToolbarItem Text="Help" Priority="0" Order="Secondary"/>
             <ToolbarItem Text="License" Priority="0" Order="Secondary"/>
             <ToolbarItem Text="About" Priority="0" Order="Secondary"/>
         </ContentPage.ToolbarItems>-->
    <ContentPage.Content>
    <StackLayout HorizontalOptions="Center" VerticalOptions="Center">
        ....
    </StackLayout>
    </ContentPage.Content>
</ContentPage>

ToolBarMenu.xaml

<?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="Toolbarz.Views.ToolBarMenu">
    <ContentPage.ToolbarItems>
        <ToolbarItem Text="Help" Priority="0" Order="Secondary"/>
        <ToolbarItem Text="License" Priority="0" Order="Secondary"/>
        <ToolbarItem Text="About" Priority="0" Order="Secondary"/>
    </ContentPage.ToolbarItems>
</ContentView>

Can you suggest what's wrong with this approach?
OR
Could you please suggest any solution which will help me use the ToolbarItems using some template?

Thanks.
N Baua


Xamarin Forms 2D Space Game

$
0
0

I have to Develop a 2d game, Airplane and Enemies with dark background....

I have searched on google i can't to find... Please share if you have any idea...i am new to this game development

Thanks in Advance ...

Call Navigation.PushAsync from ViewModel

$
0
0

Hello,

I want to push a new page from a viewModel.

Can I call this method from outside the page?

Thanks in advance.
Mostafa

How to change Navigation Bar Color

$
0
0

Here is my code:

public partial class MainPage : MasterDetailPage
{
        public MainPage()
        {
                Detail = new NavigationPage(new RootPage());
        }
}

<?xml version="1.0" encoding="UTF-8"?>
<ContentPage Title="Root" xmlns="http://xamarin.com/schemas/2014/forms" xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml" x:Class="my.RootPage">
    <ContentPage.ToolbarItems>
        <ToolbarItem   Name="Refresh" Icon="" Activated="OnRefresh" />
    </ContentPage.ToolbarItems>

    <ContentPage.Content >
        <StackLayout >
            ...
        </StackLayout>
    </ContentPage.Content>
</ContentPage>

How do i change so that I can change the Page's background color including the Toolbar as well?

Use github project into your project

$
0
0

Hi guys. Been a developer for years now mostly Web and native IOS. Picked this gem (xamarin) up last week to see what the fuss is all about :). Started some courses and now first project in xamarin forms and I already really enjoy using it.

So I have 3 noob questions that I can't figure out:

1) sometimes I search up stuff on github and use it in my own projects but in xamarin I don't really understand how that would work. I understand using nugget for packages/components but what if they can't be found with that and the files has to be manually imported. Do I just take all the files and drop them in packages? For sake of example I want to add this https://gitlab.com/PoroCYon/PokeApi.NET

2) what is the difference between packages/components (maybe this question is answered somewhere else)

3) so the way I am working now is creating interface/views in the shared project. But when it comes down to the real logic I code It in a class that implements the interface in the iOS/Droid project. Is this right? I am copying allot of logic code to both projects. Is this the way or do I miss something?

Thank you for taking the time to deal with this noob.

How to open other apps from xamarin forms

$
0
0

How to open other apps from xamarin forms ?
or
How to open other apps from xamarin forms apps

Implementing Radio button contrl in Xamarin forms

$
0
0

Hi,

We are evaluating Xamarin.Forms with creating sample application.We are not able to find Radio button control in Xamarin.Forms. Kindly anyone show me the direction on how to implement Radio button in Xamarin.Forms Control.Can we port(use) Xamarin radio button control in Xamarin.Forms using Custom renderer or any other options available to utilize the Radio button in Xamarin.Forms.

Kindly suggest me on this with any sample.

Thanks

ObservableCollection fails on clear / add

$
0
0

See screen shot. DepositSet.Items is an ObservableCollection.


Black bars in ListView - Xamarin.Forms - iOS only

$
0
0

We detected on some iOS devices a strange problem with our ListView.
Sometimes black bars are occuring on the screen. This mostly happens directly before a dialog appeare.

I attached some screenshots (the red areas are just to hide sensitive data not the bug):

The development environment:
Xamarin.Forms v2.3.4.270
Visual Studio 2017
Xamarin.iOS SDK 10.12.0.20 (80b8487) (smae on the build Mac)

This seems to be a really special problem probably someone experience something similar top this and could help me?

ScrollView control in CarouselPage

$
0
0

Hi guys!

I create CarouselPage and it contains the element ScrollView, Swipes are not recognized very well. I know that I can add swipes to some static UI control, can I add them to the ToolBar of my page?

Help with Embedding Power BI into Xamarin Forms

$
0
0

Hi Guys,

I am so very close to getting PowerBi Embedded to work in Xamarin forms, at the moment all I am getting is the Power BI Loading symbol. As you can see from the below image.

I think this is because I need to submit my token to the page somehow, I have a token but need someway of doing it. The way this was done on another app of mine was to use a ActiveX postMessage. I'm not sure if I need to do something similar but with WebView.Eval() and Javascript.

Any help is appreciated,

Thanks

App not using latest code when debugging

$
0
0

I'm using Xamarin.Forms with Visual Studio 2017. When I make changes to my code and run it either on an emulator or on my phone, the code does not update and the app builds with an old version of the code. If I clean and rebuild the solution it will be updated, but still won't update on it's own when clicking run. I didn't have to do this every time until sometime yesterday. Uninstalling the app from the phone or emulator and then building does not update the code either. Deleting bin/obj updates the code once, but then the code won't update again unless I go and delete those folders again. Anyone else having this issue?

ContentView calls to ContentPage parent in Xamarin Forms

$
0
0

There are any way to call a method of my parent View (ContentPage) from my actual View (ContentView).

I mean, I want to use ContentView to refresh only a part of the screen, the problem is when I want use methos or propertys of Pages, like IsBusy or DisplayAlert.

Any idea to communicate the View with the Page?

Thank you advanced!

Viewing all 77050 articles
Browse latest View live


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