上一页 1 ··· 4 5 6 7 8 9 10 11 12 13 下一页
摘要: var url = "http:/xxx"; var credential = "fooClientIdPassword:secret"; var userName = "xx"; var pwd = "xx"; var base64Credential = Convert.ToBase64Stri 阅读全文
posted @ 2020-04-18 00:11 灰主流 阅读(1788) 评论(0) 推荐(0) 编辑
摘要: DrawingVisual drawingVisual = new DrawingVisual(); DrawingContext dc = drawingVisual.RenderOpen(); dc.DrawLine(new Pen(Brushes.Red,2),new Point(0,0),n 阅读全文
posted @ 2020-04-17 18:04 灰主流 阅读(320) 评论(0) 推荐(0) 编辑
摘要: <Window x:Class="_temple.Window1" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2006/x 阅读全文
posted @ 2020-04-17 18:00 灰主流 阅读(896) 评论(0) 推荐(0) 编辑
摘要: using System.Collections.Generic; using System.Windows; using System.Windows.Controls.Primitives; using System.Windows.Input; namespace WpfApp25 { /// 阅读全文
posted @ 2020-04-17 17:57 灰主流 阅读(1372) 评论(0) 推荐(0) 编辑
摘要: using System; using System.Runtime.InteropServices; using System.Windows; using System.Windows.Controls; using System.Windows.Documents; using System. 阅读全文
posted @ 2020-04-17 17:42 灰主流 阅读(419) 评论(0) 推荐(0) 编辑
摘要: 1. none <div style="background: url(2.jpg) 50% 50%/ auto auto no-repeat ; width: 1000px; height: 800px; border:1px solid blue;"/> 2. tile 填充 <div styl 阅读全文
posted @ 2020-04-17 17:37 灰主流 阅读(694) 评论(0) 推荐(0) 编辑
摘要: 默认windows并发数是2,所以可以设置此数大一点 ServicePointManager.DefaultConnectionLimit = 20; 也可以使用abort释放http连接 using System; using System.Collections.Generic; using S 阅读全文
posted @ 2020-04-17 16:20 灰主流 阅读(2524) 评论(0) 推荐(0) 编辑
摘要: public class LogHelper { private static readonly ReaderWriterLockSlim LogWriteLock = new ReaderWriterLockSlim(); private static readonly string LogFil 阅读全文
posted @ 2020-04-17 15:01 灰主流 阅读(207) 评论(0) 推荐(0) 编辑
摘要: 1.用SetResourceReference X.SetResourceReference(Shape.FillProperty, "XHighlightBorderBrush"); 2.使用SetValue public static void SetDynamicResourceKey( De 阅读全文
posted @ 2020-03-13 09:51 灰主流 阅读(2740) 评论(0) 推荐(1) 编辑
摘要: <ListBox x:Name="Lb" HorizontalAlignment="Left" Height="600" VerticalAlignment="Top" Width="300" Margin="145,138,0,0"> <ListBox.ItemTemplate> <DataTem 阅读全文
posted @ 2019-03-01 10:36 灰主流 阅读(1250) 评论(0) 推荐(0) 编辑
上一页 1 ··· 4 5 6 7 8 9 10 11 12 13 下一页