We konden deze vermelding niet vinden. Er worden benaderende resultaten weergegeven. Controleer je spelling of stel voor deze term aan het woordenboek toe te voegen.
Once it is moved to the code-behind file, it will remain there unaltered even if you change the page.
Une fois qu'il est déplacé vers le fichier code-behind, il y restera inchangée même si vous modifiez la page.
This means you no longer need to declare member variables in the code-behind page for each control, which greatly simplifies maintenance of sites that use this code-separation technique.
Cela signifie que vous n'avez plus besoin de déclarer les variables membres dans le code-behind pour chaque contrôle, ce qui simplifie grandement la maintenance de sites qui utilisent ce code technique de séparation.
The workaround is to delete the declaration from the designer file and then put it in the code-behind file.
La solution de contournement consiste à supprimer la déclaration du fichier du concepteur et ensuite de le placer dans le fichier code-behind.
The value of the attribute is the name of your implemented handler method, which must exist in the partial class of the code-behind file.
La valeur de l'attribut est le nom de la méthode de gestionnaire implémentée, qui doit exister dans la classe partielle du fichier code-behind.
The event name and the name of the handler to use are specified in the markup, whereas the code that implements your handler is defined in the code-behind.
Le nom de l'évènement et le nom du gestionnaire à utiliser sont spécifiés dans la balise, tandis que le code qui implémente votre gestionnaire est défini dans le code-behind.
Rename operations in the code-behind file rename the XAML definition.
Les opérations de changement de nom dans le fichier code-behind renommer la définition XAML.
We then can use a welcomed pattern already well known by ASP.NET developers where the UI markup is separated from the code-behind.
On retrouve ainsi une hygiène bienvenue que les développeurs ASP.NET connaissent déjà parfaitement où le markup de la présentation est séparée du code-behind.
The event handler is created and the code-behind file is opened in the code editor.
L'Event Handler est créé et le fichier du code-behind est ouvert dans l'éditeur de code.
Additionally, you can move to the XAML declaration of a control by using the Go To Definition feature on an instance in the code-behind file.
En outre, vous pouvez atteindre la déclaration XAML d'un contrôle à l'aide de la fonctionnalité d'atteindre la définition sur une instance dans le fichier code-behind.
This allows the code-behind file to be associated with the partial class that is generated for the markup file when the application is built (see Building a WPF Application (WPF)).
Cela permet au fichier code-behind d'être associé à la classe partial générée pour le fichier de balisage lorsque l'application est générée (consultez Génération d'une application WPF (WPF)).
In the Code-behind, you will find the Click handler, where we use a couple of lines of code to get the binding from the destination control and then call the UpdateSource() method on it.
Dans le Code-behing, vous trouverez le handler de l'événement Click, où nous utilisons deux lignes de code pour récupérer le binding du contrôle de destination et pour ensuite appeler la méthode UpdateSource() dessus.
In the Code-behind, we once again create a list of User objects, which we then assign as the ItemsSource of the ListView.
Dans le code C#, nous avons une nouvelle fois créé une liste d'objets de type User, que l'on a ensuite définie comme ItemsSource de la ListView.
For more information about requirements for code-behind programming, see the Code-behind, Event Handler, and Partial Class Requirements section of Code-Behind and XAML.
Pour plus d'informations sur les exigences associées à la programmation de code-behind dans WPF, consultez la section « Exigences concernant le code-behind, le gestionnaire d'événements et les classes partielles » de Code-behind et XAML dans WPF.
Potentieel gevoelige of ongepaste informatie
Er worden alleen voorbeelden gegeven om u te helpen het woord of de woordcombinatie waarop u hebt gezocht, te vertalen. Deze worden niet door ons geselecteerd of gevalideerd en kunnen ongepaste taal bevatten. Wij vragen u melding te maken van voorbeelden die dienen te worden aangepast of verwijderd. Vertalingen met grof of informeel taalgebruik worden meestal rood of oranje gemarkeerd.