WPF code snippets (31)

How to get custom data from clipboard

Published: 26. September 2014 | Updated: 26. September 2014
Categories: Windows
Tags: C# Windows Winforms WPF

How to get file drop list from clipboard

Published: 26. September 2014 | Updated: 26. September 2014
Categories: Windows
Tags: C# File System Windows Winforms WPF

How to get audio stream from clipboard

Published: 26. September 2014 | Updated: 26. September 2014
Categories: Windows
Tags: C# Media Windows Winforms WPF

How to get (formatted) text from clipboard

Published: 26. September 2014 | Updated: 26. September 2014
Categories: Windows
Tags: C# Text Windows Winforms WPF

How to get image from clipboard

Published: 8. January 2009 | Updated: 26. September 2014
Categories: Windows
Tags: C# GDI Windows Winforms WPF

How to convert System.Drawing.Icon to WPF ImageSource

Published: 21. January 2014 | Updated: 21. January 2014
Categories: Converting WPF
Tags: C# Conversion GDI Media WPF

How to prevent opening multiple instance of application

Published: 11. January 2014 | Updated: 11. January 2014
Categories: Winforms WPF
Tags: C# Security Threading Windows Winforms WPF

How to open message box

Published: 1. February 2012 | Updated: 1. February 2012
Categories: Winforms WPF
Tags: C# UI Windows Winforms WPF

How to exit WPF application

Published: 1. December 2011 | Updated: 1. December 2011
Categories: WPF
Tags: WPF

How to get handle of WPF window

Published: 23. November 2011 | Updated: 23. November 2011
Categories: WPF
Tags: C# Windows WPF

How to find out whether pc is slow machine

Published: 19. November 2011 | Updated: 19. November 2011
Categories: Hardware
Tags: C# Hardware Windows WPF

How to find out whether pc is tablet

Published: 19. November 2011 | Updated: 19. November 2011
Categories: Windows WPF
Tags: C# Windows WPF

How to find out whether Windows UI effects are enabled

Published: 19. November 2011 | Updated: 19. November 2011
Categories: Windows
Tags: C# UI Windows Winforms WPF

How to find out whether program is running in a remote session

Published: 19. November 2011 | Updated: 19. November 2011
Categories: Win32 Windows
Tags: C# Win32 Windows Winforms WPF

How to get distance between two points

Published: 13. December 2008 | Updated: 5. November 2011
Categories: GDI Math
Tags: C# GDI Math Winforms WPF

How to manually create and fill DataTable

Published: 14. December 2008 | Updated: 26. October 2011
Categories: Databases Winforms
Tags: C# SQL Webforms Winforms WPF

How to convert Color to hex code

Published: 21. October 2011 | Updated: 26. October 2011
Categories: Colors
Tags: C# Colors Conversion Winforms WPF

How to get color from hex code

Published: 21. October 2011 | Updated: 26. October 2011
Categories: Colors
Tags: C# Colors Conversion Winforms WPF

How to get color from ARGB

Published: 24. October 2011 | Updated: 26. October 2011
Categories: Colors
Tags: C# Colors Conversion Winforms WPF

How to get color from name

Published: 24. October 2011 | Updated: 26. October 2011
Categories: Colors
Tags: C# Colors Conversion Winforms WPF

How to get color from ScRGB

Published: 24. October 2011 | Updated: 26. October 2011
Categories: Colors WPF
Tags: C# Colors Conversion WPF

How to get system colors

Published: 24. October 2011 | Updated: 24. October 2011
Categories: Windows
Tags: C# Colors Windows Winforms WPF

How to get predefined colors

Published: 24. October 2011 | Updated: 24. October 2011
Categories: Framework
Tags: C# Colors Winforms WPF

How to multiply color channels by specified value

Published: 24. October 2011 | Updated: 24. October 2011
Categories: WPF
Tags: C# Colors WPF

How to add two colors

Published: 24. October 2011 | Updated: 24. October 2011
Categories: WPF
Tags: C# Colors WPF

How to subtract two colors

Published: 24. October 2011 | Updated: 24. October 2011
Categories: WPF
Tags: C# Colors WPF

How to get value from AppSettings in App.config or Web.config

Published: 9. October 2011 | Updated: 9. October 2011
Categories: Framework
Tags: C# Console Winforms WPF

How to get connection string from App.config or Web.config

Published: 9. October 2011 | Updated: 9. October 2011
Categories: Databases Framework
Tags: C# SQL Winforms WPF

How to get name of application

Published: 9. October 2011 | Updated: 9. October 2011
Categories: Reflection
Tags: C# Console Reflection Winforms WPF

How to get build number

Published: 9. October 2011 | Updated: 9. October 2011
Categories: Reflection
Tags: C# Console Reflection Winforms WPF

How to get working directory / location

Published: 9. October 2011 | Updated: 9. October 2011
Categories: Consoles Directories Winforms
Tags: C# Console Winforms WPF