Does PrintVisual method have memory leak ?
Dear all i use PrintDialog.PrintVisual to print file , but the memory will be more and more , then out of memory . so does anyone have experience ?
View Articlewpf color picker setting forecolor in richtextbox not working
wpf color picker setting forecolor in richtextbox not workingprivate void ColorPicker_ColorChanged(object sender, RoutedPropertyChangedEventArgs<Color> e) { // richTextBox1.Foreground =...
View ArticleButton click to add combo box control
Hello guys, I would like to ask suggestions how to achieve this UI (circle with red color) by using which WPF controls ? As you see Image 0, there have 2 buttons (plus and minus) and a text box (gap...
View ArticleItem DataTemplate property in a custom UserControl
Consider following user control:UserControl1.xaml<UserControl x:Class="WpfApplication5.UserControl1" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"...
View ArticleDifference between x:Reference and ElementName
This thread is continuation of following thread:...
View ArticleHow do I create a list property and bind it to a combo box?
I want to add the following values to a combo box named cboValuesMy Values and descriptions are as follows:1 Choice 12 Choice 23 Choice 34 Choice 45 Choice 5I want to use the property to...
View ArticleDatagrid SelectionChanged Event
Consider a datagrid which has a combobox column. As far as I can tell the SelectionChanged event of the datagrid fires when the user selects a value from the combobox OR when the user selects a whole...
View ArticleNavigation in a Serivce locator pattern with a reusable view.
Hi,I am hoping someone will be able to help me out with an mvvm light issue i am trying to overcome.I have two and possibly more in the future database tables that are all identically except each will...
View ArticleCustom data template wrap the combobox
Based on previous post, I have updated the image. for more details, please refer to :Requirements:...
View ArticleHow to create property for usercontrol in design time?
Hi, I wanted to create some property for an user control in design time. I researched a bit but couldn't find proper solutions. I think we need to use Designer verbs but i am not sure. Please suggest...
View ArticleRead only text box text is "System.object" instead of text value
I have read only text box inside list view's item control data template. I have binding on Text property of text box. Text value of text box is setting correctly, but when I selects text and drag n...
View ArticleDatagrid SelectionChanged Event
Consider a wpf datagrid which has a combobox column. As far as I can tell the SelectionChanged event of the datagrid fires when the user selects a value from the combobox OR when the user selects a...
View ArticleHow To Disable ContextMenu in TextBox in a DataTemplate
I have a ListBox which binds to a bunch of items, and the listbox uses a DataTemplate to determine how each item is rendered<Window x:Class="DataTemplateExample.Window1"...
View ArticleWpf Recording from microphone - volume
Hi.I have code bellow. It's running OK. But volume is very weak. Would you tell me how to adjust the volume?Thank you.<Window x:Class="WpfApplication1.MainWindow"...
View ArticleListView: Set the right column to auto width
Hello,The following XAML code is a ListView with 3 columns. How can I make the right column width to be "Auto" ?<ListView Grid.Row="3"...
View ArticleWPF datagrid changing text color based on some criteria
Hi All, I have design a C# datagrid using wPF. I can now add my data into the datagrid well. Below is my xaml settings for my datagrid. My only challenge is that if any of the column values is...
View Articlehow to translate WPF xaml code into code behind c#?
moreover, Error2The name "DivideBy2Converter" does not exist in the namespace "clr-namespace:TestCanvas".namespace TestCanvas { #region --- DivideBy2Converter --- <Window...
View ArticleDesign time contextmenu Adding to the Menu in Visual Studio
I have problem in adding the menu item into menu in Visual Studio Design Time using Design Verbs using UserControl... If Any one knows pls reply me..
View ArticleCannot checkout code from Codeplex
Hi guys,I've been trying to checkout code for HtmlAgilityPack project from Codeplex using TortoiseSVN for about a week now but every time I try, the program hangs for 5 minutes and then returns 503...
View ArticleStretch User control in TabItem
Hello,Following is the XAML code for my UserControl:<UserControl x:Class="WbrTester.UserControl1" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"...
View Article