'Silverlight.Canvas'不包含SetZIndex的定义 [英] 'Silverlight.Canvas' does not contain a defenition for SetZIndex

查看:69
本文介绍了'Silverlight.Canvas'不包含SetZIndex的定义的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

发生错误,例如"Silverlight.Canvas"不包含SetZIndex的定义

我的代码如下:

the error occurs like ''Silverlight.Canvas'' does not contain a defenition for SetZIndex

my code is given below:

private void rectFirst_MouseLeftButtonDown(object sender, MouseButtonEventArgs e)
        {
            Canvas.SetZIndex(rectFirst, 2);
            Canvas.SetZIndex(rectSecond, 1);
        }



在此先感谢



Thanks in Advance

推荐答案

此处 [ ^ ].似乎您设置了ZIndex属性,而不是调用名为"SetZIndex"的方法
Here[^]. It looks like you set a ZIndex property, not call a method called ''SetZIndex''


这篇关于'Silverlight.Canvas'不包含SetZIndex的定义的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