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.
en Code-behind
This command is defined in Code-behind, in our own CustomCommands class, and then referenced in the CommandBindings collection of the window, where we assign the events that it should use to execute/check if it's allowed to execute.
Este comando se define en Code-behind, en nuestra propia clase CustomCommands, y luego referenciado en la colección CommandBindings de la ventana, donde asignamos los eventos que debe ejecutar/verificar si está habilitado a ejecutar.
In Code-behind, we start off by navigating to a URL already in the constructor of the Window, to have something to show immediately instead of a blank control.
En Code-behind, comenzamos navegando a una URL que ya está en el constructor de la ventana para mostrar algo de inmediato en vez de un control en blanco.
In Code-behind, we do an initial call to Navigate, to have a visible webpage instead of the empty control on startup.
En Code-behind, comenzamos navegando a una URL que ya está en el constructor de la ventana para mostrar algo de inmediato en vez de un control en blanco.
In Code-behind, we handle the click event of the button, in which we add each of the text strings to the ListBox, as seen on the screenshot.
En Code-behind, manejamos el evento click del botón, en el cual agregamos cada uno de los strings al ListBox, como se observa en la imagen.
In Code-behind, we respond to the two events for our command: One event just allows the command to execute all the time, since that's usually true for an exit/quit command, and the other one calls the Shutdown method that will terminate our application.
En Code-behind, respondemos a los dos eventos de nuestro comando: Un evento habilita continuamente al comando a ejecutarse, lo que usualmente es así para un comando de Salir/Exit, y el otro llama al método Shutdown que cerrará nuestra aplicación.
In Code-behind, I make sure to handle the CanExecute event of the first three buttons, since that's not done automatically by WPF, contrary to the Cut, Copy and Paste commands, which WPF is capable of fully handling for us.
En el código, me aseguro de manejar el evento CanExecute de los tres primeros botones, ya que eso no es hecho automáticamente por WPF, contrariamente a los comandos de cortar, copiar y pegar, los cuales WPF es capaz de manejar completamente para nosotros.
Code-behind In Code-behind, I changed the constructor to take two parameters, with one being optional.
En el área de código, he cambiado el contructor para que pueda recibir dos parámetros, uno de ellos es opcional.
We'll create the map in two iterations: Some of it will be laid out in XAML, because it's easy, while we'll draw the background squares in Code-behind, because it's repetitive and dynamic. Game area XAML
Vamos a crear el mapa de dos formas: una de ellas será desde el XAML, porque es fácil, mientras que los cuadrados del fondo los dibujaremos desde el código, porque es algo repetitivo y dinámico.
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.