Я пытаюсь создать кнопку, которая имеет 3 изображения: Нормальное изображение, a Нажатое изображение и Отключенное изображение (я буду использовать их для создания кнопок со стрелками вверх/вниз).
Я считаю, что правильный подход состоял бы в том, чтобы извлечь из Button
и использовать Template
и установить триггеры для изменения изображения. У меня есть 3 свойства зависимостей, по одному для каждого изображения.
Изображения будут .png и иметь прозрачные фоны (поскольку они не прямоугольные).
Я ищу что-то вроде CBitmapButton
в MFC.