Problema al bindear un label en xamarin forms

Tengo un problema al intentar bindear diferentes datos a labels en una vista.

Yo tengo la vista

CobroPendiente.xaml

<ContentPage x:Class="SGesRepartidores.Vistas.CobroPendiente" xmlns="http://xamarin.com/schemas/2014/forms" xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml" Title="Cobro Pendiente"> <ContentPage.Content>     <ScrollView>         <Grid Padding="20" VerticalOptions="CenterAndExpand">             <Grid.RowDefinitions>                 <RowDefinition Height="40" />                 <RowDefinition Height="40" />                 <RowDefinition Height="50" />                 <RowDefinition Height="40" />             </Grid.RowDefinitions>              <Grid.ColumnDefinitions>                 <ColumnDefinition Width="5*" />                 <ColumnDefinition Width="5*" />             </Grid.ColumnDefinitions>             <Label                 Grid.Row="0"                 Grid.Column="0"                 HorizontalOptions="Center"                 Text="Numero de Factura:" />             <Label                 Grid.Row="0"                 Grid.Column="1"                 HorizontalOptions="Center"                 Text="{Binding NROFAC}" /> 

El cual es llamado desde la clase:

Cobro.cs

public class Cobro : Controlador//FCOBROS {      public Command btnPendienteCobro { get; set; }      public string Texto { get; set; }     public int? IDC { get; set; }     public int? CLIENTE { get; set; }     public string SERIE { get; set; }     public string FECHA { get; set; }     public int? NROFAC { get; set; }     public string TIPO { get; set; }     public float? IMPORTE { get; set; }     public string VENCI { get; set; }     public int? NROREC { get; set; }     public float? IMPCOB { get; set; }     public string FECHACOB { get; set; }     public int? FORMACOB { get; set; }     public float? PENDCOB { get; set; }     public string AGENTE { get; set; }         public Cobro() { }     public Cobro(Dictionary<string, object> q)     {         this.IDC = int.Parse(q["IDC"].ToString());         this.CLIENTE = int.Parse(q["CLIENTE"].ToString());         this.SERIE = q["SERIE"] as string;         this.FECHA = q["FECHA"] as string;         this.NROFAC = int.Parse(q["NROFAC"].ToString());         this.TIPO = q["TIPO"] as string;         this.IMPORTE = float.Parse(q["IMPORTE"].ToString());         this.VENCI = q["VENCI"] as string;         this.NROREC = null; //int.Parse(q["NROREC"].ToString());         this.IMPCOB = null;//float.Parse(q["IMPCOB"].ToString());         this.FECHACOB = null;// q["FECHA_COB"] as string;         this.FORMACOB = null; // int.Parse(q["FORMACOB"].ToString());         this.PENDCOB = float.Parse(q["PENDCOB"].ToString());         this.AGENTE = q["AGENTE"] as string;          btnPendienteCobro = new Command(PendienteCobro);      }      public void PendienteCobro()     {         this.Unico(async () =>         {             Utils.UIHandler.NavPush(new CobroPendiente(this));         });     } 

Este boton que llama a la vista CobroPendiente es llamado en la vista DatosPago.xaml que es un conjunto de una lista de Objetos de Cobro

Cuando llamo a CobroPendiente.xaml.cs nos manda al controlador ->

