Pemetaan Windows Phone Silverlight ke UWP API
Topik ini menyediakan pemetaan komprehensif Windows Phone Silverlight API ke setara Platform Windows Universal (UWP). Umumnya tidak ada pemetaan fungsionalitas satu-ke-satu, meskipun: platform mungkin memiliki lebih atau kurang fungsionalitas daripada rekan-rekannya di namespace atau kelas.
Tabel pemetaan akan membantu Anda saat bekerja dalam proyek UWP dan Anda menggunakan kembali kode sumber dari proyek Windows Phone Silverlight. Ada perbedaan dalam nama namespace layanan dan kelas (termasuk kontrol UI) antara kedua platform. Dalam banyak kasus, semampu mengubah nama namespace layanan dan kemudian kode Anda akan dikompilasi. Terkadang, nama kelas atau API telah berubah serta nama namespace layanan. Di lain waktu, pemetaan membutuhkan sedikit lebih banyak pekerjaan, dan dalam kasus yang jarang terjadi membutuhkan perubahan pendekatan.
**Cara menggunakan tabel: ** Pertama, cari nama kelas yang Anda gunakan. Kelas dicantumkan setiap kali pemetaan lebih rumit daripada hanya mengubah nama namespace layanan. Jika kelas Anda tidak tercantum, pemetaan hanyalah perubahan namespace. Jadi, temukan nama namespace kelas Anda dan Anda akan menemukan nama namespace layanan UWP yang setara. Kelas Anda akan berada di namespace tersebut. Jika namespace Anda tidak tercantum, maka namanya tidak berubah.
Catatan Windows 10 mendukung lebih banyak .NET Framework daripada aplikasi Windows Phone Store. Misalnya, Windows 10 memiliki beberapa namespace System.ServiceModel.* serta System.Net, System.Net.NetworkInformation, dan System.Net.Sockets. Selain itu, dalam aplikasi Windows 10, Anda akan mendapat manfaat dari .NET Native, yang merupakan teknologi kompilasi sebelumnya yang mengonversi MSIL menjadi kode mesin yang dapat dijalankan secara asli. Aplikasi .NET Native dimulai lebih cepat, menggunakan lebih sedikit memori, dan menggunakan lebih sedikit baterai daripada rekan MSIL mereka.
Windows Phone Silverlight | Windows Runtime |
---|---|
Periklanan | |
Kelas Microsoft.Advertising.Mobile.UI.AdControl | Kelas AdControl |
Alarm, pengingat, dan agen latar belakang | |
Kelas Microsoft.Phone.BackgroundAgent | Kelas BackgroundTaskBuilder |
Namespace Microsoft.Phone.Scheduler | Namespace Windows.ApplicationModel.Background |
Kelas Microsoft.Phone.Scheduler.Alarm | Kelas BackgroundTaskBuilder dan ToastNotificationManager |
Microsoft.Phone.Scheduler.PeriodicTask, ScheduledAction, ScheduledActionService, ScheduledTask , Kelas ScheduledTaskAgent | Kelas BackgroundTaskBuilder |
Kelas Microsoft.Phone.Scheduler.Reminder | Kelas BackgroundTaskBuilder dan ToastNotificationManager |
Kelas Microsoft.Phone.PictureDecoder | Kelas BitmapDecoder |
Namespace Microsoft.Phone.BackgroundAudio | Namespace Windows.Media.Playback |
Namespace Layanan Microsoft.Phone.BackgroundTransfer | Namespace layanan Windows.Networking.BackgroundTransfer |
Model dan lingkungan aplikasi | |
Kelas System.AppDomain | Tidak memiliki persamaan langsung. Lihat Aplikasi, CoreApplication, kelas |
Kelas System.Environment | Tidak ada yang setara langsung |
Kelas System.ComponentModel.Annotations | Tidak ada yang setara langsung |
Kelas System.ComponentModel.BackgroundWorker | Kelas ThreadPool |
Kelas System.ComponentModel.DesignerProperties | Kelas DesignMode |
Kelas System.Threading.Thread, System.Threading.ThreadPool | Kelas ThreadPool |
(ST = System.Threading) ST. Metode Thread.MemoryBarrier |
(ST = System.Threading) ST. Metode Interlocked.MemoryBarrier |
(ST = System.Threading) ST. Properti Thread.ManagedThreadId |
(S = Sistem) Properti S.Environment.ManagedThreadId |
Kelas System.Threading.Timer | Kelas ThreadPoolTimer |
(SWT = System.Windows.Threading) SWT. Kelas Dispatcher |
Kelas CoreDispatcher |
(SWT = System.Windows.Threading) SWT. Kelas DispatcherTimer |
Kelas DispatcherTimer |
Campuran untuk Visual Studio | |
(MEDC = Microsoft.Expression.Drawing.Core) MEDC. Kelas GeometryHelper |
Tidak ada yang setara langsung |
Namespace Microsoft.Expression.Interactivity | Namespace Microsoft.Xaml.Interactivity |
Namespace Microsoft.Expression.Interactivity.Core | Namespace Microsoft.Xaml.Interactions.Core |
(MEIC = Microsoft.Expression.Interactivity.Core) MEIC. Kelas ExtendedVisualStateManager |
Tidak ada yang setara langsung |
Namespace Microsoft.Expression.Interactivity.Input | Tidak ada yang setara langsung |
Namespace Microsoft.Expression.Interactivity.Media | Namespace Microsoft.Xaml.Interactions.Media |
Namespace Microsoft.Expression.Shapes | Tidak ada yang setara langsung |
(MI = Microsoft.Internal) Antarmuka MI.IManagedFrameworkInternalHelper |
Tidak ada yang setara langsung |
Data kontak dan kalender | |
Namespace Microsoft.Phone.UserData | Windows.ApplicationModel.Contacts, Namespace Windows.ApplicationModel.Appointments |
(MPU = Microsoft.Phone.UserData) MPU. Kelas Account, ContactAddress, ContactCompanyInformation, ContactEmailAddress, ContactPhoneNumber |
Kelas kontak |
(MPU = Microsoft.Phone.UserData) MPU. Kelas janji temu |
Kelas AppointmentCalendar |
(MPU = Microsoft.Phone.UserData) MPU. Kelas kontak |
Kelas ContactStore |
Kontrol dan infrastruktur UI | |
Kelas ControlTiltEffect.TiltEffect | Animasi dari pustaka animasi Windows Runtime dibangun ke dalam Gaya default kontrol umum. Lihat Animasi. |
Namespace Microsoft.Phone.Controls | Namespace Windows.UI.Xaml.Controls |
(MPC = Microsoft.Phone.Controls) MPC. Kelas ContextMenu |
Kelas PopupMenu |
(MPC = Microsoft.Phone.Controls) MPC. Kelas DatePickerPage |
Kelas DatePickerFlyout |
(MPC = Microsoft.Phone.Controls) MPC. Kelas GestureListener |
Kelas GestureRecognizer |
(MPC = Microsoft.Phone.Controls) MPC. Kelas LongListSelector |
Kelas SemanticZoom |
(MPC = Microsoft.Phone.Controls) MPC. Kelas ObscuredEventArgs |
Kelas SystemProtection, WindowActivatedEventArgs |
(MPC = Microsoft.Phone.Controls) MPC. Kelas Panorama |
Kelas hub |
(MPC = Microsoft.Phone.Controls) MPC. PhoneApplicationFrame, (SWN = System.Windows.Navigation) SWN. Kelas NavigationService |
Kelas bingkai |
(MPC = Microsoft.Phone.Controls) MPC. Kelas PhoneApplicationPage |
Kelas halaman |
(MPC = Microsoft.Phone.Controls) MPC. Kelas TiltEffect |
Kelas PointerDownThemeAnimation |
(MPC = Microsoft.Phone.Controls) MPC. Kelas TimePickerPage |
Kelas TimePickerFlyout |
(MPC = Microsoft.Phone.Controls) MPC. Kelas WebBrowser |
Kelas WebView |
(MPC = Microsoft.Phone.Controls) MPC. Kelas WebBrowserExtensions |
Tidak ada yang setara langsung |
(MPC = Microsoft.Phone.Controls) MPC. Kelas WrapPanel |
Tidak ada yang setara langsung untuk tujuan tata letak umum. ItemWrapGrid dan WrapGrid dapat digunakan dalam templat panel item kontrol item. |
(MPD = Microsoft.Phone.Data) MPD. Namespace layanan Linq |
Tidak ada yang setara langsung |
(MPD = Microsoft.Phone.Data) MPD. Namespace layanan Linq.Mapping |
Tidak ada yang setara langsung |
Namespace Microsoft.Phone.Globalization | Tidak ada yang setara langsung |
(MPI = Microsoft.Phone.Info) MPI. DeviceExtendedProperties, kelas DeviceStatus |
EasClientDeviceInformation, kelas MemoryManager . Untuk detail selengkapnya, lihat Status perangkat. |
(MPI = Microsoft.Phone.Info) MPI. Kelas MediaCapabilities |
Tidak ada yang setara langsung |
(MPI = Microsoft.Phone.Info) MPI. Kelas UserExtendedProperties |
Kelas AdvertisingManager |
Namespace System.Windows | Namespace Windows.UI.Xaml |
Namespace System.Windows.Automation | Namespace Windows.UI.Xaml.Automation |
System.Windows.Controls, System.Windows.Input namespace | Namespace Windows.UI.Core, Windows.UI.Input, Windows.UI.Xaml.Controls |
Kelas System.Windows.Controls.DrawingSurface, DrawingSurfaceBackgroundGrid | Kelas SwapChainPanel |
Kelas System.Windows.Controls.RichTextBox | Kelas RichEditBox |
Kelas System.Windows.Controls.WrapPanel | Tidak ada yang setara langsung untuk tujuan tata letak umum. ItemWrapGrid dan WrapGrid dapat digunakan dalam templat panel item kontrol item. |
Namespace System.Windows.Controls.Primitives | Namespace Layanan Windows.UI.Xaml.Controls.Primitives |
Namespace System.Windows.Controls.Shapes | Namespace Layanan Windows.UI.Xaml.Controls.Shapes |
Namespace layanan System.Windows.Data | Namespace Windows.UI.Xaml.Data |
Namespace System.Windows.Documents | Namespace Layanan Windows.UI.Xaml.Documents |
Namespace System.Windows.Ink | Tidak ada yang setara langsung |
Namespace System.Windows.Markup | Namespace Windows.UI.Xaml.Markup |
Namespace layanan System.Windows.Navigation | Namespace Layanan Windows.UI.Xaml.Navigation |
Peristiwa System.Windows.UIElement.Tap, delegasi EventHandler<GestureEventArgs> | Peristiwa yang disadap, delegasi TappedEventHandler |
Data dan layanan | |
Kelas System.Data.Linq.DataContext | Tidak ada yang setara langsung |
Kelas System.Data.Linq.Mapping.ColumnAttribute | Tidak ada yang setara langsung |
Kelas System.Data.Linq.SqlClient.SqlHelpers | Tidak ada yang setara langsung |
Perangkat | |
Namespace Microsoft.Devices, Microsoft.Devices.Sensors | Windows.Devices.Enumeration, Windows.Devices.Enumeration.Pnp, Windows.Devices.Input, namespace Windows.Devices.Sensors |
Kelas Microsoft.Devices.Camera, Microsoft.Devices.PhotoCamera | Kelas MediaCapture . Selain itu, kelas CameraCaptureUI (khusus Windows). |
Kelas Microsoft.Devices.CameraButtons | Kelas HardwareButtons |
Kelas Microsoft.Devices.CameraVideoBrushExtensions | Kelas CaptureElement |
Kelas Microsoft.Devices.Environment | Tidak memiliki persamaan langsung. Sebagai solusinya, gunakan kompilasi bersyarah dan tentukan simbol kustom. Atau Anda mungkin dapat merekayasa solusi menggunakan properti IsAttached . |
Kelas Microsoft.Devices.MediaHistory | Tidak ada yang setara langsung |
Kelas Microsoft.Devices.VibrateController | Kelas VibrationDevice |
Kelas Microsoft.Devices.Radio.FMRadio | Tidak ada yang setara langsung |
Kelas Microsoft.Devices.Sensors.Accelerometer, Compass | Di namespace Windows.Devices.Sensors |
Kelas Microsoft.Devices.Sensors.Gyroscope | Kelas gyrometer |
Kelas Microsoft.Devices.Sensors.Motion | Kelas inklinometer |
Globalisasi | |
Namespace System.Globalization | Namespace Windows.Globalization |
(ST = System.Threading) ST. Properti Thread.CurrentCulture |
(SG = System.Globalization) Properti S.CultureInfo.CurrentCulture |
(ST = System.Threading) ST. Properti Thread.CurrentUICulture |
(SG = System.Globalization) Properti S.CultureInfo.CurrentUICulture |
Grafik dan animasi | |
Namespace Microsoft.Xna.Framework.*, Pustaka Kelas Kerangka Kerja XNA, Pustaka Kelas Alur Konten | Tidak memiliki persamaan langsung. Secara umum, gunakan Microsoft DirectX dengan C++. Lihat Mengembangkan game dan interop DirectX dan XAML. |
Kelas Microsoft.Xna.Framework.Audio.Microphone | Kelas MediaCapture |
Kelas Microsoft.Xna.Framework.Audio.SoundEffect | Kelas MediaElement |
Namespace Microsoft.Xna.Framework.GamerServices | (WPS = Windows.Phone.System) WPS. Namespace UserProfile.GameServices.Core |
Kelas Microsoft.Xna.Framework.GamerServices.Guide | Tidak ada yang setara langsung |
Kelas Microsoft.Xna.Framework.Input.GamePad | Kelas HardwareButtons |
Kelas Microsoft.Xna.Framework.Input.Touch.TouchPanel | Kelas GestureRecognizer |
(MXFM = Microsoft.Xna.Framework.Media) MXFM. MediaLibrary, MXFM. Kelas PhoneExtensions.MediaLibraryExtensions |
Kelas KnownFolder |
Kelas Microsoft.Xna.Framework.Media.MediaQueue | Kelas SystemMediaTransportControls |
Kelas Microsoft.Xna.Framework.Media.Playlist | Kelas BackgroundMediaPlayer |
Namespace System.Windows.Media | Namespace Windows.UI.Xaml.Media |
Kelas System.Windows.Media.RadialGradientBrush | Tidak memiliki persamaan langsung. Lihat Media dan grafik. |
Namespace System.Windows.Media.Animation | Namespace Windows.UI.Xaml.Media.Animation |
Namespace System.Windows.Media.Effects | Tidak ada yang setara langsung |
Namespace System.Windows.Media.Imaging | Namespace Windows.UI.Xaml.Media.Imaging |
Namespace System.Windows.Media.Media3D | Namespace Windows.UI.Xaml.Media.Media3D |
Namespace System.Windows.Shapes | Namespace Windows.UI.Xaml.Shapes |
Peluncur dan Pemilih | |
Kelas Microsoft.Phone.Tasks.AddressChooserTask, EmailAddressChooserTask, PhoneNumberChooserTask | Kelas ContactPicker |
Kelas Microsoft.Phone.Tasks.AddWalletItemTask, AddWalletItemResult | Namespace Layanan Windows.ApplicationModel.Wallet |
Kelas Microsoft.Phone.Tasks.BingMapsDirectionsTask, BingMapsTask | Tidak ada yang setara langsung |
Kelas Microsoft.Phone.Tasks.CameraCaptureTask | Kelas MediaCapture . Selain itu, kelas CameraCaptureUI (khusus Windows). |
Microsoft.Phone.Tasks.MarketplaceDetailTask | Kelas CurrentApp (metode RequestAppPurchaseAsync ) |
Microsoft.Phone.Tasks.ConnectionSettingsTask, MarketplaceHubTask, MarketplaceReviewTask, MarketplaceSearchTask, MediaPlayerLauncher, SearchTask, SmsComposeTask, Kelas WebBrowserTask | Kelas peluncur |
Kelas Microsoft.Phone.Tasks.EmailComposeTask | Kelas EmailMessage |
Kelas Microsoft.Phone.Tasks.GameInviteTask | Tidak ada yang setara langsung |
Kelas Microsoft.Phone.Tasks.MapDownloaderTask, MapsDirectionsTask, MapsTask, MapUpdaterTask | Tidak ada yang setara langsung |
Kelas Microsoft.Phone.Tasks.PhoneCallTask | Kelas PhoneCallManager |
Kelas Microsoft.Phone.Tasks.PhotoChooserTask | Kelas FileOpenPicker |
Kelas Microsoft.Phone.Tasks.SaveAppointmentTask | Kelas AppointmentManager |
Kelas Microsoft.Phone.Tasks.SaveContactTask, SaveEmailAddressTask, SavePhoneNumberTask | Kelas StoredContact (khusus Windows Phone) |
Kelas Microsoft.Phone.Tasks.SaveRingtoneTask | Tidak ada yang setara langsung |
Kelas Microsoft.Phone.Tasks.ShareLinkTask, ShareMediaTask, ShareStatusTask | Kelas DataPackage |
Lokasi | |
Namespace System.Device.Location | Namespace Windows.Devices.Geolocation |
Kelas System.Device.GeoCoordinateWatcher | Kelas geolokator |
Maps | |
Namespace Microsoft.Phone.Maps | Namespace layanan Windows.Services.Maps |
Namespace Microsoft.Phone.Maps.Controls | Namespace Layanan Windows.UI.Xaml.Controls.Maps |
Kelas Microsoft.Phone.Maps.Controls.Map | Kelas MapControl |
Namespace Layanan Microsoft.Phone.Maps.Services | Namespace layanan Windows.Services.Maps |
Kelas Microsoft.Phone.Maps.Services.GeocodeQuery, ReverseGeocodeQuery | Kelas MapLocationFinder |
Kelas System.Device.Location.GeoCoordinate | Kelas Geopoint |
Kelas Microsoft.Phone.Maps.Services.Route | Kelas MapRoute |
Kelas Microsoft.Phone.Maps.Services.RouteQuery | Kelas MapRouteFinder |
Monetisasi | |
Namespace Microsoft.Phone.Marketplace | Windows.ApplicationModel.Store namespace |
Media | |
Namespace Microsoft.Phone.Media | Kelas MediaElement |
Jaringan | |
(MPNN = Microsoft.Phone.Net.NetworkInformation) MPNN. Kelas DeviceNetworkInformation |
Nama host, kelas NetworkInformation |
(MPNN = Microsoft.Phone.Net.NetworkInformation) MPNN. Kelas NetworkInterface |
Kelas NetworkInformation |
(MPNN = Microsoft.Phone.Net.NetworkInformation) MPNN. Kelas NetworkInterfaceInfo |
Kelas ConnectionProfile |
(MPNN = Microsoft.Phone.Net.NetworkInformation) MPNN. Kelas NetworkInterfaceList |
Kelas NetworkInformation |
(MPNN = Microsoft.Phone.Net.NetworkInformation) MPNN. Kelas SocketExtensions |
Tidak ada yang setara langsung |
(MPNN = Microsoft.Phone.Net.NetworkInformation) MPNN. Kelas WebRequestExtensions |
Tidak ada yang setara langsung |
Namespace Microsoft.Phone.Networking.Voip | Tidak ada yang setara langsung |
Kelas System.Net.CookieCollection | Masih didukung, tetapi beberapa properti hilang (misalnya, IsReadOnly) |
Kelas System.Net.DownloadProgressChangedEventArgs , dan kelas serupa yang terkait dengan System.Net.WebClient | Kelas HttpClient (atau System.Net.Http.HttpClient). Berasal dari System.Net.Http.StreamContent untuk mengukur kemajuan. |
Kelas System.Net.DnsEndPoint, IPAddress | Kelas-kelas ini masih didukung, tetapi beberapa properti hilang. Atau, port ke kelas HostName . |
Kelas System.Net.HttpUtility | Kelas HtmlFormatHelper |
Kelas System.Net.HttpWebRequest | Dukungan parsial, tetapi alternatif yang direkomendasikan dan berwaktu maju adalah kelas HttpClient (atau System.Net.Http.HttpClient). API ini menggunakan System.Net.Http.HttpRequestMessage untuk mewakili permintaan HTTP. |
Kelas System.Net.HttpWebResponse | Masih didukung, tetapi gunakan Dispose() alih-alih Close(). Tapi, alternatif yang direkomendasikan dan berwajar ke depan adalah kelas HttpClient (atau System.Net.Http.HttpClient). API ini menggunakan System.Net.Http.HttpResponseMessage untuk mewakili respons HTTP. |
(SNN = System.Net.NetworkInformation) SNN. Kelas NetworkChange |
Masih didukung, kecuali untuk konstruktor. |
Kelas System.Net.OpenReadCompletedEventArgs , dan kelas serupa yang terkait dengan System.Net.WebClient | Kelas HttpClient (atau System.Net.Http.HttpClient) |
Kelas System.Net.Sockets.Socket | Masih didukung, tetapi gunakan Dispose() alih-alih Close(). Atau, port ke kelasStreamSocket . |
Kelas System.Net.Sockets.SocketException | Masih didukung, tetapi gunakan properti SocketErrorCode alih-alih ErrorCode. |
Kelas System.Net.Sockets.UdpAnySourceMulticastClient, UdpSingleSourceMulticastClient | Kelas DatagramSocket |
Kelas System.Net.UploadProgressChangedEventArgs , dan kelas serupa yang terkait dengan System.Net.WebClient | Kelas HttpClient (atau System.Net.Http.HttpClient) |
Kelas System.Net.WebClient | Kelas HttpClient (atau System.Net.Http.HttpClient) |
Kelas System.Net.WebRequest | Dukungan parsial (sekumpulan properti yang berbeda), tetapi alternatif yang direkomendasikan dan berwaktu maju adalah kelas HttpClient (atau System.Net.Http.HttpClient). API ini menggunakan System.Net.Http.HttpRequestMessage untuk mewakili permintaan HTTP. |
Kelas System.Net.WebResponse | Masih didukung, tetapi gunakan Dispose() alih-alih Close(). Tapi, alternatif yang direkomendasikan dan berwajar ke depan adalah kelas HttpClient (atau System.Net.Http.HttpClient). API ini menggunakan System.Net.Http.HttpResponseMessage untuk mewakili respons HTTP. |
(SN = System.Net) SN. Kelas WriteStreamClosedEventArgs |
Kelas HttpClient (atau System.Net.Http.HttpClient) |
(SN = System.Net) SN. Kelas WriteStreamClosedEventHandler |
Kelas HttpClient (atau System.Net.Http.HttpClient) |
Kelas System.UriFormatException | Kelas System.FormatException |
Pemberitahuan | |
MPN = Namespace Microsoft.Phone.Notification | Windows.UI.Notifications, namespace Windows.Networking.PushNotifications |
MPN = Microsoft.Phone.Notification MPN. Kelas HttpNotification |
Kelas TileNotification |
MPN = Microsoft.Phone.Notification MPN. Kelas HttpNotificationChannel |
Kelas PushNotificationChannel |
Pemrograman | |
Namespace layanan sistem | Namespace Layanan Windows.Foundation |
Kelas System.Diagnostics.StackFrame, StackTrace | Tidak ada yang setara langsung |
Namespace system.diagnostics | Namespace Windows.Foundation.Diagnostics |
Antarmuka System.ICloneable | Metode kustom yang mengembalikan jenis yang sesuai. |
Kelas System.Reflection.Emit.ILGenerator | Tidak ada yang setara langsung |
Ekstensi Reaktif | |
Namespace Microsoft.Phone.Reactive | Tidak ada yang setara langsung |
Refleksi | |
Kelas System.Type | Kelas System.Reflection.TypeInfo . Lihat Refleksi di .NET Framework untuk aplikasi UWP. |
Sumber | |
Kelas System.Resources.ResourceManager | (WA = Windows.ApplicationModel) WA. Resources.Core dan WA. Namespace layanan sumber daya , kelas ResourceManager . Lihat Membuat dan mengambil sumber daya di aplikasi Windows Runtime. |
Elemen Aman | |
(MPS = Microsoft.Phone.SecureElement) MPS. SecureElementChannel, MPS. Kelas SecureElementSession |
Kelas SmartCardConnection |
(MPS = Microsoft.Phone.SecureElement) MPS. Kelas SecureElementReader |
Kelas SmartCardReader |
Keamanan | |
(SSC = System.Security.Cryptography) SSC. Aes, SSC. Kelas RSA |
Kelas CryptographicEngine |
(SSC = System.Security.Cryptography) SSC. HMACSHA256, SSC. Kelas SHA256 |
Kelas HashAlgorithmProvider |
(SSC = System.Security.Cryptography) SSC. Kelas ProtectedData |
Kelas DataProtectionProvider |
(SSC = System.Security.Cryptography) SSC. Kelas RandomNumberGenerator |
Kelas CryptographicBuffer |
(SSC = System.Security.Cryptography) SSC. Kelas X509Certificates.X509Certificate |
Kelas CertificateEnrollmentManager |
Shell | |
(MPSh = Microsoft.Phone.Shell) Kelas MPSh.ApplicationBar |
Kelas CommandBar |
(MPSh = Microsoft.Phone.Shell) Kelas MPSh.ApplicationBariconButton |
Kelas AppBarButton (saat digunakan di dalam properti PrimaryCommands ) |
(MPSh = Microsoft.Phone.Shell) Kelas MPSh.ApplicationBarMenuItem |
Kelas AppBarButton (saat digunakan di dalam properti SecondaryCommands ) |
(MPSh = Microsoft.Phone.Shell) Kelas MPSh.CycleTileData, MPSh.FlipTileData, MPSh.IconicTileData, MPSh.ShellTileData, MPSh.StandardTileData |
Kelas TileTemplateType |
(MPSh = Microsoft.Phone.Shell) Kelas MPSh.PhoneApplicationService |
Kelas CoreApplication, DisplayRequest |
(MPSh = Microsoft.Phone.Shell) Kelas MPSh.ProgressIndicator |
Kelas StatusBarProgressIndicator |
(MPSh = Microsoft.Phone.Shell) Kelas MPSh.ShellTile |
Kelas SecondaryTile |
(MPSh = Microsoft.Phone.Shell) Kelas MPSh.ShellTileSchedule |
Kelas TileUpdater |
(MPSh = Microsoft.Phone.Shell) Kelas MPSh.ShellToast |
Kelas ToastNotificationManager |
(MPSh = Microsoft.Phone.Shell) Kelas MPSh.SystemTray |
Kelas StatusBar |
Penyimpanan dan I/O | |
Kelas Microsoft.Phone.Storage.ExternalStorage, ExternalStorageDevice, ExternalStorageFile, ExternalStorageFolder | Kelas KnownFolder |
System.IO namespace | Namespace Windows.Storage, Windows.Storage.Streams |
Kelas System.IO.Directory | Kelas StorageFolder |
Kelas System.IO.File | Kelas StorageFile dan PathIO |
(SII = System.Io.IsolatedStorage) SII. Kelas IsolatedStorageFile |
Properti ApplicationData.LocalFolder |
(SII = System.Io.IsolatedStorage) SII. Kelas IsolatedStorageSettings |
Properti ApplicationData.LocalSettings |
Kelas System.IO.Stream | Masih didukung, tetapi gunakan ReadAsync() dan WriteAsync() alih-alih BeginRead()/EndRead() dan BeginWrite()/EndWrite(). |
Dompet | |
Namespace Layanan Microsoft.Phone.Wallet | Namespace Layanan Windows.ApplicationModel.Wallet |
Xml | |
(SX = System.Xml) | SX. Metode XmlConvert.ToDateTime |
(SX = System.Xml) | SX. Metode XmlConvert.ToDateTimeOffset |
Topik berikutnya adalah Memindahkan proyek.
Saran dan Komentar
https://aka.ms/ContentUserFeedback.
Segera hadir: Sepanjang tahun 2024 kami akan menghentikan penggunaan GitHub Issues sebagai mekanisme umpan balik untuk konten dan menggantinya dengan sistem umpan balik baru. Untuk mengetahui informasi selengkapnya, lihat:Kirim dan lihat umpan balik untuk