页面清空。

foreach (UIElement item in this.LayoutRoot.Children)
            {
                if (item is TextBox)
                {
                    (item as TextBox).Text = string.Empty;
                }
                if (item is ComboBox)
                {
                    (item as ComboBox).SelectedValue = null;
                }
                if (item is CheckBox)
                {
                    (item as CheckBox).IsChecked = false;
                }
            }

posted on 2013-04-08 17:48  Ironape  阅读(145)  评论(0编辑  收藏  举报

导航