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 ArticleXAML 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 ArticleWPF 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 ArticleWPF 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