WPF is Keeping Image Controls in Memory
I have a very image-intensive WPF application. I have developed a solution that holds onto `BitmapImage` objects in a dictionary by their path name and gets rid of them after a certain amount of time...
View Articlehow to change the default movement of scrollbar when the height of text box...
I am using DataGrid in which corresponding to one student we can have multiple courses assigned. When one student have been assigned large number of students than height of student name textbox...
View ArticleSelected Combox value to another window
Hi guys,Model: private string fruit; public string Fruit { get { return fruit; } set { fruit = value; OnPropertyChanged("Fruit"); } }ViewModel: private ObservableCollection<Model> fruits = new...
View ArticleGeneral questions about deriving from Window
I've created a class that derives from Window, in my solution I have the new class and a demo/test app.I've gotten most of what I want to do - all of the override logic is coded in the class, the only...
View ArticleHow to binding command to custom routed event?
Hi All,I am developing a WPF App. I created a Custom UserControl and set some RoutedEvents. Code snippet like this,XAML:<Grid><Button Content="Click me" Width="200" Height="45"...
View ArticleUpdate TextBlock text using Dispatch timer
I am trying to update my textblock with new text from a list of strings.But each time I start my programm,the TextBlock always jumps to the last string.And I do not know why.<Grid Opacity="0.8"...
View ArticleHow do you dynamically handle variable number of columns returned from a...
I've written a few WPF apps. I know how to use data templates and have written them. But in all cases when I've used them, I'd done so with a known number of columns being returned from the...
View ArticleTreeview control with transparency to use in winforms
Hi All,I'm sorry for my lack of knowledge in WPF, I have never used it.I need a Winforms Treeview control with some transparency and according to every post I have read it looks like impossible to do...
View ArticleWPF memory leak with Automation Peer
Hi there, I found a memory leak for WPF TabControl. (vs 2012 and .NET 4.5):An simple view:<Window x:Class="WpfApplication1.MainWindow"...
View ArticleData Binding to a Button IsPressed Property
Is it possible to create a binding on a button such that the boolean value is set to true when the button is pressed then is set to false when the button is released?I tried binding to the IsPressed...
View ArticleHow to write my own popup control by WPF
Hi there,I have an control to show some figure, see blue area.I want to customize a control which has this function, when mouse is over the figure control, there will be some setting control(see the...
View ArticleTreeview HierarchicalDataTemplate Disable all items
Hi My code follows: <Border> <DockPanel> <TreeView x:Name="tree" BorderBrush="Transparent" BorderThickness="0"...
View ArticleUI Response on heavy loading Data from Database
Hi All,i am looking to find out solution if i am using data loading into grid from data base my screen take 20 seconds with total 300 records and 50 columns +.Store proc it self taking 7 seconds and my...
View ArticlePinters & Devices windows goes behind WPF app
Dear All,I have a WPF application & I’m trying to open “printers & devices” on Windows 8.1.Issue: The window is opening but it goes behind the WPF application.How can I bring the “printers...
View ArticleIDataErrorInfo in Multiple View Models
hi,Here is my Sample Code:ViewModel: private string firstName; public string FirstName { get { return firstName; } set { firstName = value; OnPropertyChanged("FirstName"); }...
View ArticleHow to Add Winform's MSChart into WPF application
Hi, I wanted to add the winform's chart control (Namespace:System.Windows.Forms.DataVisualization.Charting) into the WPF, but I am not able to add it. My existing XAML code looks like...
View ArticleSupress Code Analysis Errors in Generated Code
I love code rules! I want to implement every single one!The problem is that most of my errors come from the generated code behind WPF.I have enabled "Supress results from generated code (managed...
View ArticleProblem with delete table row in FlowDocument.
I add usercontroll and tablerow add tablerowgroup then add in FlowDocumentScrollViewer but i have problem with Right Click Delete row that i add already in FlowDocumentScrollViewer ,How should i do...
View ArticleByte property bound to Text box text property - Setter not getting called
Hi,I have a text box in wpf application and its Text property is bound to a property of type byte. When I try to enter any alphanumeric text in the text box then the setter of that property is not...
View Article