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

Start DataPicker by clicking an EditText

$
0
0

Hi, i'm working on a WP project;
I should launch a datepicker by clicking on the EditText, then return the actual value.
The problem is that when by the code is try to link the Datepicker variable to the xaml Datepicker, the binding doesn't work and the variable stay null.

C#

Definition:
[System.CodeDom.Compiler.GeneratedCodeAttribute("Xamarin.Forms.Build.Tasks.XamlG", "0.0.0.0")] private global::Xamarin.Forms.DatePicker DataPick;
Binding:
[System.CodeDom.Compiler.GeneratedCodeAttribute("Xamarin.Forms.Build.Tasks.XamlG", "0.0.0.0")] private global::Xamarin.Forms.DatePicker DataPick;

XAML:

`[System.CodeDom.Compiler.GeneratedCodeAttribute("Xamarin.Forms.Build.Tasks.XamlG", "0.0.0.0")]

private global::Xamarin.Forms.DatePicker DataPick;`

Am I doing something wrong?


Viewing all articles
Browse latest Browse all 91519

Trending Articles



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