摘要:
這需要 修改 計算機 默認 visual studio shell 版本 注冊表 HKEY_CLASSES_ROOT VisualStudio.DTE 配置節點 描述的是 默認的 visual studio shell 版本 修改 CLSID CurVer 為要使用的 visual studio s
閱讀全文
posted @ 2018-05-03 11:11
﹎藍言覓ぷ雨
閱讀(280)
推薦(0)
摘要:
艾尼路 出的效果圖 本人嵌套WPF ScrollViewer(滾動條) 自定義樣式表制作 圖文并茂 WPF ScrollViewer(滾動條) 自定義樣式表制作 (改良+美化)源代碼
閱讀全文
posted @ 2013-08-07 10:27
﹎藍言覓ぷ雨
閱讀(3248)
推薦(0)
摘要:
注釋直接寫在代碼里了 不太理解意思的 可以先去看看我上一篇 WPF ScrollViewer(滾動條) 自定義樣式表制作 圖文并茂滾動條因為要在觸摸屏上用 所以我設計的很寬 寬度可以自己改 把寬度變量單獨拿出來了先上效果圖還沒滾動已滾動區域滾動到底部內容夠顯示,不需要滾動條的時候<Window xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" xmlns:sy
閱讀全文
posted @ 2013-05-20 14:17
﹎藍言覓ぷ雨
閱讀(12833)
推薦(0)
摘要:
先上效果圖正常樣式拖動時樣式好下面 開始吧=================================================================打開blend 新建個 WPF應用程序工程 點擊左上角 文件 → 新建項目項目類型WPF→右側選WPF應用程序→項目名稱你隨便起一個用輸入的ScrollViewerStyle→點確定,一個空的項目工程就建好了建好工程后,blend會自動打開MainWindow窗體(以下簡稱畫布),我們在這編輯就可以了先在窗體上創建一個ScrollViewer,步驟:打開資產面板→控件→鼠標左鍵點下ScrollViewer,然后鼠標指針圖標會
閱讀全文
posted @ 2013-04-01 15:37
﹎藍言覓ぷ雨
閱讀(29226)
推薦(2)
摘要:
粗略的在代碼上做了些注釋blend 生成出來的模版 有的時候 會生成 跟 vs ui界面不兼容的代碼 會導致可視化設計界面 報錯崩潰掉 但是確不影響 程序的編譯運行這個樣式表 在vs 里會提示動畫不兼容 Foreground屬性 報錯先上圖看下樣式下面是代碼View Code 1 <Window x:Class="CalendarStyleWpfApplication.MainWindow" 2 xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" 3 xmlns:x=&
閱讀全文
posted @ 2013-03-07 17:35
﹎藍言覓ぷ雨
閱讀(12178)
推薦(4)
摘要:
public List<T> GetChildObjects<T>(DependencyObject obj, string name) where T : FrameworkElement { DependencyObject child = null; List<T> childList = new List<T>(); for (int i = 0; i <= VisualTreeHelper.GetChildrenCount(obj) - 1; i++) { ...
閱讀全文
posted @ 2012-11-22 14:07
﹎藍言覓ぷ雨
閱讀(1460)
推薦(0)
摘要:
btnOK.Click += delegate{ MessageBox.Show("OK"); };btnOK.Click += (sender, e) => { MessageBox.Show("OK"); };
閱讀全文
posted @ 2012-11-16 10:23
﹎藍言覓ぷ雨
閱讀(2308)
推薦(2)
摘要:
http://social.msdn.microsoft.com/Forums/zh-SG/wpfzhchs/thread/e5c87129-966a-4d51-a934-ccb8fc7620ec比如 canvas里面有一個RichTextBox1 ,我現在要New一個新RichTextBox2 ,將RichTextBox1 的內容事件復制到RichTextBox2,倆個可以共存在canvas;有沒有簡單點類似Winform的克隆呢!string xaml =System.Windows.Markup.XamlWriter.Save(rtb1); RichTextBox rtb2 =Syste
閱讀全文
posted @ 2012-11-12 11:50
﹎藍言覓ぷ雨
閱讀(2112)
推薦(1)
摘要:
描述:用戶多次快速開啟WPF程序的時候 只運行起來 一個 程序(exe) 其他多開的 進程 自動關閉掉 App.xaml.cs文件 1 protected override void OnStartup(StartupEventArgs e) 2 { 3 //當前運行WPF程序的進程實例 4 Pro
閱讀全文
posted @ 2012-10-23 10:54
﹎藍言覓ぷ雨
閱讀(5198)
推薦(0)
摘要:
沒用控制臺寫,用WPF寫的例子using System;using System.Collections.Generic;using System.Linq;using System.Text;using System.Windows;using System.Windows.Controls;using System.Windows.Data;using System.Windows.Documents;using System.Windows.Input;using System.Windows.Media;using System.Windows.Media.Imaging;using
閱讀全文
posted @ 2012-07-17 15:38
﹎藍言覓ぷ雨
閱讀(1247)
推薦(1)