DigitalPlatform / blog

技术文章
0 stars 0 forks source link

WPF 开发 #29

Open DigitalPlatform opened 5 years ago

DigitalPlatform commented 5 years ago

创建第一个触屏应用 https://docs.microsoft.com/en-us/dotnet/framework/wpf/advanced/walkthrough-creating-your-first-touch-application

https://github.com/MaterialDesignInXAML/MaterialDesignInXamlToolkit

https://wpf-tutorial.com/

https://stackoverflow.com/questions/13729540/convert-simple-html-to-a-richtextblock

https://wbsimms.com/create-screensaver-net-wpf/

https://stackoverflow.com/questions/22619326/wpf-create-a-screen-saver-feature-when-application-is-inactive

DigitalPlatform commented 5 years ago

All the controls missing in WPF. Over 1 million downloads. https://github.com/xceedsoftware/wpftoolkit

这篇文字还介绍了其他几个 WPF PropertyGride 控件: https://stackoverflow.com/questions/1661077/wpf-propertygrid

DigitalPlatform commented 5 years ago

https://stackoverflow.com/questions/34248205/simple-dialog-layout-in-wpf

https://blogs.msdn.microsoft.com/wpfsldesigner/2010/06/04/layout-techniques-for-windows-forms-developers/

https://stackoverflow.com/questions/4779777/wpf-rounded-corner-textbox

https://www.codeproject.com/articles/297740/dialog-boxes-management-in-wpf-application

DigitalPlatform commented 5 years ago

https://docs.microsoft.com/en-us/dotnet/framework/winforms/advanced/walkthrough-arranging-wpf-content-on-windows-forms-at-design-time

https://docs.microsoft.com/en-us/dotnet/framework/winforms/advanced/index

DigitalPlatform commented 5 years ago

https://stackoverflow.com/questions/6827573/how-to-export-flowdocument-to-docx-or-xls

https://stackoverflow.com/questions/5349490/how-to-save-the-content-of-flowdocument-in-pdf-and-word

DigitalPlatform commented 5 years ago

ListView

https://stackoverflow.com/questions/4488463/how-i-can-refresh-listview-in-wpf

https://stackoverflow.com/questions/2573376/wrappanel-doesnt-wrap-in-wpf-listview

http://www.nullskull.com/a/1525/styling-the-wpf-scrollviewer.aspx

https://www.codeproject.com/Articles/37366/Styling-A-ScrollViewer-Scrollbar-In-WPF

DigitalPlatform commented 5 years ago

设计态时候的 Exception https://stackoverflow.com/questions/13396582/wpf-user-control-throws-design-time-exception

Visibility 和 Bool 的转换 https://stackoverflow.com/questions/7000819/binding-a-buttons-visibility-to-a-bool-value-in-viewmodel

https://stackoverflow.com/questions/6359848/wpf-loading-spinner

Font-Awesome-WPF https://github.com/charri/Font-Awesome-WPF/blob/master/README-WPF.md#spinning-icons

免费的部分: https://fontawesome.com/icons?d=gallery&m=free

https://stackoverflow.com/questions/6745663/how-to-create-make-rounded-corner-buttons-in-wpf

https://stackoverflow.com/questions/1665781/styling-gridsplitter-wpf-c-sharp

绑定 Visibility 属性 https://stackoverflow.com/questions/13720559/binding-visibility-converter-in-wpf-c-sharp

https://stackoverflow.com/questions/534575/how-do-i-invert-booleantovisibilityconverter/5182660#5182660

https://stackoverflow.com/questions/6195395/how-can-i-achieve-a-dashed-or-dotted-border-in-wpf

https://stackoverflow.com/questions/11090084/how-to-get-rid-of-whitespace-between-runs-in-textblock

https://stackoverflow.com/questions/27441292/pushed-effect-on-button-press

DigitalPlatform commented 5 years ago

https://stackoverflow.com/questions/1319974/wpf-grid-with-column-row-margin-padding

https://stuff.seans.com/2008/08/21/simple-water-animation-in-wpf/

http://www.charlespetzold.com/blog/2006/11/190700.html

http://www.cnblogs.com/Wade-/archive/2012/07/13/2589687.html https://stuff.seans.com/2008/08/21/simple-water-animation-in-wpf/

