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

DatePicker Maximum and Minimum date property

$
0
0

I am trying to bind the maximum and minimum date property of date picker. However when I bring up the date picker I see all the dates available. Here is the code I am using-

pickupDatePicker.SetBinding(DatePicker.MaximumDateProperty,new Binding("MaximumAvailableDate",BindingMode.OneWay));
pickupDatePicker.SetBinding(DatePicker.MinimumDateProperty,new Binding("MinimumAvailableDate",BindingMode.OneWay));

Is there a way I can hide/disable all dates that fall outside of the minimum and maximum date range.

Thanks


Can't install Google Play Services GCM (Xamarin Beta)

$
0
0

are showing this error!

Attempting to resolve dependencies for package 'Xamarin.GooglePlayServices.Gcm.32.961.0' with DependencyBehavior 'Lowest'
Unable to find a version of 'Xamarin.Android.Support.v4' that is compatible with 'Xamarin.GooglePlayServices.Basement 32.961.0 constraint: Xamarin.Android.Support.v4 (>= 24.2.1)'.

how can i solve it?!

StripeView in Xamarin Forms

$
0
0

I did a little research and it seems braintree and stripe are suitable for app payments.
braintree has no official xamarin bindings but there's a Stripe component by Xamarin for Android and iOS.
is it possible to use this component in Xamarin.Forms (and it's StripeView UI) ?

App crashing on Windows Phone when deplyed in Release mode

$
0
0

Hi,

We have developed a Xamarin Forms app supporting Android, iOS and Windows Phone. The app is working on all three OS when deployed in Debug mode. It's also working on Android and iOS when deployed in Release mode. It crashes immediately after displaying Splash screen on Windows Phone 8.1/10 when deployed with Release mode but strangely all works fine when deployed using Debug mode.

Any idea from experts here?
Is there any way to get see the app log to diagnose the crash reason?

Thank you,
Deepak Sakpal

EntryCell Password

$
0
0

Anyone found a way to make an EntryCell a password field so you get ********** when the user enters a password ?

Pop-Up Windows by tapping text inside a label

$
0
0

I'd like to implement in a xamarin forms app a glossary, ie: if the user taps a word in a block of text inside a label, a windows is popped up with an explanation of the word.
Alessandro

How to change Android Primary Color from Xamarin Forms

$
0
0

Hi,

I would like to change the Android primary color programmatically from Xamarin Forms, how can I do it?

-iKK

Xamarin.forms.maps : UWP Map not showing when app is deployed to store

$
0
0

Hi,
i've developed a Xamarin forms application, the map is working great in Android both in dev and production, UWP map works great in dev environement when the app is deployed directly to the device, but when deployed to the store the map does'nt even appear.

Anyone has deployed a map app to the store ??
it's a simple application with just a map .
and of course, i'm using a valid bing map key

thanks


How close mi app with DisplayAlert??

$
0
0

How close mi app with DisplayAlert. DisplayAlert("Alert", "A problem has occurred", "Close");

How can I make use of sockets and threads timers in xamarin form?

$
0
0

How can I make use of sockets and threads timers in xamarin form??

Drag & Drop item between listviews

$
0
0

Hi all, any idea how I can implement drag & drop between to listviews that works for iOS, Android and UWP?

Thanks

How do I define a StaticResource of type Thickness?

$
0
0

I am trying to define a StaticResource in an application-level ResourceDictionary, and I am having trouble with the following markup:

      <Thickness x:Key="RelativeLayoutPadding">
        <Setter Property="Top" Value="15" />
        <Setter Property="Bottom" Value="15" />
        <Setter Property="Left" Value="15" />
        <Setter Property="Right" Value="15" />
      </Thickness>

I know the ResourceDictionary works, because it works with other types that I am setting, such as Doubles. However, for this markup, I get the error message that the property "Top" cannot be resolved (with a XamlParse exception). I originally thought this might be because the Thickness structure may not have public static properties for its Top, Bottom, Left, and Right Doubles. However, I have seen sample code for LayoutOptions having its Alignment property defined as a StaticResource and it is unclear from the documentation as to whether or not either the Alignment property or the Top, Bottom, Left, and Right properties are static. All, however, are clearly public, so I don't understand why the Setter class should have any issue in setting these properties. Please provide assistance.

Thanks,
Jordan

Xamarin Forms - Change Android Toolbar height

$
0
0

Hey guys , how can i set the height of my android toolbar in XF ?

I added this but made no difference : android:layout_height="30dp"

This is my Toolbar.xml

<?xml version="1.0" encoding="utf-8"?>
<android.support.v7.widget.Toolbar xmlns:android="http://schemas.android.com/apk/res/android"
    xmlns:app="http://schemas.android.com/apk/res-auto"
    android:id="@+id/toolbar"
    android:layout_width="match_parent"
    android:layout_height="30dp"
    android:background="?attr/colorPrimary"
    android:popupTheme="@style/ThemeOverlay.AppCompat.Light"
    app:titleTextAppearance="@style/Toolbar.TitleText"
    app:layout_scrollFlags="scroll|enterAlways" />

Microsoft Ad SDK

$
0
0

Hi,

I have built the application and trying to integrate Microsoft Advertisment SDK for Universal Apps. Can you help me to integrate Microsoft Advertisment SDK for Windows Universal Apps ?

How to restore the navigation stack after page suspend / resume in Xamarin.Forms

$
0
0

Hey Guys,

I'm just getting used to Xamarin.Forms and cant seem to find a standard way of restoring the navigation stack after a suspend / restore (like when the device gets rotated).

Using either the v1.3.0 release or maybe even xamarin.forms.labs I can capture some restore/suspend events, but I dont understand how I'm meant to restore the navigation stack in my app?

For example, if I have my HomeView and HomeViewModel, which has a list view of items. Somebody clicks the list view item and it navigates to my ItemView and ItemViewModel. Then the user rotates the screen - how do I restore them to where they just were?

Can anyone point me in the right direction?

Thanks

Matt


Bug: RelativeLayout Not Obeying Padding or LayoutOptions

$
0
0

Xamarin Team,

I have been trying to use RelativeLayout for my application, and I've also been trying to abstract the Padding and LayoutOptions for this layout to an application-level ResourceDictionary.

I've tried simplifying this down to a very simple case where I have the following in my application-level ResourceDictionary:
`<Application.Resources>


  <LayoutOptions x:Key="RelativeLayout_HorizontalOptions"
                 Alignment="End"
                 Expands="True" />

  <LayoutOptions x:Key="RelativeLayout_VerticalOptions"
    Alignment="Start"
    Expands="False" />
</ResourceDictionary>

</Application.Resources>`

And I have the following markup in my RelativeLayout:

<RelativeLayout Padding="50" BackgroundColor="Red" HorizontalOptions="{StaticResource RelativeLayout_HorizontalOptions}"  VerticalOptions="{StaticResource RelativeLayout_VerticalOptions}">
    <Label Text="Test Label" />
</RelativeLayout>

When the layout is a RelativeLayout the padding is not obeyed at all, but the Alignment for the LayoutOptions is obeyed, while the Expands Boolean is not obeyed. I originally thought this may be because of an inability to parse a String to a Boolean, but this is not the case, as far as I can tell, since the example here shows LayoutOptions done in exactly this way, and the Boolean structure documentation clearly states that the String representation of a Boolean is either "True" or "False", in order for it to be parse-able.

Switching the RelativeLayout to a StackLayout causes the Padding StaticResource definition to be obeyed, but, just as in the case of RelativeLayout, the StackLayout only obeys the Alignment property of the LayoutOptions StaticResource and not the Expands property.

Please look into this bug, since it is at such a fundamental level.

need help with adding an uber like functionality to an existing Xamarin forms app

$
0
0

hi,
i have a xamarin forms app where the client needs to implements an uber like functionality for his clients and employees, the problem is i don't know where to start i need to implement google maps and to be able to draw the trip on the map, also for the updates do i use signalR or is the anther way that is better ?

any help will be much appreciated

XamlCSS - Styling Xaml-Applications with CSS

$
0
0

Hi there!

I recently released a new library: XamlCSS.
It enables you to style your Xaml-applications with CSS.

For Xamarin.Forms: https://www.nuget.org/packages/XamlCSS.XamarinForms/0.9.0-alpha
For WPF: https://www.nuget.org/packages/XamlCSS.WPF/0.9.0-alpha
For UWP: https://www.nuget.org/packages/XamlCSS.UWP/0.9.0-alpha

Example:

Grid Grid Label:nth-of-type(2)
{
    Grid.Row: 1;
    Grid.Column: 0;
    Text: {StaticResource resourceKey};
}

It comes in 3 flavors:

  • for Xamarin.Forms
  • for UWP
  • for WPF

Unfortunately the only documentation at the moment is the sourcecode of the sample-apps in the github-project (https://github.com/warappa/XamlCSS).

I would appreciate if you would provide me with feedback.

The "XamlCTask" task failed unexpectedly.

$
0
0

Hello Team,
I am facing this The "XamlCTask" task failed unexpectedly. problem after adding the xamarin.forms.maps package to my application.

Waiting for your response.

Register a new user with facebook

$
0
0

Hi
I want to develop a Xamarin forms app that will let new users who first time use the app to register by Facebook. My question is lets say that the user want to register with Facebook. I can get his email and username but how to save it on Azure or parse. The user will be able to see and add existing users to his friend list or invite friends from facebook.

I know Firebase can solve my problem but i cant find good guide to implement it with Xamarin forms. Do you know a good way to solve this problem so the user can register by any identity provider and linking different user accounts with same user.

Thank you in advance!

Viewing all 91519 articles
Browse latest View live


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