堆栈面板没有显示所有按钮的图像,但我需要那些不可点击

时间:2015-07-23 18:00:45

标签: c# wpf image button

我在网格中有四个堆栈面板,我继续使用C#添加和删除按钮。我需要只能点击顶部(最低的一个),但我需要能够看到它上面的按钮的所有图像。 这是我怎么做的,但我看不到图像:

    public bool isTop { get; private set; }

    public void NotTop()
    {
        isTop = false;
        this.Item_Button.IsEnabled = false;

    }

    public void IsNowTop()
    {
        isTop = true;
        this.Item_Button.IsEnabled = true;
    }

有什么方法可以让它们无法点击,仍然可以看到按钮背景中的图像?

0 个答案:

没有答案
相关问题