https://stackoverflow.com/questions/7290625/water-simulation-using-shaders-in-wpf

https://www.domysee.com/blogposts/blogpost%201%20-%20ripple%20effect%20in%20wpf/

WPF里的一些Effect特效 https://blog.csdn.net/wushang923/article/details/7238884

https://marlongrech.wordpress.com/2009/08/27/playing-with-shaders-creating-a-water-effect/

DigitalPlatform commented 5 years ago

https://www.codeproject.com/Articles/2812/A-C-water-effect-picture-control

DigitalPlatform commented 5 years ago

https://stackoverflow.com/questions/21118185/what-does-binding-path-name-mean-in-wpf

https://stackoverflow.com/questions/3970986/wpf-fade-out-status-bar-text-after-x-seconds

https://stackoverflow.com/questions/5376742/wpf-how-to-bind-to-the-name-property

https://stackoverflow.com/questions/5135657/wpf-handling-modal-dialogs

https://deanchalk.com/wpf-modal-controls-via-dispatcherframe-nested-message-pumps/

https://stackoverflow.com/questions/611298/how-to-create-a-wpf-window-without-a-border-that-can-be-resized-via-a-grip-only

https://stackoverflow.com/questions/31336027/change-background-of-disabled-listview

DigitalPlatform commented 5 years ago

https://docs.microsoft.com/en-us/dotnet/framework/wpf/controls/adorners-overview

https://github.com/GuOrg/Gu.Wpf.Adorners

http://www.nbdtech.com/Blog/archive/2010/06/21/wpf-adorners-part-1-ndash-what-are-adorners.aspx

https://spin.atomicobject.com/2012/07/16/making-wpf-controls-modal-with-adorners/

https://stackoverflow.com/questions/24825132/how-to-blur-drawing-using-the-drawingcontext-wpf

DigitalPlatform commented 5 years ago

https://stackoverflow.com/questions/18658641/how-to-bind-the-items-count-of-listview-in-xaml

https://stackoverflow.com/questions/20652709/listview-scrollbar-styling

https://docs.microsoft.com/en-us/dotnet/framework/wpf/app-development/navigation-overview

https://stackoverflow.com/questions/22530728/wpf-quick-notification-control

WPF自学入门(十)WPF MVVM简单介绍 https://www.cnblogs.com/fly-bird/p/8699105.html

https://stackoverflow.com/questions/27441292/pushed-effect-on-button-press

https://stackoverflow.com/questions/20784207/custom-wpf-listview-with-style-using-datatemplate-how-do-i-add-headers

DigitalPlatform commented 5 years ago

https://stackoverflow.com/questions/3128023/wpf-booleantovisibilityconverter-that-converts-to-hidden-instead-of-collapsed-wh

https://riptutorial.com/wpf/example/7309/convert-a-boolean-to-visibility-value

https://docs.microsoft.com/en-us/dotnet/api/system.windows.controls.booleantovisibilityconverter?view=netframework-4.7.2

DigitalPlatform commented 5 years ago

https://www.codeproject.com/Articles/32257/A-Style-for-Round-Glassy-WPF-Buttons

https://stackoverflow.com/questions/9257091/to-set-blinking-effect-on-button-in-xaml

DigitalPlatform commented 5 years ago

https://stackoverflow.com/questions/15920067/full-screen-wpf

https://stackoverflow.com/questions/1472498/wpf-global-exception-handler

https://stackoverflow.com/questions/359758/setting-tab-order-in-wpf

https://stackoverflow.com/questions/4773632/how-do-i-restart-a-wpf-application

https://stackoverflow.com/questions/5023840/what-is-the-equivalent-of-onidle-in-wpf

WPF Inactivity or idle operator wpf 用户长时间无操作对程序进行处理 http://www.aichengxu.com/wordpress/827744.htm

https://wbsimms.com/create-screensaver-net-wpf/

https://stackoverflow.com/questions/652550/how-do-i-detect-a-lock-this-computer-command-from-a-wpf-application

https://www.codeproject.com/articles/31261/full-screen-wpf-application-with-a-low-level-keybo

http://www.codewrecks.com/blog/index.php/2013/01/05/open-a-window-in-fullscreen-on-a-specific-monitor-in-wpf/

