回答編集履歴

3

見直しキャンペーン中

2023/08/10 10:21

投稿

TN8001
TN8001

スコア9326

test CHANGED
@@ -1,6 +1,6 @@
1
- 前提としてWindows設定で(英語)言語パックを追加してある必要があるようです
1
+ 前提としてWindows設定で(英語)言語パックを追加してある必要があるようです(ターゲットフレームワークではなくWindowsのバージョン依存のようです)
2
2
  [スペル チェックは、いくつかの条件で .NET 4.6.1 でサポートされていません。](https://support.microsoft.com/ja-jp/help/3088234/spelling-checker-isn-t-supported-in-the-net-4-6-1-in-some-conditions)
3
- (ターゲットフレームワークではなくWindowsのバージョン依存のようです)
3
+
4
4
 
5
5
  そのうえでアプリ起動時に言語バーが(英語)になっているときだけ赤線が出ました。
6
6
 

2

見直しキャンペーン中

2023/07/20 15:28

投稿

TN8001
TN8001

スコア9326

test CHANGED
@@ -1,91 +1,46 @@
1
1
  前提としてWindows設定で(英語)言語パックを追加してある必要があるようです。
2
-
3
2
  [スペル チェックは、いくつかの条件で .NET 4.6.1 でサポートされていません。](https://support.microsoft.com/ja-jp/help/3088234/spelling-checker-isn-t-supported-in-the-net-4-6-1-in-some-conditions)
4
-
5
3
  (ターゲットフレームワークではなくWindowsのバージョン依存のようです)
6
-
7
-
8
4
 
9
5
  そのうえでアプリ起動時に言語バーが(英語)になっているときだけ赤線が出ました。
10
6
 
11
-
12
-
13
7
  `Language="en-us"`を付けたりいろいろ試してみましたが、比較的安定したのは以下でした(バカバカしいですが)
14
-
15
8
  しかしすべての`TextBox`が影響を受けますし、あまり実用的ではない気がします^^;
16
9
 
17
-
18
-
19
- ```xaml
10
+ ```xml
20
-
21
11
  <Window
22
-
23
12
  x:Class="Questions243588.MainWindow"
24
-
25
13
  xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
26
-
27
14
  xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
28
-
29
15
  Width="800"
30
-
31
16
  Height="450">
32
-
33
17
  <Grid>
34
-
35
18
  <TextBox
36
-
37
19
  AcceptsReturn="True"
38
-
39
20
  SpellCheck.IsEnabled="True"
40
-
41
21
  Text="Spel Chek"
42
-
43
22
  TextWrapping="Wrap" />
44
-
45
23
  </Grid>
46
-
47
24
  </Window>
48
-
49
25
  ```
50
26
 
51
-
52
-
53
- ```C#
27
+ ```cs
54
-
55
28
  using System.Globalization;
56
-
57
29
  using System.Windows;
58
-
59
30
  using System.Windows.Input;
60
31
 
61
-
62
-
63
32
  namespace Questions243588
64
-
65
33
  {
66
-
67
34
  public partial class MainWindow : Window
68
-
69
35
  {
70
-
71
36
  public MainWindow()
72
-
73
37
  {
74
-
75
38
  var c = InputLanguageManager.Current.CurrentInputLanguage;
76
-
77
39
  InputLanguageManager.Current.CurrentInputLanguage = new CultureInfo("en-us");
78
-
79
40
 
80
-
81
41
  InitializeComponent();
82
-
83
42
  InputLanguageManager.Current.CurrentInputLanguage = c;
84
-
85
43
  }
86
-
87
44
  }
88
-
89
45
  }
90
-
91
46
  ```

1

Windowsのバージョン

2020/02/26 11:22

投稿

TN8001
TN8001

スコア9326

test CHANGED
@@ -1,6 +1,8 @@
1
1
  前提としてWindows設定で(英語)言語パックを追加してある必要があるようです。
2
2
 
3
3
  [スペル チェックは、いくつかの条件で .NET 4.6.1 でサポートされていません。](https://support.microsoft.com/ja-jp/help/3088234/spelling-checker-isn-t-supported-in-the-net-4-6-1-in-some-conditions)
4
+
5
+ (ターゲットフレームワークではなくWindowsのバージョン依存のようです)
4
6
 
5
7
 
6
8