Quantcast
Channel: Windows Presentation Foundation (WPF) forum
Browsing all 18858 articles
Browse latest View live

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 Article


Image may be NSFW.
Clik here to view.

wpf 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 Article


Image may be NSFW.
Clik here to view.

Button 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 Article

Image may be NSFW.
Clik here to view.

Item 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 Article

Image may be NSFW.
Clik here to view.

Difference between x:Reference and ElementName

This thread is continuation of following thread:...

View Article


How 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 Article

Datagrid 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 Article

Navigation 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 Article


Image may be NSFW.
Clik here to view.

Custom data template wrap the combobox

Based on previous post, I have updated the image. for more details, please refer to :Requirements:...

View Article


How 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 Article

Read 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 Article

Datagrid 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 Article

How 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 Article


Wpf 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 Article

ListView: 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 Article


WPF 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 Article

how 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 Article


Design 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 Article

Cannot 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 Article

Image may be NSFW.
Clik here to view.

Stretch 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
Browsing all 18858 articles
Browse latest View live


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>