摘要: Popup的 PlacementTarget属性为绑定某个控件 Placement为上下左右方位,效果如下 TextBox <TextBox x:Name="txt_Code" Grid.Column="1" Width="200" Height="28" FontSize="18" Horizon 阅读全文
posted @ 2020-07-10 18:18 be--yourself 阅读(1185) 评论(0) 推荐(0) 编辑
摘要: 只能输入数字和并保留两位小数点 private void txt_PreviewTextInput(object sender, TextCompositionEventArgs e) { Regex re = new Regex("[^0-9.-]+"); e.Handled = re.IsMat 阅读全文
posted @ 2020-07-10 18:09 be--yourself 阅读(453) 评论(0) 推荐(0) 编辑
摘要: <Path Data="M 0,100 Q 35,140 54,190 Q 100,45 168,0 S 90,40 50,150 Q 40,136 0,100 Z " Fill="GreenYellow" Stretch="Fill" Margin="50,0,0,0" VerticalAlign 阅读全文
posted @ 2020-07-10 15:11 be--yourself 阅读(1035) 评论(0) 推荐(0) 编辑