ฉันสามารถรับคุณสมบัติที่ไม่คงที่ได้โดยไม่มีปัญหา (วิธีรับ คุณสมบัติของคลาสใน WinRT) หรือคุณสมบัติคงที่ใน c# .net แต่ไม่ทราบวิธีรับคุณสมบัติคงที่ใน C3 winrt
เท่าที่ผมได้เท่านี้.. ใครสามารถช่วยได้บ้าง?
Type type = typeof(ToastNotificationManager);
var typeInfo = type.GetTypeInfo();
var historyProperty = type.GetRuntimeProperty("History");
object history = historyProperty.get
property.SetValue(obj, value);
ฉันกำลังพยายามสะท้อนและโทรหา ToastNotificationManager.History.Remove() ซึ่งรองรับบนโทรศัพท์เท่านั้น (ToastNotificationManager.History)