質問編集履歴
4
プログラムの追加
test
CHANGED
File without changes
|
test
CHANGED
@@ -54,42 +54,96 @@
|
|
54
54
|
|
55
55
|
```C#
|
56
56
|
|
57
|
-
object platform = null;
|
58
|
-
|
59
|
-
|
60
|
-
|
61
|
-
|
57
|
+
//ページ名 PopupNavigationDroid.cs
|
58
|
+
|
59
|
+
[assembly: Dependency(typeof(PopupNavigationDroid))]
|
60
|
+
|
61
|
+
namespace HogeAppX.Droid.PCLInterface
|
62
62
|
|
63
63
|
{
|
64
64
|
|
65
|
+
public class PopupNavigationDroid : IPopupNavigation
|
66
|
+
|
67
|
+
{
|
68
|
+
|
65
|
-
|
69
|
+
Context CurrentContext => CrossCurrentActivity.Current.Activity;
|
66
|
-
|
70
|
+
|
71
|
+
|
72
|
+
|
67
|
-
|
73
|
+
var handleBackPressed = (FormsAppCompatActivity.BackButtonPressedEventHandler)PlatformHelper.GetHandleBackPressed<FormsAppCompatActivity.BackButtonPressedEventHandler>(CurrentContext);
|
74
|
+
|
75
|
+
|
76
|
+
|
77
|
+
//con = CurrentContext; ← こちらが上記の関数?で con に値が入ります。
|
78
|
+
|
79
|
+
|
80
|
+
|
81
|
+
|
82
|
+
|
83
|
+
}
|
68
84
|
|
69
85
|
}
|
70
86
|
|
87
|
+
|
88
|
+
|
71
|
-
|
89
|
+
//ページ名 PlatformHelper.cs
|
90
|
+
|
91
|
+
public static Delegate GetHandleBackPressed<TDelegate>(Context con)
|
72
92
|
|
73
93
|
{
|
74
94
|
|
75
|
-
var a
|
95
|
+
var platform = GetPlatform(con);
|
76
|
-
|
77
|
-
|
96
|
+
|
97
|
+
|
78
98
|
|
79
99
|
}
|
80
100
|
|
81
101
|
|
82
102
|
|
103
|
+
|
104
|
+
|
83
|
-
i
|
105
|
+
private static object GetPlatform(Context con)
|
84
106
|
|
85
107
|
{
|
86
108
|
|
109
|
+
object platform = null;
|
110
|
+
|
111
|
+
|
112
|
+
|
113
|
+
if (con is FormsApplicationActivity)
|
114
|
+
|
115
|
+
{
|
116
|
+
|
117
|
+
var activityType = typeof(FormsApplicationActivity);
|
118
|
+
|
119
|
+
platform = activityType.GetField("_canvas", BindingFlags.NonPublic | BindingFlags.Instance)?.GetValue(con);
|
120
|
+
|
121
|
+
}
|
122
|
+
|
123
|
+
else if (con is FormsAppCompatActivity)
|
124
|
+
|
125
|
+
{
|
126
|
+
|
127
|
+
var activityType = typeof(FormsAppCompatActivity);
|
128
|
+
|
129
|
+
platform = activityType.GetField("_platform", BindingFlags.NonPublic | BindingFlags.Instance)?.GetValue(con);
|
130
|
+
|
131
|
+
}
|
132
|
+
|
133
|
+
|
134
|
+
|
135
|
+
if (platform == null)
|
136
|
+
|
137
|
+
{
|
138
|
+
|
87
|
-
throw new InvalidOperationException("Platform is not created");
|
139
|
+
throw new InvalidOperationException("Platform is not created");
|
140
|
+
|
141
|
+
}
|
142
|
+
|
143
|
+
|
88
144
|
|
89
145
|
}
|
90
146
|
|
91
|
-
|
92
|
-
|
93
147
|
```
|
94
148
|
|
95
149
|
|
3
NuGetライブラリを追記いたしました。
test
CHANGED
File without changes
|
test
CHANGED
@@ -163,3 +163,283 @@
|
|
163
163
|
|
164
164
|
|
165
165
|
初心者などで不足している情報があるかと存じますので、ご不明な箇所がございましたらご指摘いただければと存じます。
|
166
|
+
|
167
|
+
|
168
|
+
|
169
|
+
|
170
|
+
|
171
|
+
最小Androidバージョン:Android9.0
|
172
|
+
|
173
|
+
ターゲットフレームワーク:Android9.0
|
174
|
+
|
175
|
+
ターゲットAndroidバージョン:Android9.0
|
176
|
+
|
177
|
+
|
178
|
+
|
179
|
+
NuGetライブラリ追記
|
180
|
+
|
181
|
+
```
|
182
|
+
|
183
|
+
FastAndroidCamera 2.0.0
|
184
|
+
|
185
|
+
Microsoft.Bcl 1.1.10
|
186
|
+
|
187
|
+
Microsoft.Bcl.Build 1.0.21
|
188
|
+
|
189
|
+
Microsoft.CSharp 4.4.1
|
190
|
+
|
191
|
+
Microsoft.Net.Http 2.2.29
|
192
|
+
|
193
|
+
Microsoft.NETCore.Platforms 2.0.2
|
194
|
+
|
195
|
+
Microsoft.Win32.Primitives 4.3.0
|
196
|
+
|
197
|
+
modernhttpclient 2.4.2
|
198
|
+
|
199
|
+
NETStandard.Library 2.0.3
|
200
|
+
|
201
|
+
Newtonsoft.Json 11.0.2
|
202
|
+
|
203
|
+
PCLCrypto 2.0.147
|
204
|
+
|
205
|
+
PCLStorage 1.0.2
|
206
|
+
|
207
|
+
PInvoke.BCrypt 0.5.147
|
208
|
+
|
209
|
+
PInvoke.Kernel32 0.5.147
|
210
|
+
|
211
|
+
PInvoke.NCrypt 0.5.147
|
212
|
+
|
213
|
+
PInvoke.Windows.Core 0.5.147
|
214
|
+
|
215
|
+
Plugin.CurrentActivity 2.1.0.4
|
216
|
+
|
217
|
+
Plugin.Permissions 2.2.1
|
218
|
+
|
219
|
+
SegmentedControl.FormsPlugin 2.0.1
|
220
|
+
|
221
|
+
SkiaSharp 1.60.0
|
222
|
+
|
223
|
+
System.AppContext 4.3.0
|
224
|
+
|
225
|
+
System.Collections 4.3.0
|
226
|
+
|
227
|
+
System.Collections.Concurrent 4.3.0
|
228
|
+
|
229
|
+
System.ComponentModel.TypeConverter 4.3.0
|
230
|
+
|
231
|
+
System.Console 4.3.0
|
232
|
+
|
233
|
+
System.Diagnostics.Debug 4.3.0
|
234
|
+
|
235
|
+
System.Diagnostics.Tools 4.3.0
|
236
|
+
|
237
|
+
System.Diagnostics.Tracing 4.3.0
|
238
|
+
|
239
|
+
System.Globalization 4.3.0
|
240
|
+
|
241
|
+
System.Globalization.Calendars 4.3.0
|
242
|
+
|
243
|
+
System.IO 4.3.0
|
244
|
+
|
245
|
+
System.IO.Compression 4.3.0
|
246
|
+
|
247
|
+
System.IO.Compression.ZipFile 4.3.0
|
248
|
+
|
249
|
+
System.IO.FileSystem 4.3.0
|
250
|
+
|
251
|
+
System.IO.FileSystem.Primitives 4.3.0
|
252
|
+
|
253
|
+
System.Linq 4.3.0
|
254
|
+
|
255
|
+
System.Linq.Expressions 4.3.0
|
256
|
+
|
257
|
+
System.Net.Http 4.3.3
|
258
|
+
|
259
|
+
System.Net.Primitives 4.3.0
|
260
|
+
|
261
|
+
System.Net.Sockets 4.3.0
|
262
|
+
|
263
|
+
System.ObjectModel 4.3.0
|
264
|
+
|
265
|
+
System.Reflection 4.3.0
|
266
|
+
|
267
|
+
System.Reflection.Extensions 4.3.0
|
268
|
+
|
269
|
+
System.Reflection.Primitives 4.3.0
|
270
|
+
|
271
|
+
System.Resources.ResourceManager 4.3.0
|
272
|
+
|
273
|
+
System.Runtime 4.3.0
|
274
|
+
|
275
|
+
System.Runtime.Extensions 4.3.0
|
276
|
+
|
277
|
+
System.Runtime.Handles 4.3.0
|
278
|
+
|
279
|
+
System.Runtime.InteropServices 4.3.0
|
280
|
+
|
281
|
+
System.Runtime.InteropServices.RuntimeInformation 4.3.0
|
282
|
+
|
283
|
+
System.Runtime.Numerics 4.3.0
|
284
|
+
|
285
|
+
System.Runtime.Serialization.Formatters 4.3.0
|
286
|
+
|
287
|
+
System.Runtime.Serialization.Primitives 4.3.0
|
288
|
+
|
289
|
+
System.Security.Cryptography.Algorithms 4.3.1
|
290
|
+
|
291
|
+
System.Security.Cryptography.Encoding 4.3.0
|
292
|
+
|
293
|
+
System.Security.Cryptography.X509Certificates 4.3.2
|
294
|
+
|
295
|
+
System.Text.Encoding 4.3.0
|
296
|
+
|
297
|
+
System.Text.Encoding.Extensions 4.3.0
|
298
|
+
|
299
|
+
System.Text.RegularExpressions 4.3.0
|
300
|
+
|
301
|
+
System.Threading 4.3.0
|
302
|
+
|
303
|
+
System.Threading.Tasks 4.3.0
|
304
|
+
|
305
|
+
System.Threading.Timer 4.3.0
|
306
|
+
|
307
|
+
System.Xml.ReaderWriter 4.3.1
|
308
|
+
|
309
|
+
System.Xml.XDocument 4.3.0
|
310
|
+
|
311
|
+
System.Xml.XmlDocument 4.3.0
|
312
|
+
|
313
|
+
Validation 2.4.18
|
314
|
+
|
315
|
+
WebP.Touch 1.0.8
|
316
|
+
|
317
|
+
Xam.Plugin.Geolocator 4.2.0
|
318
|
+
|
319
|
+
Xamarin.Android.Arch.Core.Common 1.1.1.3
|
320
|
+
|
321
|
+
Xamarin.Android.Arch.Core.Runtime 1.1.1.3
|
322
|
+
|
323
|
+
Xamarin.Android.Arch.Lifecycle.Common 1.1.1.3
|
324
|
+
|
325
|
+
Xamarin.Android.Arch.Lifecycle.LiveData 1.1.1.3
|
326
|
+
|
327
|
+
Xamarin.Android.Arch.Lifecycle.LiveData.Core 1.1.1.3
|
328
|
+
|
329
|
+
Xamarin.Android.Arch.Lifecycle.Runtime 1.1.1.3
|
330
|
+
|
331
|
+
Xamarin.Android.Arch.Lifecycle.ViewModel 1.1.1.3
|
332
|
+
|
333
|
+
Xamarin.Android.Support.Animated.Vector.Drawable 28.0.0.3
|
334
|
+
|
335
|
+
Xamarin.Android.Support.Annotations 28.0.0.3
|
336
|
+
|
337
|
+
Xamarin.Android.Support.AsyncLayoutInflater 28.0.0.3
|
338
|
+
|
339
|
+
Xamarin.Android.Support.Collections 28.0.0.3
|
340
|
+
|
341
|
+
Xamarin.Android.Support.Compat 28.0.0.3
|
342
|
+
|
343
|
+
Xamarin.Android.Support.CoordinaterLayout 28.0.0.3
|
344
|
+
|
345
|
+
Xamarin.Android.Support.Core.UI 28.0.0.3
|
346
|
+
|
347
|
+
Xamarin.Android.Support.Core.Utils 28.0.0.3
|
348
|
+
|
349
|
+
Xamarin.Android.Support.CursorAdapter 28.0.0.3
|
350
|
+
|
351
|
+
Xamarin.Android.Support.CustomTabs 28.0.0.3
|
352
|
+
|
353
|
+
Xamarin.Android.Support.CustomView 28.0.0.3
|
354
|
+
|
355
|
+
Xamarin.Android.Support.Design 28.0.0.3
|
356
|
+
|
357
|
+
Xamarin.Android.Support.DocumentFile 28.0.0.3
|
358
|
+
|
359
|
+
Xamarin.Android.Support.DrawerLayout 28.0.0.3
|
360
|
+
|
361
|
+
Xamarin.Android.Support.Fragment 28.0.0.3
|
362
|
+
|
363
|
+
Xamarin.Android.Support.Interpolator 28.0.0.3
|
364
|
+
|
365
|
+
Xamarin.Android.Support.Loader 28.0.0.3
|
366
|
+
|
367
|
+
Xamarin.Android.Support.LocalBroadcastManager 28.0.0.3
|
368
|
+
|
369
|
+
Xamarin.Android.Support.Media.Compat 28.0.0.3
|
370
|
+
|
371
|
+
Xamarin.Android.Support.Print 28.0.0.3
|
372
|
+
|
373
|
+
Xamarin.Android.Support.SlidingPaneLayout 28.0.0.3
|
374
|
+
|
375
|
+
Xamarin.Android.Support.SwipeRefreshLayout 28.0.0.3
|
376
|
+
|
377
|
+
Xamarin.Android.Support.Transition 28.0.0.3
|
378
|
+
|
379
|
+
Xamarin.Android.Support.v4 28.0.0.3
|
380
|
+
|
381
|
+
Xamarin.Android.Support.v7.AppCompat 28.0.0.3
|
382
|
+
|
383
|
+
Xamarin.Android.Support.v7.CardView 28.0.0.3
|
384
|
+
|
385
|
+
Xamarin.Android.Support.v7.MediaRouter 28.0.0.3
|
386
|
+
|
387
|
+
Xamarin.Android.Support.v7.Palette 28.0.0.3
|
388
|
+
|
389
|
+
Xamarin.Android.Support.v7.RecyclerView 28.0.0.3
|
390
|
+
|
391
|
+
Xamarin.Android.Support.Vector.Drawable 28.0.0.3
|
392
|
+
|
393
|
+
Xamarin.Android.Support.VersionedParcelable 28.0.0.3
|
394
|
+
|
395
|
+
Xamarin.Android.Support.ViewPager 28.0.0.3
|
396
|
+
|
397
|
+
Xamarin.Auth 1.6.0.4
|
398
|
+
|
399
|
+
Xamarin.Build.Download 0.4.11
|
400
|
+
|
401
|
+
Xamarin.FFImageLoading 2.3.6
|
402
|
+
|
403
|
+
Xamarin.FFImageLoading.Forms 2.3.6
|
404
|
+
|
405
|
+
Xamarin.FFImageLoading.Svg 2.3.6
|
406
|
+
|
407
|
+
Xamarin.FFImageLoading.Svg.Forms 2.3.6
|
408
|
+
|
409
|
+
Xamarin.FFImageLoading.Transformations 2.3.6
|
410
|
+
|
411
|
+
Xamarin.Firebase.Common 71.1610.0
|
412
|
+
|
413
|
+
Xamarin.Firebase.Iid 71.1710.0
|
414
|
+
|
415
|
+
Xamarin.Firebase.Iid.Interop 71.1601.0
|
416
|
+
|
417
|
+
Xamarin.Firebase.Measurement.Connector 71.1701.0
|
418
|
+
|
419
|
+
Xamarin.Firebase.Messaging 71.1740.0
|
420
|
+
|
421
|
+
Xamarin.Forms 4.7.0.1142
|
422
|
+
|
423
|
+
Xamarin.Forms.CarouselView 2.3.0-pre2
|
424
|
+
|
425
|
+
Xamarin.Forms.Maps 3.0.0.482510
|
426
|
+
|
427
|
+
Xamarin.Google.AutoValue.Annotations 1.6.5
|
428
|
+
|
429
|
+
Xamarin.GooglePlayServices.Base 71.1610.0
|
430
|
+
|
431
|
+
Xamarin.GooglePlayServices.Basement 71.1620.0
|
432
|
+
|
433
|
+
Xamarin.GooglePlayServices.Maps 71.1610.0
|
434
|
+
|
435
|
+
Xamarin.GooglePlayServices.Stats 71.1601.0
|
436
|
+
|
437
|
+
Xamarin.GooglePlayServices.Tasks 71.1601.0
|
438
|
+
|
439
|
+
XamForms.Controls.Calendar 1.1.1
|
440
|
+
|
441
|
+
ZXing.Net.Mobile 2.4.1
|
442
|
+
|
443
|
+
ZXing.Net.Mobile.Forms 2.4.1
|
444
|
+
|
445
|
+
```
|
2
書式の改善
test
CHANGED
File without changes
|
test
CHANGED
@@ -24,7 +24,7 @@
|
|
24
24
|
|
25
25
|
関係ありそうなのが3点ありまして。
|
26
26
|
|
27
|
-
|
27
|
+
```
|
28
28
|
|
29
29
|
1:
|
30
30
|
|
@@ -44,13 +44,15 @@
|
|
44
44
|
|
45
45
|
[0:] Binding: 'color_popup_dropshadow_prop' property not found on 'HogeAppX.ViewModel.Point.vm_popup_page_point_sel', target property: 'HogeAppX.Core.Control.BoxView_ss.FillColor'
|
46
46
|
|
47
|
+
```
|
48
|
+
|
47
49
|
|
48
50
|
|
49
51
|
### 該当のソースコード
|
50
52
|
|
51
53
|
|
52
54
|
|
53
|
-
```
|
55
|
+
```C#
|
54
56
|
|
55
57
|
object platform = null;
|
56
58
|
|
@@ -94,7 +96,7 @@
|
|
94
96
|
|
95
97
|
別途怪しい箇所 xaml デザインページ
|
96
98
|
|
97
|
-
```
|
99
|
+
```xaml
|
98
100
|
|
99
101
|
|
100
102
|
|
@@ -128,6 +130,8 @@
|
|
128
130
|
|
129
131
|
</ContentPage>
|
130
132
|
|
133
|
+
```
|
134
|
+
|
131
135
|
|
132
136
|
|
133
137
|
----
|
1
local:ViewModel.Point.vm_page_point_binary に 対しての文言追加。
test
CHANGED
File without changes
|
test
CHANGED
@@ -154,4 +154,8 @@
|
|
154
154
|
|
155
155
|
|
156
156
|
|
157
|
+
移行前は「local:ViewModel.Point.vm_page_point_binary」に下線がついておらず移行後に下線が付きましたのでここがなぜ読み込めないかが鍵になる気はするのですがどう読み込んでるのかがわかりません・・・
|
158
|
+
|
159
|
+
|
160
|
+
|
157
161
|
初心者などで不足している情報があるかと存じますので、ご不明な箇所がございましたらご指摘いただければと存じます。
|