摘要:
///添加一个扩展类 public class DatetimeJsonConverter : JsonConverter<DateTime> { public override DateTime Read(ref Utf8JsonReader reader, Type typeToConvert, 阅读全文
摘要:
long lon=(DateTime.Now.ToUniversalTime().Ticks - 621355968000000000) / 10000000; 阅读全文
摘要:
XAML代码: <Button Width="35" Height="23" Margin="19,27,96,100" Opacity="0" x:Name="btn1"></Button> cs代码: //手动进行注册事件(不能使用button默认的事件,这里手动注册的事件才会触发鼠标的按下和抬 阅读全文
摘要:
public void BinDingImag(string ImageName, Image image) { using (FileStream FS = new FileStream(AppDomain.CurrentDomain.BaseDirectory + "Images//ManTit 阅读全文
摘要:
XAML代码: <Border Background="White" CornerRadius="30,30,30,30" > <Grid> <Image x:Name="Rimg" Source="用户未选.png" Width="13.87" Height="14" Margin="28,18, 阅读全文
摘要:
页面代码 <Window.Resources> <Style x:Key="StyleForRepeatButton" TargetType="{x:Type RepeatButton}"> <Style.Setters> <Setter Property="Background" Value="T 阅读全文
摘要:
显示效果: 代码: 前端代码: <iframe style="height:600px;width:95%;" id="pdf" frameborder="0" scrolling="yes" frameborder="0" scrolling="yes"> </iframe> js部分: url= 阅读全文
摘要:
Scaffold-DbContext "Server=127.0.0.1;Database=printbackstage; User ID=root;Password=root;port=3306;CharSet=utf8;pooling=true;Allow User Variables=True 阅读全文
摘要:
方法一。比较坑 using MemoryStream ms = new MemoryStream(arr); Bitmap bitmap = new Bitmap(Image.FromStream(ms)); bitmap.Save(webRootPath,ImageFormat.Png); bit 阅读全文
摘要:
this.Submit.AddHandler(Button.ClickEvent, new RoutedEventHandler(this.Submit_Click)); //这种是无效的方法 this.Submit.RaiseEvent(new RoutedEventArgs(Button.Cli 阅读全文