RibbonRadioButton.SmallImageSource Property
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Gets or sets the image that is displayed on the control when the image size is set to 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
Property Value
The image to display on the control. The registered default is null
. For more information about what can influence the value, see Dependency Property Value Precedence.
Examples
The following example shows how to set the SmallImageSource property on a RibbonRadioButton.
<ribbon:RibbonRadioButton Label="Color 1"
SmallImageSource="Images/RightArrowShort_Green16.png"
LargeImageSource="Images/RightArrowShort_Green32.png"
KeyTip="C1" />
<ribbon:RibbonRadioButton Label="Color 2"
SmallImageSource="Images/RightArrowShort_Blue16.png"
LargeImageSource="Images/RightArrowShort_Blue32.png"
KeyTip="C2" />
<ribbon:RibbonRadioButton Label="Color 3"
SmallImageSource="Images/RightArrowShort_Orange16.png"
LargeImageSource="Images/RightArrowShort_Orange32.png"
KeyTip="C3" />
Remarks
Set the ImageSize property on the ControlSizeDefinition to control the visibility of the SmallImageSource.
Dependency Property Information
Identifier field | SmallImageSourceProperty |
Metadata properties set to true |
None |
Applies to
See also
反馈
https://aka.ms/ContentUserFeedback。
即将发布:在整个 2024 年,我们将逐步淘汰作为内容反馈机制的“GitHub 问题”,并将其取代为新的反馈系统。 有关详细信息,请参阅:提交和查看相关反馈