SymbolIconSource Kelas

Definisi

Mewakili sumber ikon yang menggunakan glyph dari font Segoe MDL2 Assets sebagai kontennya.

API WinUI 2 yang setara untuk UWP: Microsoft.UI.Xaml.Controls.SymbolIconSource (untuk WinUI di SDK Aplikasi Windows, lihat namespace SDK Aplikasi Windows).

/// [Windows.Foundation.Metadata.ContractVersion(Windows.Foundation.UniversalApiContract, 327680)]
/// [Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
/// [Windows.Foundation.Metadata.Threading(Windows.Foundation.Metadata.ThreadingModel.Both)]
[WebHostHidden]
class SymbolIconSource : IconSource
/// [Windows.Foundation.Metadata.ContractVersion(Windows.Foundation.UniversalApiContract, 327680)]
/// [Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
/// [Windows.Foundation.Metadata.Threading(Windows.Foundation.Metadata.ThreadingModel.Both)]
class SymbolIconSource : IconSource
[Windows.Foundation.Metadata.ContractVersion(typeof(Windows.Foundation.UniversalApiContract), 327680)]
[Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
[Windows.Foundation.Metadata.Threading(Windows.Foundation.Metadata.ThreadingModel.Both)]
public class SymbolIconSource : IconSource
function SymbolIconSource()
Public Class SymbolIconSource
Inherits IconSource
<SymbolIconSource .../>
Warisan
Object IInspectable DependencyObject IconSource SymbolIconSource
Atribut

Persyaratan Windows

Rangkaian perangkat
Windows 10 Fall Creators Update (diperkenalkan dalam 10.0.16299.0)
API contract
Windows.Foundation.UniversalApiContract (diperkenalkan dalam v5.0)

Keterangan

SymbolIconSource mirip dengan SymbolIcon. Namun, karena bukan FrameworkElement, frameworkElement dapat dibagikan.

Konstruktor

SymbolIconSource()

Menginisialisasi instans baru kelas SymbolIconSource.

API WinUI 2 yang setara untuk UWP: Microsoft.UI.Xaml.Controls.SymbolIconSource.-ctor (untuk WinUI di SDK Aplikasi Windows, lihat namespace SDK Aplikasi Windows).

Properti

Dispatcher

Mendapatkan CoreDispatcher yang dikaitkan dengan objek ini. CoreDispatcher mewakili fasilitas yang dapat mengakses DependencyObject pada utas UI meskipun kode dimulai oleh utas non-UI.

(Diperoleh dari DependencyObject)
Foreground

Mendapatkan atau mengatur kuas yang menggambarkan warna latar depan.

API WinUI 2 yang setara untuk UWP: Microsoft.UI.Xaml.Controls.IconSource.Foreground (untuk WinUI di SDK Aplikasi Windows, lihat namespace SDK Aplikasi Windows).

(Diperoleh dari IconSource)
Symbol

Mendapatkan atau mengatur glyph Aset Segoe MDL2 yang digunakan sebagai konten ikon.

API WinUI 2 yang setara untuk UWP: Microsoft.UI.Xaml.Controls.SymbolIconSource.Symbol (untuk WinUI di SDK Aplikasi Windows, lihat namespace SDK Aplikasi Windows).

SymbolProperty

Mengidentifikasi properti dependensi Simbol.

API WinUI 2 yang setara untuk UWP: Microsoft.UI.Xaml.Controls.SymbolIconSource.SymbolProperty (untuk WinUI di SDK Aplikasi Windows, lihat namespace SDK Aplikasi Windows).

Metode

ClearValue(DependencyProperty)

Menghapus nilai lokal properti dependensi.

(Diperoleh dari DependencyObject)
GetAnimationBaseValue(DependencyProperty)

Mengembalikan nilai dasar apa pun yang ditetapkan untuk properti dependensi, yang akan berlaku dalam kasus di mana animasi tidak aktif.

(Diperoleh dari DependencyObject)
GetValue(DependencyProperty)

Mengembalikan nilai efektif properti dependensi saat ini dari DependencyObject.

(Diperoleh dari DependencyObject)
ReadLocalValue(DependencyProperty)

Mengembalikan nilai lokal properti dependensi, jika nilai lokal ditetapkan.

(Diperoleh dari DependencyObject)
RegisterPropertyChangedCallback(DependencyProperty, DependencyPropertyChangedCallback)

Mendaftarkan fungsi pemberitahuan untuk mendengarkan perubahan pada DependencyProperty tertentu pada instans DependencyObject ini.

(Diperoleh dari DependencyObject)
SetValue(DependencyProperty, Object)

Mengatur nilai lokal properti dependensi pada DependencyObject.

(Diperoleh dari DependencyObject)
UnregisterPropertyChangedCallback(DependencyProperty, Int64)

Membatalkan pemberitahuan perubahan yang sebelumnya terdaftar dengan memanggil RegisterPropertyChangedCallback.

(Diperoleh dari DependencyObject)

Berlaku untuk