原创 ControlTemplate in WPF —— Checkbox
<ResourceDictionary xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http
原创 ControlTemplate in WPF —— TextBox
<ResourceDictionary xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http
原创 ControlTemplate in WPF —— TreeView
<ResourceDictionary xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http
原创 ControlTemplate in WPF —— ComboBox
<ResourceDictionary xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http
原创 ControlTemplate in WPF —— ItemsControl
<ItemsControl Margin="10" ItemsSource="{Binding Source={StaticResource myTodoList}}"> <!--The ItemsCont
原创 ControlTemplate in WPF —— ListBox
<ResourceDictionary xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http
原创 ControlTemplate in WPF —— DatePicker
<ResourceDictionary xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http
原创 ControlTemplate in WPF —— RadioButton
<ResourceDictionary xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http
原创 ControlTemplate in WPF —— Window
<ResourceDictionary xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http
原创 ControlTemplate in WPF —— TabControl
<ResourceDictionary xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http
原创 WPF TreeGrid(樹形展開的表格)
一直都想要個樹形展開的表格 像這樣的 今天心血來潮就簡單做了個TreeGrid 喜歡的同學可以下載下去自己研究下,其實也比較簡單主要就是TreeView TreeViewItem再配合GridViewHeaderRowPresent
原创 WPF中的圖片文件、byte[]、BitmapImage的操作
public MainWindow() { InitializeComponent(); byte[] b = GetPictureData(@"F:\WPF\TestSol
原创 WPF觸發器(Trigger、DataTrigger、EventTrigger)
WPF中有種叫做觸發器的東西(記住不是數據庫的trigger哦)。它的主要作用是根據trigger的不同條件來自動更改外觀屬性,或者執行動畫等操作。 WPFtrigger的主要類型有:Trigger、MultiTrigger、DataT
原创 WPF 多國語言 localization
因爲項目是多國語言的,所以用到了wpf的多國語言相關知識,其實也比較簡單,分享給大家,自己也做個備忘。 基本步驟如下: 1.讓界面上所有能夠出現的label都使用動態資源(DynamicResource)這樣我們在切換語言的時候程序界面上
原创 .Net 小技巧——XmlElement 與 XElement互相轉換
XmlElement LinqToXmlElement(XElement xElement) { if (xElement == null) return null; X