https://www.codeproject.com/Tips/480049/Shut-Down-Restart-Log-off-or-Lock-your-computer-in

DigitalPlatform commented 5 years ago

一个立体感的按钮样式 https://www.cnblogs.com/lonelyxmas/p/9598752.html

WPF自定义控件之图形解锁控件 ScreenUnLock https://www.cnblogs.com/ShenNan/p/5587009.html

https://docs.microsoft.com/en-us/dotnet/framework/wpf/app-development/how-to-add-a-splash-screen-to-a-wpf-application

DigitalPlatform commented 5 years ago

https://www.telerik.com/blogs/wpf-read-only-dependency-properties

https://stackoverflow.com/questions/10884031/wpf-raise-an-event-when-item-is-added-in-listview

https://blogs.msdn.microsoft.com/jgoldb/2007/10/10/improving-wpf-applications-startup-time/

https://blogs.msdn.microsoft.com/jgoldb/2007/12/10/splash-screen-to-improve-wpf-application-perceived-cold-startup-performance/

https://www.wiredprairie.us/journal/2007/07/distract_your_wpf_application.html

DigitalPlatform commented 5 years ago

键盘输入

https://stackoverflow.com/questions/28471864/how-to-check-programatically-if-keyboard-is-connected-or-not

http://www.cnblogs.com/zengjfgit/p/5657068.html

http://www.cnblogs.com/starspace/archive/2008/10/25/1319297.html

https://www.codeproject.com/Articles/17123/Using-Raw-Input-from-C-to-handle-multiple-keyboard

https://www.developerfusion.com/article/84338/making-usb-c-friendly/

https://docs.microsoft.com/en-us/dotnet/api/system.windows.input.keyboard?view=netframework-4.7.2

C# Winform中无焦点状态下获取键盘输入或者USB扫描枪数据 http://www.cnblogs.com/Hdsome/archive/2011/10/28/2227717.html

https://stackoverflow.com/questions/736279/c-is-there-a-way-to-properly-convert-keys-oem-to-proper-string-without-doing

https://stackoverflow.com/questions/318777/c-sharp-how-to-translate-virtual-keycode-to-char

https://blogs.msdn.microsoft.com/toub/2006/05/03/low-level-keyboard-hook-in-c/

https://stackoverflow.com/questions/10391025/receive-os-level-key-press-events-in-c-sharp-application

https://stackoverflow.com/questions/20482338/simulate-keyboard-input-in-c-sharp


https://stackoverflow.com/questions/24301769/whats-the-key-enumeration-of-keys-on-top-of-non-numpad-number-keys


https://github.com/lontivero/Open.WinKeyboardHook

https://stackoverflow.com/questions/19933274/getkeyboardstate-and-toascii-does-not-always-correctly-process-stx-and-etx-chara

https://social.msdn.microsoft.com/Forums/vstudio/en-US/f16c16c5-710a-45a6-ba27-c7ac9e32cac6/setwindowshookex-callback-has-incorrect-keybdinput-data

https://stackoverflow.com/questions/2316386/using-setkeyboardstate-along-with-getkeyboardstate-in-c

First off, GetKeyboardState() would be the wrong function to use because as Windows has a chance to process keyboard messages (whether you want it too or not) it updates the results of the keyboard's state for the next call to GetKeyboardState().

https://ourcodeworld.com/articles/read/520/simulating-keypress-in-the-right-way-using-inputsimulator-with-csharp-in-winforms

https://stackoverflow.com/questions/24301769/whats-the-key-enumeration-of-keys-on-top-of-non-numpad-number-keys

I dont think there are seperate enums for these keys. These are Key.D1 to Key.D0 and Key.Oem3 (for tilda). You can identify which one was pressed by checking Keyboard.Modifiers == ModifierKeys.Shift at any point in your code.
i.e if pressed key is Key.D1 and Keyboard.Modifiers is ModifierKeys.Shift that means '!' was pressed 
DigitalPlatform commented 5 years ago

Caret & Editable

https://stackoverflow.com/questions/42429765/set-caret-cursor-position-in-richtextbox-wpf

https://www.codeproject.com/articles/633935/customizing-the-caret-of-a-wpf-textbox

