Bonjour, je suis un grand débutant en WPF, j'ai lus quelques tuto pour me faire une idée.
Actuellement, j'ai un projet avec des fenêtres réalisées en winform en VB.net, avec tout de même la création graphique rassemblé dans un #Region.
Puis j'ai toutes les méthodes et fonctions par la suites.
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36 #Region "Windows Form Designer generated code" Private Sub InitializeComponent() Me.panelGroup = New System.Windows.Forms.Panel() Me.comboBoxGroup = New System.Windows.Forms.ComboBox() ' ' panelGroup ' Me.panelGroup.Anchor = CType(((System.Windows.Forms.AnchorStyles.Top Or System.Windows.Forms.AnchorStyles.Left) Or System.Windows.Forms.AnchorStyles.Right), System.Windows.Forms.AnchorStyles) Me.panelGroup.Controls.Add(Me.comboBoxGroup) Me.panelGroup.Controls.Add(Me.labelGroup) Me.panelGroup.Location = New System.Drawing.Point(0, 0) Me.panelGroup.Name = "panelGroup" Me.panelGroup.Size = New System.Drawing.Size(248, 44) Me.panelGroup.TabIndex = 0 ' ' comboBoxGroup ' Me.comboBoxGroup.Anchor = CType(((System.Windows.Forms.AnchorStyles.Top Or System.Windows.Forms.AnchorStyles.Left) Or System.Windows.Forms.AnchorStyles.Right), System.Windows.Forms.AnchorStyles) Me.comboBoxGroup.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList Me.comboBoxGroup.Location = New System.Drawing.Point(6, 18) Me.comboBoxGroup.MaxDropDownItems = 36 Me.comboBoxGroup.Name = "comboBoxGroup" Me.comboBoxGroup.Size = New System.Drawing.Size(236, 21) Me.comboBoxGroup.Sorted = True Me.comboBoxGroup.TabIndex = 1 AddHandler Me.comboBoxGroup.SelectedIndexChanged, New System.EventHandler(AddressOf Me.comboBoxGroup_SelectedIndexChanged) . . . End Sub #End Region
Je voudrais savoir si dans l'absolue il existe un moyen de transformer (traduire) cette région de winform en WPF, ou si il existe des méthode ou simplement de l'aide bien expliqué pour m'aider à faire la transfomation.
Merci d'avance
Partager