質問編集履歴
3
タイトル修正
test
CHANGED
@@ -1 +1 @@
|
|
1
|
-
C# WPFで動作するComboBoxのBinding
|
1
|
+
C# WPFで動作するComboBoxのBindingをWinFormsで実装する方法について
|
test
CHANGED
File without changes
|
2
ソースの説明追加
test
CHANGED
@@ -1 +1 @@
|
|
1
|
-
C# WPFで動作するComboBoxのBinding
|
1
|
+
C# WPFで動作するComboBoxのBindingのWinFormsでの実装方法について
|
test
CHANGED
@@ -9,7 +9,9 @@
|
|
9
9
|
|
10
10
|
### 該当のソースコード
|
11
11
|
|
12
|
-
|
12
|
+
**WPF MainWindow.xaml**
|
13
|
+
|
14
|
+
```C#
|
13
15
|
<Window x:Class="A02_DialogBinding.MainWindow"
|
14
16
|
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
|
15
17
|
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
|
@@ -27,8 +29,9 @@
|
|
27
29
|
</Grid>
|
28
30
|
</Window>
|
29
31
|
```
|
32
|
+
**WPF MainViewModel**
|
30
33
|
|
31
|
-
```C#
|
34
|
+
```C#
|
32
35
|
using System.Collections.ObjectModel;
|
33
36
|
using CommunityToolkit.Mvvm.ComponentModel;
|
34
37
|
|
@@ -56,7 +59,9 @@
|
|
56
59
|
}
|
57
60
|
```
|
58
61
|
|
59
|
-
|
62
|
+
**WinForms Form3 TextBoxとComboBoxを配置**
|
63
|
+
|
64
|
+
```C#
|
60
65
|
namespace Advance.Trial.Binding;
|
61
66
|
|
62
67
|
public partial class Form3 : Form
|
@@ -77,7 +82,9 @@
|
|
77
82
|
}
|
78
83
|
```
|
79
84
|
|
80
|
-
|
85
|
+
**WinForms Form3ViewModel**
|
86
|
+
|
87
|
+
```C#
|
81
88
|
using System.Collections.ObjectModel;
|
82
89
|
using CommunityToolkit.Mvvm.ComponentModel;
|
83
90
|
|
1
ソースの内容を追加しました。
test
CHANGED
File without changes
|
test
CHANGED
@@ -115,4 +115,9 @@
|
|
115
115
|
terataildeで「CommunityToolkit」「MVVMToolkit」で検索しましたが該当するものがありませんでした。
|
116
116
|
|
117
117
|
### 補足
|
118
|
+
ソースは上から
|
119
|
+
WPF MainWindow.xaml
|
120
|
+
WPF MainViewModel
|
121
|
+
WinForms Form3 TextBoxとComboBoxを配置
|
122
|
+
WinForms Form3ViewModel
|
118
|
-
|
123
|
+
です。
|