https://github.com/abbaye/WpfCaret

https://www.cnblogs.com/zhouyinhui/archive/2010/05/28/1746031.html WPF版的HideCaret()

https://weblogs.asp.net/thomaslebrun/wpf-how-to-develop-and-editable-textblock

https://nathanpjones.com/2012/09/editable-label-in-wpf/

https://www.cnblogs.com/gmth/p/3240140.html

https://stackoverflow.com/questions/5652527/editable-wpf-listview

https://docs.microsoft.com/en-us/previous-versions/ms745183(v=vs.100)

https://stackoverflow.com/questions/30752389/wrap-text-with-indent-in-wpf-textblock

https://www.cnblogs.com/zlgcool/archive/2008/11/17/1335456.html WPF: 使用Flow Document (流文档)

https://stackoverflow.com/questions/16194569/how-can-i-prevent-wrapping-in-a-wpf-flowdocument-in-c-sharp-code

https://docs.microsoft.com/en-us/dotnet/framework/wpf/advanced/how-to-define-a-table-with-xaml

DigitalPlatform commented 5 years ago

https://weblogs.asp.net/thomaslebrun/wpf-how-to-be-notified-when-an-internal-dependencyproperty-is-modified

https://www.cnblogs.com/pulas/archive/2012/07/05/2578114.html 可视化节点编辑器(Node Editor)

DigitalPlatform commented 5 years ago

https://developingfor.net/2009/01/09/dynamically-switch-wpf-datatemplate/ ListView 中 Item 模板可以选择

https://social.msdn.microsoft.com/Forums/vstudio/en-US/28b32097-03fa-4b2a-8be4-fef577b515d6/how-do-i-dynamically-change-an-listboxitems-datatemplate

https://stackoverflow.com/questions/916012/how-to-find-a-resource-in-a-usercontrol-from-a-datatemplateselector-class-in-wpf DataTemplateSelector 的一些编程细节

https://stackoverflow.com/questions/6430299/bitmapimage-in-wpf-does-lock-file

https://stackoverflow.com/questions/17090325/show-hiding-the-windows-8-on-screen-keyboard-from-wpf 屏幕键盘

https://stackoverflow.com/questions/30544380/on-screen-keyboard-wpf

https://code.msdn.microsoft.com/windowsapps/Enabling-Windows-8-Touch-7fb4e6de

https://social.msdn.microsoft.com/forums/vstudio/en-US/8f6a0d40-218e-43be-a432-4c1e3c84bdca/on-screen-keyboard-control-api-for-wpf

https://brianlagunas.com/showing-windows-8-touch-keyboard-wpf/

DigitalPlatform commented 5 years ago

https://stackoverflow.com/questions/7406973/how-do-i-make-a-wpf-textblock-show-my-text-on-multiple-lines

https://www.cnblogs.com/lonelyxmas/p/10799485.html WPF中的简单水动画

DigitalPlatform commented 5 years ago

https://stackoverflow.com/questions/26781833/enable-swipe-scrolling-on-textbox-control-in-wpf-scrollviewer 允许 textbox 内容可以被手指触摸扫动卷滚

https://wpf.2000things.com/2011/11/16/431-binding-a-controls-width-to-its-height/ 绑定控件宽度到其高度

https://stackoverflow.com/questions/717299/wpf-setting-the-width-and-height-as-a-percentage-value https://stackoverflow.com/questions/10832745/wpf-adopt-size-of-parent

https://stopbyte.com/t/what-is-the-use-of-relativesource-in-wpf-binding/377/7

https://stackoverflow.com/questions/3444371/converting-between-wpf-font-size-and-standard-font-size

https://www.codeproject.com/articles/97871/wpf-simple-zoom-and-drag-support-in-a-scrollviewer


https://social.msdn.microsoft.com/Forums/windows/en-US/23b5184b-e6fc-43cd-95fc-75352a07f5cf/touch-scroll-for-wpf-flowdocumentscrollviewer

http://market.huawei.com/hwgg/enterprise/u-channel/pdf/S1700.pdf https://www.manualslib.com/manual/1373722/Huawei-Quidway-S1700-Series.html?page=9#manual

DigitalPlatform commented 4 years ago

多种 layout

