teratail header banner
teratail header banner
質問するログイン新規登録

質問編集履歴

4

C#コード修正いたしました。

2020/05/04 13:47

投稿

pj7577bm60v
pj7577bm60v

スコア13

title CHANGED
File without changes
body CHANGED
@@ -38,37 +38,28 @@
38
38
  // Learn more about making custom code visible in the Xamarin.Forms previewer
39
39
  // by visiting https://aka.ms/xamarinforms-previewer
40
40
  [DesignTimeVisible(false)]
41
+
41
- public partial class MainPage : ContentPage
42
+ public class IsGreaterZeroConverter : IValueConverter
42
43
  {
43
- public class IsGreaterZeroConverter : IValueConverter
44
+ public object Converter(object value, Type targetType, object parameter, CultureInfo culture)
44
45
  {
45
- public object Converter(object value, Type targetType, object parameter, CultureInfo culture)
46
- {
47
- return ((int)value) > 0;
46
+ return ((int)value) > 0;
48
- }
47
+ }
49
48
 
50
- public object ConvertBack(object value, Type targetType, object parameter, CultureInfo culture)
49
+ public object ConvertBack(object value, Type targetType, object parameter, CultureInfo culture)
51
- {
50
+ {
52
- throw new NotSupportedException();
51
+ throw new NotSupportedException();
53
- }
54
-
55
- object IValueConverter.Convert(object value, Type targetType, object parameter, CultureInfo culture)
56
- {
57
- throw new NotImplementedException();
58
- }
59
-
60
- object IValueConverter.ConvertBack(object value, Type targetType, object parameter, CultureInfo culture)
61
- {
62
- throw new NotImplementedException();
63
- }
64
52
  }
65
-
53
+ }
54
+ public partial class MainPage : ContentPage
55
+ {
66
56
  public MainPage()
67
57
  {
68
58
  InitializeComponent();
69
59
  }
70
60
  }
71
61
  }
62
+
72
63
  ```
73
64
 
74
65
  ```Xamarin

3

誤字修正いたしました。

2020/05/04 13:47

投稿

pj7577bm60v
pj7577bm60v

スコア13

title CHANGED
File without changes
body CHANGED
@@ -1,7 +1,7 @@
1
1
  ### 前提・実現したいこと
2
2
 
3
3
  C#の勉強をしているものです。WindowsFormAppを作成したのでXamarinにてモバイル化を目指しています。
4
- Xamarin.Formsamarin.Forms入門というブログを写しているのですが、エラーが出てしまい進めていない状態です。
4
+ Xamarin.Forms入門というブログを写しているのですが、エラーが出てしまい進めていない状態です。
5
5
  エラーが解決できてログイン画面を完成させたいです。
6
6
  ログイン、画面遷移の機能はまた別で勉強中ですので、エントリーに文字を入力してボタンを機能させるというところまで進めたいです。
7
7
 

2

微修正いたしました。

2020/05/04 13:33

投稿

pj7577bm60v
pj7577bm60v

スコア13

title CHANGED
File without changes
body CHANGED
@@ -127,5 +127,5 @@
127
127
  .NET Framework version 4.8.03752
128
128
 
129
129
  参考にさせていただいてるブログは
130
- https://blog.okazuki.jp/entry/2017/06/19/012705
130
+ [https://blog.okazuki.jp/entry/2017/06/19/012705](https://blog.okazuki.jp/entry/2017/06/19/012705)
131
131
  174ページになります。

1

微修正いたしました。

2020/05/04 13:28

投稿

pj7577bm60v
pj7577bm60v

スコア13

title CHANGED
File without changes
body CHANGED
@@ -9,14 +9,16 @@
9
9
 
10
10
 
11
11
  ```
12
+ C#
13
+ public class IsGreaterZeroConverter : IValueConverter
14
+ の部分で
15
+ IValueConverter インターフェイスが実装できないです。
16
+
17
+ Xamarin
12
18
  <local:IsGreaterZeroConverter x:Key="isGreaterZeroConverter"/>
13
19
  の部分で
14
20
  local:IsGreaterZeroConverter が読み込まれていないです。
15
21
 
16
- public class IsGreaterZeroConverter : IValueConverter
17
- の部分で
18
- IValueConverter インターフェイスが実装できないです。
19
-
20
22
  ```
21
23
 
22
24
  ### 該当のソースコード