TextBox各种设置
2024-09-01 14:45:49
前台:
<StackPanel>
<TextBlock Margin="" TextWrapping="Wrap">
TextBlock with <Bold>bold</Bold>, <Italic>italic</Italic> and <Underline>underlined</Underline> text.
</TextBlock> <TextBlock>
<Hyperlink NavigateUri="https://www.google.com.hk" RequestNavigate="Hyperlink_RequestNavigate">
Click here
</Hyperlink>
</TextBlock> <TextBlock Margin="" TextWrapping="Wrap">
This text has a <Hyperlink RequestNavigate="Hyperlink_RequestNavigate" NavigateUri="https://www.google.com">link</Hyperlink> in it.
</TextBlock> <TextBlock Margin="" TextWrapping="Wrap">
This <Span FontWeight="Bold">is</Span> a
<Span Background="Silver" Foreground="Maroon">TextBlock</Span>
with <Span TextDecorations="Underline">several</Span>
<Span FontStyle="Italic">Span</Span> elements,
<Span Foreground="Blue">
using a <Bold>variety</Bold> of <Italic>styles</Italic>
</Span>.
</TextBlock> <StackPanel x:Name="sp_text"> </StackPanel> <!--<StackPanel Margin="">
<Label Content="_Name:" Target="{Binding ElementName=txtName}" />
<TextBox Name="txtName" />
<Label Content="{Binding ElementName=txtMail, Mode=TwoWay, Path=Text}" Target="{Binding ElementName=txtMail}" />
<TextBox Name="txtMail" />
</StackPanel>--> </StackPanel>
<StackPanel>
<TextBlock Margin="" TextWrapping="Wrap">
TextBlock with <Bold>bold</Bold>, <Italic>italic</Italic> and <Underline>underlined</Underline> text.
</TextBlock> <TextBlock>
<Hyperlink NavigateUri="https://www.google.com.hk" RequestNavigate="Hyperlink_RequestNavigate">
Click here
</Hyperlink>
</TextBlock> <TextBlock Margin="" TextWrapping="Wrap">
This text has a <Hyperlink RequestNavigate="Hyperlink_RequestNavigate" NavigateUri="https://www.google.com">link</Hyperlink> in it.
</TextBlock> <TextBlock Margin="" TextWrapping="Wrap">
This <Span FontWeight="Bold">is</Span> a
<Span Background="Silver" Foreground="Maroon">TextBlock</Span>
with <Span TextDecorations="Underline">several</Span>
<Span FontStyle="Italic">Span</Span> elements,
<Span Foreground="Blue">
using a <Bold>variety</Bold> of <Italic>styles</Italic>
</Span>.
</TextBlock> <StackPanel x:Name="sp_text"> </StackPanel> <!--<StackPanel Margin="">
<Label Content="_Name:" Target="{Binding ElementName=txtName}" />
<TextBox Name="txtName" />
<Label Content="{Binding ElementName=txtMail, Mode=TwoWay, Path=Text}" Target="{Binding ElementName=txtMail}" />
<TextBox Name="txtMail" />
</StackPanel>--> </StackPanel> <StackPanel Margin="">
<Label Target="{Binding ElementName=txtName}">
<StackPanel Orientation="Horizontal">
<Image Source="http://cdn1.iconfinder.com/data/icons/fatcow/16/bullet_green.png" />
<AccessText Text="_Name:" />
</StackPanel>
</Label>
<TextBox Name="txtName" />
<Label Target="{Binding ElementName=txtMail}">
<StackPanel Orientation="Horizontal">
<Image Source="http://cdn1.iconfinder.com/data/icons/fatcow/16/bullet_blue.png" />
<AccessText Text="_Mail:" />
</StackPanel>
</Label>
<TextBox Name="txtMail" />
</StackPanel> <Grid Margin="">
<TextBox AcceptsReturn="True" TextWrapping="Wrap" SpellCheck.IsEnabled="True" Language="en-US" />
</Grid> <DockPanel Margin="">
<TextBox SelectionChanged="TextBox_SelectionChanged" DockPanel.Dock="Top" />
<TextBox Name="txtStatus" AcceptsReturn="True" TextWrapping="Wrap" IsReadOnly="True" /> </DockPanel> <StackPanel Margin="">
<Label FontWeight="Bold">Application Options</Label>
<CheckBox>
<TextBlock>
Enable feature <Run Foreground="Green" FontWeight="Bold">ABC</Run>
</TextBlock>
</CheckBox>
<CheckBox IsChecked="True">
<WrapPanel>
<TextBlock>
Enable feature <Run FontWeight="Bold">XYZ</Run>
</TextBlock>
<!--<Image Source="/WpfTutorialSamples;component/Images/question.png" Width="" Height="" Margin="5,0" />-->
</WrapPanel>
</CheckBox>
<CheckBox>
<TextBlock>
Enable feature <Run Foreground="Blue" TextDecorations="Underline" FontWeight="Bold">WWW</Run>
</TextBlock>
</CheckBox>
</StackPanel>
最新文章
- hibernate配置文件hibernate.cfg.xml的详细解释
- jmeter的压力测试
- c# 框架学习(nop )总结-------编辑功能
- 在Eclipse中添加添加一些有助于开发的插件
- 让操作javascript对象数组像.net lamda表达式一样
- 微软HR泄露的asp.net面试题
- 对jquery新增加的class绑定事件
- 1.Perl 多线程:Threads
- wpf 画刷的分类
- Linux指令--touch
- 历届试题 剪格子 IDA*
- Python机器学习中文版
- CentOS6.5下搭建VNC服务器
- lxml简单用法 解析网页
- javascript 将treeNode 转换id和pid的Array
- 【转】python mysql数据库 &#39;latin-1&#39; codec can&#39;t encode character错误问题解决
- Linux常用网络工具:批量主机服务扫描之nmap
- 北京Uber优步司机奖励政策(1月15日)
- DCGAN、WGAN、WGAN-GP、LSGAN、BEGAN原理总结及对比
- Poj 3667——hotel——————【线段树区间合并】