https://stackoverflow.com/questions/23010028/how-to-change-a-grid-layout-when-orientation-is-changed

DigitalPlatform commented 4 years ago

Web Camera

https://stackoverflow.com/questions/5108554/c-sharp-net-web-camera-image-capture

https://www.codeproject.com/articles/202464/how-to-use-a-webcam-in-c-with-the-net-framework-4

https://stackoverflow.com/questions/5724423/h-264-or-similar-encoder-in-c

https://stackoverflow.com/questions/1653001/how-to-encode-video-from-web-camera-into-h-264-in-c

https://github.com/flyinggorilla/MJPEG-Streamer-Universal-Windows-App

https://channel9.msdn.com/coding4fun/articles/MJPEG-Decoder

https://github.com/ericdotwang/mjpeg-stream-decoder-windows/tree/master/MJPEG/MjpegProcessorTestWinForms

https://stackoverflow.com/questions/216664/creating-an-mjpeg-video-stream-in-c-sharp

https://www.codeproject.com/articles/83225/a-simple-jpeg-encoder-in-c

https://www.cnblogs.com/gaochundong/p/csharp_mjpeg_streaming.html

https://www.codeproject.com/Articles/371955/Motion-JPEG-Streaming-Server

https://channel9.msdn.com/coding4fun/articles/MJPEG-Decoder

https://www.codeproject.com/articles/885869/stream-player-control

https://github.com/jacobbo/WebEye

https://www.cnblogs.com/leeice/archive/2012/08/01/2618970.html

https://www.wpf-tutorial.com/audio-video/playing-video/

DigitalPlatform commented 4 years ago

https://github.com/microsoft/WPF-Samples 官方例子

https://github.com/microsoft/WPF-Samples/tree/master/Animation/AnimationExamples/Text

https://www.wpf-tutorial.com/ta/60/rich-text-controls/advanced-flowdocument-content/

DigitalPlatform commented 4 years ago

Navigation

https://stackoverflow.com/questions/7513558/get-current-running-page-in-wpf-navigation-navigationwindow

DigitalPlatform commented 4 years ago

https://blog.csdn.net/hotmee/article/details/69230217 WPF内存释放

https://stackoverflow.com/questions/4773632/how-do-i-restart-a-wpf-application

https://stackoverflow.com/questions/5291937/restart-wpf-application-after-click-once-update-start-the-new-version

https://stackoverflow.com/questions/17908993/starting-a-process-with-a-user-name-and-password

DigitalPlatform commented 4 years ago

https://stackoverflow.com/questions/25333798/wpf-scrollviewer-scroll-to-element-of-flowdocument

Splash Screen

https://docs.microsoft.com/en-us/dotnet/api/system.windows.splashscreen?view=netcore-3.1

DigitalPlatform commented 4 years ago

Multi Binding

https://stackoverflow.com/questions/2990440/datacontext-as-source-for-converter-binding-within-resources

https://stackoverflow.com/questions/15283039/how-can-i-use-an-elementname-binding-within-a-controltemplate

https://social.technet.microsoft.com/wiki/contents/articles/30640.wpf-tips-the-mystery-of-the-lost-binding.aspx

DigitalPlatform commented 4 years ago

Animation

https://docs.microsoft.com/en-us/dotnet/framework/wpf/graphics-multimedia/animation-tips-and-tricks

https://docs.microsoft.com/en-us/dotnet/framework/wpf/advanced/how-to-create-text-with-a-shadow

https://stackoverflow.com/questions/21022707/how-to-set-image-resource-uri-from-code-behind

https://stackoverflow.com/questions/4118658/copy-bitmap-into-other-bitmap-with-wpf

DigitalPlatform commented 4 years ago

Loading xaml

https://blogs.msmvps.com/bsonnino/2016/07/21/loading-xaml-dynamically-part-1-loading-views-dynamically/

DigitalPlatform commented 4 years ago

如何让 CheckBox 的方盒子显示得大一点

https://stackoverflow.com/questions/13481275/how-to-make-checkbox-bigger

DigitalPlatform commented 3 years ago

writing-a-custom-main-method-for-wpf-applications

https://ludovic.chabant.com/devblog/2010/04/20/writing-a-custom-main-method-for-wpf-applications/