更改文本框.源代码中的可见性 [英] Change textbox.Visibilty in source

查看:85
本文介绍了更改文本框.源代码中的可见性的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已经在xaml中定义了一个文本框,主要将可见性设置为折叠.在运行时,我想将其设置为可见,以使用总内容面板显示一些解释性文本.

I have defined a textbox in xaml set visibilty primarily to collapsed. At runtime I want to set it to visible to show some explaining text using the total contentpanel.

刚刚找到了如何执行textbox.Visibility = System.Windows.Visibility.Visible

edit: just found how to do textbox.Visibility = System.Windows.Visibility.Visible

推荐答案

还要注意,如果源顶部的using System.Windows;,则不必使用完全限定的名称.您只需输入 textbox.Visibility=Visibility.Visible;
also note that if you have using System.Windows; at the at the top of the source you won't have to use a fully qualified name. You would be able to just type textbox.Visibility=Visibility.Visible;


这篇关于更改文本框.源代码中的可见性的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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