目前日期文章:201311 (8)
- Nov 24 Sun 2013 00:37
IE 無法使用也無法重設的方法
- Nov 20 Wed 2013 11:59
透過Json.Net 快速轉換class to xml與反轉
初始化
Car car = new Car(); car.root = new Root(); car.root.list = new List(); car.root.name = "海德格"; car.root.data = "救我"; for (int f = 0; f < 10; f++) { car.root.list.Add(f.ToString()); }
class to json, then to xml
- Nov 10 Sun 2013 01:37
Windows Store app C# ListView 水平捲動
<ListView
ScrollViewer.HorizontalScrollMode="Enabled"
- Nov 10 Sun 2013 00:37
Windows Store app C# 偵測影片是否正在播放
- Nov 10 Sun 2013 00:05
Windows Store app C# 影片縮放
Windows 市集 APP, MediaElement Stretch屬性無法使用,這時候在Google找到了一個解決方法,使用ViewBox來進行縮放,並將原本套用在MediaElement上面的Margin相關排版的屬性放在ViewBox上面,就可以達到相同位置但是又能縮放影片的效果
- Nov 07 Thu 2013 15:29
C# Uri Decode
C# WPF/WinForm Uri Decode
- Nov 06 Wed 2013 15:53
[WPF] C# 產生DataTemplate
FrameworkElementFactory wrapElement = new FrameworkElementFactory(typeof(WrapPanel)); ItemsPanelTemplate itemPanelDataTemplate = new ItemsPanelTemplate(wrapElement); itemPanelDataTemplate.VisualTree = wrapElement; myListbox = new ListBox() { Opacity = 1, Visibility = System.Windows.Visibility.Visible, Height = double.NaN, Width = double.NaN, ItemsPanel = itemPanelDataTemplate, Background = null, Foreground = null, BorderBrush = null, VerticalAlignment = VerticalAlignment.Bottom, HorizontalAlignment = HorizontalAlignment.Center, Margin = new Thickness(0, 0, 30, 0) };
- Nov 04 Mon 2013 13:01
WPF Tap 事件