我如何...创建一个wpf应用程序(基于零售跳转) [英] How do I.. create a wpf application (Retail hop based)

查看:112
本文介绍了我如何...创建一个wpf应用程序(基于零售跳转)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在这个应用程序中创建WPF应用程序

我带wpf应用程序

在tab控件中选择Tabcontroler我创建4个选项卡(INSERT,STOCK INFO,CUSTINFO)

i在CustInfo标签中取两个radiobuttons

即 - > NewUserRbtn1

- > ExistanceUserRbtn2



两个GroupBoxs

即 - >新用户

- >存在用户





如果点击新用户Radiobutton然后我想看到新用户GroupBox

并禁用Existance GroupBox



我该怎么办

解决方案

我相信你会寻找一个WPF主从细节的例子。您可以使用数据模板来完成,我使用数据模板编写了一篇WPF主详细示例文章:



如何:将主细节模式与WPF分层DataTemplate一起使用 [ ^ ]

Im creating WPF Application
in this application i take wpf application
take Tabcontroler in tab control i create 4 tabs (INSERT,STOCK INFO,CUSTINFO)
i take two radiobuttons in CustInfo Tab
namely -->NewUserRbtn1
-->ExistanceUserRbtn2
and
two GroupBoxs
namely -->New User
-->Existance User


if new user Radiobutton is clicked then i want to visible New user GroupBox
and disable Existance GroupBox

how can i do

解决方案

I believe that you seek for a WPF master-detail example. You can do it using Data-Template, I wrote an article with WPF master-detail example using Data-Template:

How to: Use the Master-Detail Pattern with WPF Hierarchical DataTemplate[^]


这篇关于我如何...创建一个wpf应用程序(基于零售跳转)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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