|
Cet article a fait l'objet d'une traduction automatique. Déplacez votre pointeur sur les phrases de l'article pour voir la version originale de ce texte. Informations supplémentaires.
|
Traduction
Source
|
FrameworkContentElement.Loaded, événement
Espace de noms : System.Windows
Assembly : PresentationFramework (dans PresentationFramework.dll)
XMLNS pour XAML : http://schemas.microsoft.com/winfx/2006/xaml/presentation, http://schemas.microsoft.com/netfx/2007/xaml/presentation
<StackPanel xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" x:Class="SDKSample.FELoaded" Loaded="OnLoad" Name="root" > </StackPanel>
Private Sub OnLoad(ByVal sender As Object, ByVal e As RoutedEventArgs) Dim b1 As Button = New Button() b1.Content = "New Button" root.Children.Add(b1) b1.Height = 25 b1.Width = 200 b1.HorizontalAlignment = HorizontalAlignment.Left End Sub
void OnLoad(object sender, RoutedEventArgs e) { Button b1 = new Button(); b1.Content = "New Button"; root.Children.Add(b1); b1.Height = 25; b1.Width = 200; b1.HorizontalAlignment = HorizontalAlignment.Left; }
Windows 8, Windows Server 2012, Windows 7, Windows Vista SP2, Windows Server 2008 (rôle principal du serveur non pris en charge), Windows Server 2008 R2 (rôle principal du serveur pris en charge avec SP1 ou version ultérieure ; Itanium non pris en charge)
Le .NET Framework ne prend pas en charge toutes les versions de chaque plateforme. Pour obtenir la liste des versions prises en charge, consultez Configuration requise du .NET Framework.