Bagikan melalui


RibbonToggleButton.SmallImageSource Properti

Definisi

Mendapatkan atau mengatur gambar yang ditampilkan pada kontrol saat ukuran gambar diatur ke Small.

public:
 property System::Windows::Media::ImageSource ^ SmallImageSource { System::Windows::Media::ImageSource ^ get(); void set(System::Windows::Media::ImageSource ^ value); };
public System.Windows.Media.ImageSource SmallImageSource { get; set; }
member this.SmallImageSource : System.Windows.Media.ImageSource with get, set
Public Property SmallImageSource As ImageSource

Nilai Properti

Gambar yang akan ditampilkan pada kontrol. Default terdaftar adalah null. Untuk informasi selengkapnya tentang apa yang dapat memengaruhi nilai, lihat Prioritas Nilai Properti Dependensi.

Contoh

Contoh berikut menunjukkan cara mengatur SmallImageSource properti pada RibbonToggleButton.

<ribbon:RibbonToggleButton Label="Reminder"
                      Command="{Binding ReminderCommand}"
                      SmallImageSource="Images/Reminder16.png" 
                      LargeImageSource="Images/Reminder32.png"
                      KeyTip="R"/>

Keterangan

Atur ImageSize properti pada ControlSizeDefinition untuk mengontrol visibilitas SmallImageSource.

Informasi Properti Dependensi

Item Nilai
Bidang pengidentifikasi SmallImageSourceProperty
Properti metadata diatur ke true Tidak

Berlaku untuk

Lihat juga