By saving the connection string information, we'll avoid having to hard-code it in the code-behind file.
Si guardamos la información de la cadena de conexión podemos evitar codificarla de forma estática en el archivo de código subyacente.
The workaround is to delete the declaration from the designer file and then put it in the code-behind file.
La solución consiste en eliminar la declaración desde el archivo del diseñador y, a continuación, se colocan en el archivo de código subyacente.
Data bindings can be implemented either in code or in XAML, but they are much more common in XAML where they help to reduce the size of the code-behind file.
Los enlaces de datos se pueden implementar en el código o en XAML, pero son mucho más comunes en XAML, ya que así es más fácil reducir el tamaño del archivo de código subyacente.
For example, if your XAML document is named Window1.xaml, the code-behind file will be called Window1.xaml.cs if the programming language of the code is C#.
Por ejemplo, si el documento XAML se llama Window1.xaml, el archivo de código subyacente se llamará Window1.xaml.cs si el lenguaje de programación del código es C#.
Conținut posibil inadecvat
Exemplele au rolul de a te ajuta să traduci cuvinte sau expresii corect si adaptat la context. Nu sunt selectate sau validate manual, așadar pot conține termeni inadecvați. Te rugăm să raportezi exemplele pe care le consideri inadecvate. Traducerile vulgare sau colocviale sunt în general marcate cu roșu sau cu portocaliu.