Quantcast
Channel: Henriks bits n pieces » WPF
Browsing latest articles
Browse All 6 View Live

A simple method to make a user control draggable programmatically (C#, WPF)

public void MakeDraggable(System.Windows.UIElement moveThisElement, System.Windows.UIElement movedByElement) { bool isMousePressed = false; System.Windows.Media.TranslateTransform transform = new...

View Article


Image may be NSFW.
Clik here to view.

Clean ProgressBar style (WPF, XAML)

View Article


Image may be NSFW.
Clik here to view.

Custom button style (WPF, XAML)

View Article

XAML StringFormat Binding IValueConverter Solution

Code behind:public class StringFormat : IValueConverter{ public object Convert(object value, Type targetType, object parameter, CultureInfo culture) { return string.Format(parameter.ToString(), value);...

View Article

WPF TextBox Auto-Complete functionality

Here’s a TextBox extension for WPF auto-complete functionality (Revision 3). When AllowComma is true, it will lookup and try to auto-complete words after comma character independently as well hello...

View Article


WPF TextBlock with clickable hyperlinks and folders

Found this googling for a clickable uri solution for some textblocks (see Bojan Resniks response): http://stackoverflow.com/questions/861409/wpf-making-hyperlinks-clickable Since it’s missing support...

View Article
Browsing latest articles
Browse All 6 View Live