Skip to content

Tennyleaz/Custom-Image-Button-Test

Repository files navigation

Custom-Image-Button-Test

A WPF custom usercontrol as image button.

Usage

The XImageButton custom user control has several DependencyProperty you could change.

Most basic build-in members:

  • Name
  • ToolTip
  • Background
  • BorderBrush
  • BorderThickness
  • Width and Height
  • Click

Additional members:

  • ImageWidth and ImageHeight
  • TextContent
  • ForeImages
  • NormalImage
  • HoverImage
  • PressedImage
  • DisabledImage
  • HoverBrush

Example

One could see an example button in MainWindow.xaml

Showcase image:

animated png image

(This is an animated png image. If you couldn't see it, change another browser!)

Note

Avoid to set Content property in XImageButton. You may break the content inside the control. I haven't have time to fix this issue.

About

A WPF custom usercontrol as image button.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages