Slider:
Slider control common effects diagram:
How do I declare a slider control in XAML code? The code is as follows:
Value property values represent the initial values displayed by the slider control, and we can also drag to change the value of the slider control in the application run state.
Declare the slider control in C # code. The code can be as follows:
The current value value of the slider control can be obtained through the ValueChanged event
About Slider class detailed description may refer to: Slider class.
Image:
Common effects of image controls:
How do I declare a slider control in XAML code? The code is as follows:
The image control Source property represents a picture path, and stretch represents the picture Stretch property (contains fill, None, uniform, uniformtofill four values).
Declare the image control in C # code. The code can be as follows:
Note: You must use an absolute path to display a picture using C # code. Image.source property.
A detailed description of the image class can refer to: Image class.
Tooltip:
ToolTip control common effects diagram:
When we dock the mouse over the picture, a prompt box appears.
How do controls declare ToolTip controls in XAML code? The code is as follows: