摘要:
/// <summary> /// Window1.xaml 的交互逻辑 /// </summary> public partial class Window1 : Window { public Window1() { InitializeComponent(); this.rectangle1.PreviewMouseMove += new MouseEventHandler(rectangle1_PreviewMouseMove); this.canvas2.DragO... 阅读全文
摘要:
BrushConverter converter = new BrushConverter(); Brush newFill = (Brush)converter.ConvertFromString("#000000"); e1.Fill = newFill; 阅读全文
摘要:
给你个demo吧前台页面很简单<Window x:Class="ProgressBarDemo.MainWindow" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" Title="MainWindow" Height="350" Width="525"> <Grid 阅读全文
摘要:
<TextBox Name="txt1" Width="250" AutoWordSelection="True" CharacterCasing="Upper" IsEnabled="{Binding Path=IsStreetNameHasText}" IsTabStop="{Binding Path=IsStreetNameHasText}" > <TextBox.Text> ... 阅读全文