摘要:
var url = "http:/xxx"; var credential = "fooClientIdPassword:secret"; var userName = "xx"; var pwd = "xx"; var base64Credential = Convert.ToBase64Stri 阅读全文
摘要:
DrawingVisual drawingVisual = new DrawingVisual(); DrawingContext dc = drawingVisual.RenderOpen(); dc.DrawLine(new Pen(Brushes.Red,2),new Point(0,0),n 阅读全文
摘要:
<Window x:Class="_temple.Window1" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2006/x 阅读全文
摘要:
using System.Collections.Generic; using System.Windows; using System.Windows.Controls.Primitives; using System.Windows.Input; namespace WpfApp25 { /// 阅读全文
摘要:
using System; using System.Runtime.InteropServices; using System.Windows; using System.Windows.Controls; using System.Windows.Documents; using System. 阅读全文
摘要:
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 阅读全文
摘要:
默认windows并发数是2,所以可以设置此数大一点 ServicePointManager.DefaultConnectionLimit = 20; 也可以使用abort释放http连接 using System; using System.Collections.Generic; using S 阅读全文
摘要:
public class LogHelper { private static readonly ReaderWriterLockSlim LogWriteLock = new ReaderWriterLockSlim(); private static readonly string LogFil 阅读全文
摘要:
1.用SetResourceReference X.SetResourceReference(Shape.FillProperty, "XHighlightBorderBrush"); 2.使用SetValue public static void SetDynamicResourceKey( De 阅读全文
摘要:
<ListBox x:Name="Lb" HorizontalAlignment="Left" Height="600" VerticalAlignment="Top" Width="300" Margin="145,138,0,0"> <ListBox.ItemTemplate> <DataTem 阅读全文