- 浏览: 34511 次
- 性别:
- 来自: 北京
文章分类
最新评论
basic Control
Control base class derives from FrameWorkElement base class;
(property-TabIndex)
Text:
TextBlock,Label,TextBox for input;(property-AcceptsReturn,AcceptsTab,SpellCheck.IsEnabled,ToolTip)
FocusManager.FocusedElement=”{Binding ElementName=firstName}”
<Label Content=”_First Name:” Target=”{Binding ElementName=firstName}” />
<TextBox x:Name=”firstName” Grid.Column=”1” />
<Label Grid.Row=”1” Content=”_Last Name:” Target=”{Binding ElementName=lastName}” />
<TextBox x:Name=”lastName” Grid.Row=”1” Grid.Column=”1” />
TextBlock inherits from FrameworkElement;
Label inherits from ContentControl;
Button:
Button, ToggleButton(RadioButton, CheckBox)-inherit from ButtonBase(ButtonBase inherit from ContentControl);(property-AccessText)
<Button Grid.Row=”4”
Grid.Column=”1”
HorizontalAlignment=”Right”
Content=”Save”
Click=”Button_Click” />
private void Button_Click(object sender, RoutedEventArgs e){
MessageBox.Show(“Contact saved.”, “Save”);
}
ListBox
发表评论
-
wpf应用实例
2010-07-24 15:45 1037使用WPF快速创建可拖拽的对象和窗体。 -
业务流的前端,intel终极理想:感应终端环境与任意平面成屏技术
2010-07-08 12:44 986在欧美等人力成本高 ... -
wpf 研习1-24小时自学wpf16
2010-06-15 23:21 1341Visualizing Lists-displaying mo ... -
wpf 研习1-24小时自学wpf15
2010-06-14 23:25 888deeper into data binding ad ... -
wpf 研习1-24小时自学wpf14
2010-06-13 10:27 1358Resources and Styles 从下图,我们 ... -
wpf 研习1-24小时自学wpf13
2010-06-11 23:04 881Presenters and Views-the Shell ... -
wpf 研习1-24小时自学wpf12
2010-06-11 14:26 739A Contact Manager Choosin ... -
wpf 研习1-24小时自学wpf11
2010-06-10 15:02 941output WPF Document Con ... -
了解WPF中的路由事件和命令
2010-06-09 23:12 1290路由事件浏览 (1)在vs designer中,如在窗口中增 ... -
wpf 研习1-24小时自学wpf10
2010-06-09 16:25 936Commands In WPF, a command is ... -
wpf 研习1-24小时自学wpf9
2010-06-08 19:19 745events handle routed event: ... -
wpf 研习1-24小时自学wpf8
2010-06-07 16:10 853A real-world program basic ... -
wpf 研习1-24小时自学wpf7
2010-06-07 11:04 807Application deployable file ... -
wpf 研习1-24小时自学wpf6
2010-06-05 17:14 836Data Binding markup extensi ... -
wpf 研习1-24小时自学wpf4
2010-06-05 11:31 630Layout Panel,Decorator; Sy ... -
wpf 研习1-24小时自学wpf3
2010-06-04 19:11 787wpf项目文件 vs->新项目->wpf应用程序 ... -
wpf 研习1-24小时自学wpf2
2010-06-04 15:39 800XAML,既然用户控件是一个大类,那么干脆对这个集合进行统一的 ... -
wpf 研习1-24小时自学wpf1
2010-06-04 12:05 690WPF是微软.net的UI 架构,也是非常重要的框架。 ... -
wpf主要知识点
2010-06-04 10:47 943template,presenter,layout,visua ... -
路由事件
2010-05-17 22:09 616如果我们在一个窗口上增加一个按钮,并且看下它的后置代码,会发现 ...
相关推荐
NULL 博文链接:https://x-dome.iteye.com/blog/687308
NULL 博文链接:https://x-dome.iteye.com/blog/685773
NULL 博文链接:https://x-dome.iteye.com/blog/684355
NULL 博文链接:https://x-dome.iteye.com/blog/686114
NULL 博文链接:https://x-dome.iteye.com/blog/684822