Memory Leak with TreeView
I'm currently experiencing a memory leak in WPF where I am using A TreeView which is databinding to a list. Each item in the list will display a custom control. When an item is removed from the list...
View ArticleQuick options control in WPF for controls...
Hi all,In Microsoft Word you get a quick formating box when you select the text in the document which is half visible.I want to do same operation in a WPF application, when user select some text in...
View ArticleRoot Cause: Recursive call to Automation Peer API is not valid
Hi,We've used WPF Tookit DataGrid and .NET 3.5 for about 2 years. And we've got two cases which throw exception - "Recursive call to Automation Peer API is not valid".It's quit strange and eratic, very...
View ArticleListBox is not populated with an XMl binding with a file
Hi All,I have just started WPF on .Net3.5.I am facing a concern while populating ListBox from an xml file. Actually this xml file has been generated with someobject.WriteXml operation on a local data...
View ArticleCRUD operations in a wpf datagrid using Castle active records
Hi everyone. So I am working on an application that uses Castle Active Records. I use Visual Studio 2012, C# and wpf. My assignment is to take a table from a database (oracle) and using the wpf...
View ArticleCreate border/Square with hollow center.
Hi, I want to create a control in WPF/Silverlight. This control is rectangle/border which is hollow from the center. My intention is to grayed out everything else except for a squared area within the...
View ArticleImplement algoritm as in Excel Color scale.
HiI want to try functionality in DataGrid as in Excel with color scale.I have 2d array and I need to set color for each cell according to cell value.Color scale Green - Yellow - RedCan someone to tell...
View ArticleHow Can I show collection of collection bind to DataGrid?
HelloI want to group some objects in Data Grid. It works fine. But I want to class properties works as group headers and for rows I want use their List<AntoherClass> variable.Is that possible?If...
View Articlestrikethrough in gridview
Hey,I word on windows RT. I have a ListView, each element have a picture and a text. I bind like this : ItemTemplate="{StaticResource ListItemTemplate}I would lik to strikethrough the text of the...
View ArticleDataGrid using MVVM with CanUserAddRows with validation enabled?
Hello,I've been struggling for days to implement a DataGrid using the MVVM pattern that sets DataGrid.CanUserAddRows=true and uses Binding.ValidationRules for validation. Unfortunately this has lead...
View ArticleIn WPF/MVVM, how to implement the “Select All” function in a perfect way
In View, i.e. the XAML, I have binded the SelectAll bool value to the Checkbox control<CheckBoxGrid.Row="5"Content="Select All"HorizontalAlignment="Left"Margin="0,5, 0, 0"IsChecked="{Binding...
View ArticleTextBox Problem with numeric input
Hi!I have in a WPF Maske 4 TextBoxes...1. A Number in a length from 9. --> OK, I can find out is there a number or not and how many character are in the TextBox This is finish...2. A Number with...
View ArticleScrollViewer.ScrollToHorizontalOffset / .ScrollToVerticalOffset stop working...
HiI'm using the ScrollViewer to create a view port on a rather large canvas with many objects on it (it's part of a drawing application). I found that when using the ScrollViewer's scroll bars the...
View ArticleVisual Studio 2012 WPF Designer & Satellite Assemblies
Dear all,I'm developing a localization extension for WPF and other Frameworks based on MarkupExtension with design-time support. This worked well for VS 2010.Beginning with VS2012 (and earlier with...
View ArticleHow to listen to a BindingBase object?
HiI want to create a special DataTrigger inheriting the TriggerBase<FrameworkElement>. Just similar to theDataTrigger, a property of type BindingBase has been defined in theMyDataTrigger class....
View ArticleListBox filter performance
Hi,I am populating a (surface) listbox with about 1200 items of the following DataTemplate:<DataTemplate x:Key="FileListDataTemplate"><StackPanel Orientation="Horizontal"><MediaElement...
View Articledatagrid, manual render column not work
hi,I have in MainWindow() this code:dgUsers.DataContext = persons; persons is a list<person>. Person is data container with atribute name,surname,...In xaml have this code and works...
View ArticleWPF event handling?
Does anyone have an idea where to find some kind of overview about how the events in WPF work. I'm not asking "how to", but rather "what the...". ;-)I don't even know if the events are WPF-events,...
View ArticleRe-size DrawingVisual after rotation.
I am facing issue in calculating the center of the DrawingVisual when it is already rotated, and resized.I am doing one tool which allows drawing of various shapes in the canvas. I created a Shape...
View Article