public partial class CobroPendiente : ContentPage {      private Controladores.CobroPendienteController controlador;     private Modelos.Lite.Cabecera cabecera;     private Modelos.Lite.Cobro cobro;      public CobroPendiente (Modelos.Lite.Cobro cobro )     {          InitializeComponent();          this.controlador = new Controladores.CobroPendienteController(cobro); 

Donde el controlador CobroPendienteController ->

public class CobroPendienteController : Controlador {     public Modelos.Lite.Cobro cobro { get; set; }       public CobroPendienteController(Modelos.Lite.Cobro cobro)     {         this.cobro = cobro;      } 

Pero al ejecutar la aplicación, cuando cargo la Vista CobroPendiente me da el error con el binding:

Binding: ‘NROFAC’ property not found on ‘Controladores.CobroPendienteController’, target property: ‘Xamarin.Forms.Label.Text’

Agradecería cualquier consejo para entender el porqué de este fallo.

Un saludo

I WILL DESIGN A FANTASTIC LABEL OF ANY PRODUCT FOR YOU for $15

HELLO! Looking for a creative graphic designer to help you design a label for your product? Am right here. I will help you with your project and you will be glad. I will design an eye catchy and high quality label for you. For your elegant product label, feel free to contact me I will actualize your concept and you will get a very professional, unique design and customer service here. I am a professional designer with over 10 years experience. BUT FIRST, I WILL Need your Logo,Label size (Height and width) in inches or cmProduct name,Ingredients Usage, Direction Caution (if needed)Other info you want to addHire me because of all these are GUARANTEED:1. Customer Satisfaction 2. Many revisions 3. Fast and friendly response 4. Professional, Modern and creative design 5. Years of experience 6. Quality not quantity Thank you a lot for your time.

by: JOAD
Created: —
Category: Art & Design
Viewed: 133


Plotar texto do textarea e label dentro do modal

boa noite! Estou desenvolvendo um formulário que coleta os valores escritos em textareas e plota eles no modal. Sou novato em javascript e gostaria da ajuda de vocês.

<script> ;(function($  ) {   $  ('#myModal').on('show.bs.modal', function() {     var nome = $  ("#textarea01").val();     $  ( '#texto' ).text( nome );   }); }(jQuery));  document.getElementsByClassName("tablink")[0].click();  function openCity(evt, cityName) {   var i, x, tablinks;   x = document.getElementsByClassName("city");   for (i = 0; i < x.length; i++) {     x[i].style.display = "none";   }   tablinks = document.getElementsByClassName("tablink");   for (i = 0; i < x.length; i++) {     tablinks[i].classList.remove("w3-light-grey");   }   document.getElementById(cityName).style.display = "block";   evt.currentTarget.classList.add("w3-light-grey"); }  // Get the modal var modal = document.getElementById('id01');  // When the user clicks anywhere outside of the modal, close it window.onclick = function(event) {   if (event.target == modal) {     modal.style.display = "none";   } }
<textarea class="textarea_001" name="textarea" id="textarea01" rows="3" cols="90"  placeholder="Descreva com todos os detalhes sua justificativa" required="" ></textarea>  <textarea class="textarea_001" name="textarea" id="textarea01" rows="3" cols="90"  placeholder="Descreva com todos os detalhes sua justificativa" required=""></textarea>  <style> .city {display:none} </style>   <div class="w3-container" align="center">  <button onclick="document.getElementById('id01').style.display='block'" class="w3-button w3-black">Criar Mensagem</button>  <div id="id01" class="w3-modal">  <div class="w3-modal-content w3-card-4 w3-animate-zoom">   <header class="w3-container w3-blue">     <span onclick="document.getElementById('id01').style.display='none'"     class="w3-button w3-blue w3-xlarge w3-display-topright">&times;</span>    <h2>Header</h2>   </header>    <div class="w3-bar w3-border-bottom">    <button class="tablink w3-bar-item w3-button" onclick="openCity(event, 'London')">Tópico e Justificativa</button>    <button class="tablink w3-bar-item w3-button" onclick="openCity(event, 'Paris')">Tópico</button>    <button class="tablink w3-bar-item w3-button" onclick="openCity(event, 'Tokyo')">Justificativa</button>   </div>    <div id="London" class="w3-container city">    <h1>London</h1>    <p>London is the most populous city in the United Kingdom, with a metropolitan area of over 9 million inhabitants.</p>    <p>Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat.</p>   </div>    <div id="Paris" class="w3-container city">    <h1>Paris</h1>    <p>Paris is the capital of France.</p>    <p>Lorem ipsum dolor sit amet, consectetur adipiscing elit.</p>   </div>    <div id="Tokyo" class="w3-container city">    <h1>Tokyo</h1>    <p id="texto"></p><br>   </div>    <div class="w3-container w3-light-grey w3-padding">    <button class="w3-button w3-right w3-white w3-border"     onclick="document.getElementById('id01').style.display='none'">Close</button>   </div>  </div> </div>  </div>

make an array of objects which explicitly has label and value eg [{label: ‘school’, value: ‘college’}

using this.state.student in react to display (name,school,class.etc).. how do i change the “school” display to “college” without replacing the value of “School” in the api.

where do i place it in reactjs? . i just started learning

i tried ‘var student = [ {“name”, “school”, “class”}];’ ‘student[1] = “college”;’

but it replaces the actual value i don’t want that

result should be when drop down is clicked it shows “college” but the api value remains “school”

On Deleting a label through google contact api v3, it deletes the label however moves all the contacts to other contacts

On Deleting a label through google contact api v3, it deletes the label however moves all the contacts to other contacts. I want to delete the label and all its contacts instead. The URI invoked is one provided by google docs which is below label. This is in ruby

request = @client.generate_request(

:uri => “https://www.google.com/m8/feeds/groups/email/full/groupid”,

:http_method => “DELETE”,

:parameters => {

:v => ‘3.0’,

:xoauth_requestor_id => ‘me’ },

:headers => { ‘If-Match’ => ‘*’} )

response = execute!(request)

Material Design – label to the left of underline input field?

We use the Material Design underline text fields with floating labels in our application (see right on the picture).

This works well on mobile, but for long forms on a desktop a label to the left of the field would be more beneficial (see left on the picture). Scanning would be easier especially in cases where the fields are already filled out. It would also require less vertical space making the form less long.

enter image description here

My question now is, is this a conventional user-friendly pattern? Or are the underline fields for some reason not to be used with left labels (I couldn’t find it anywhere)?

Thanks for your input.

Clicar no texto do label, faze-lo aparecer no input e editar esse label

eu sou novo em JavaScript e estou com um dilema. Eu consigo adicionar o conteúdo de um input text em um label, mas eu preciso fazer o conteúdo do label aparecer no input do tipo text mencionado, clicar no botão editar e mudar o conteúdo do label.

$  (document).ready(function() {     $  ("#add").click(function() {     	var lastField = $  ("#buildyourform div:last");         var intId = (lastField && lastField.length && lastField.data("idx") + 1) || 1;         var fieldWrapper = $  ("<div class=\"fieldwrapper\" id=\"field" + intId + "\"/>");         fieldWrapper.data("idx", intId); 		var capturando = ""; 		 		capturando = document.getElementById('valor').value; 		 		var x = 1;         var label_topico = ("<h3><label class=\"li_001\"> " + capturando + " </label></h3>");         var textarea_topico = ("<textarea class=\"input_text_001\" /></textarea>");         var removeButton = $  ("<input type=\"button\" class=\"remove\" value=\"-\" />"); 		         removeButton.click(function() {             $  (this).parent().remove();         }); 		// acrescenta o label         fieldWrapper.append(label_topico); 		// acrescenta o textarea         fieldWrapper.append(textarea_topico); 		// acrescenta o botão remover         fieldWrapper.append(removeButton); 		// acrescenta o bloco div com o label, textarea e o botão remover         $  ("#buildyourform").append(fieldWrapper); 		// limpa a caixa de texto 		document.getElementById("valor").value = "";     });     $  ("#edit").click(function() { 	document.getElementById("valor").value = ""; 	}); });
<div id="buildyourform"> 	<input type="text" id="valor" class="input_text_001"> 	<input type="button" value="Add a field" class="add" id="add" /> <input type="button" value="Edit a field" class="edit" id="edit" /> </div>