Copying data from grid and storing it in a variable.
Hi All,I want to copy a text string from a table and store it in a variable for further use programatically in C#.If any one can help me on how I can perform this operation programtically using C#.I am...
View ArticleException on start debug: Cannot locate resource 'app.xaml'.
I just installed Visual Studio 2008 beta 2. After Orcas beta 1 was a complete pain to work with (on my machine) I was hoping that beta 2 is more stable. Well, first time I opened it it crashed...
View ArticleParticular open type font is not working with WPF
Hello,In one of my requirements, I have to display list of installed fonts into the dropdown and based on the font selection by user, I have to apply that selected font to the Textblock.I am getting...
View ArticleChange the container of a control programmatically with C# in WPF
Hi folks,I am facing an unsolvable issue for me. What I would like to do is to change the container of a control such under a certain event such as button click. The two parent controls are Grid.Does...
View ArticleSOC performance on Observable objects
Hello,in my Class Library project there are classes, each with properties, methods and inheriting a class ObservableProperties that allow the update of visual information (such as WPF with...
View Articleclose messagebox of another application
How can I detect and close messagebox of another application?
View ArticleHow to render a WPF visual to a bitmapsource without blocking the UI
I tried to use a bitmapcachebrush to copy a visual in GPU and freeze it before rendering it in a background task. Unfortunately I got stuck. Here is my current code:public static async...
View ArticleWPF: Lostfocus with SourceUpdated gets trigger without value update.
I'm trying to trigger command if text value of TextBoxColumn gets change and on LostFocus. Thus, I used PropertyChanged=LostFocus in combination with NotifySourceUpdate=True to trigger SourceUpdated...
View ArticleBest way to use a WPF Form in Windows forms app
I have been researching using a wpf form in a windows forms app. I am using VS 2015. I found several articles that said to use a WPF user control project, build the WPF there and then use the wpf user...
View ArticleParticular open type font is not working with WPF
Hello,In one of my requirements, I have to display list of installed fonts into the dropdown and based on the font selection by user, I have to apply that selected font to the Textblock.I am getting...
View ArticleHow to Add or Remove bullet from RichTextBox?
Hi Developers,I want to add and remove bullets from in front of selected paragraph.like in Wordpad We can add or remove bullet character using one single button click. I know this can be happen using...
View Article[WPF] INotifyPropertyChanged doesn't work.
"0" should become "1", but it doesn't happen.How to fix?MainWindow.xaml:<Grid MouseDown="Grid_MouseDown" Background="White"><local:UserControl1 x:Name="userControl1"...
View ArticleWPF/VB.net - databinding to user control
I'm new to WPF and am trying my best to understand how fundamentally different WPF is to the WinForms I'm accustomed to.In WinForms I would update a control in another class by referencing the class...
View ArticleWPF App is begin cropped on win7 and xp, windows 10 for some reason.
Hi,I have got so many problem witn .NET 4.0 WPF.What is the root cause?
View ArticleSelection Changed of list box is not working with touch scroll.
Touch Scrolling is working when check my app by window Simulator on the OS 2010. But Selection Changed is not working with touch scrolling. I am not asking question about telerik control . my problem...
View ArticleHow do I disable the Window Snap? WPF C#
Window resizes can be easily handled in WPF with the SizeChanged event. However, on Windows 7/10 it is possible to snap windows. This resizes the window to the snap of the area. This doesn't trigger...
View ArticleSend parameter to ViewModel through IDialogService when open new window
I have PersonViewModel, DepartmentViewModel and their PersonView,DepartmentView. PersonViewModel has empty constructor, however DepartmentViewModel has a parameter:public class DepartmentViewModel {...
View ArticleINotifyPropertyChanging interface and its uses
How to use INotifyPropertyChanging in code.We know what to do about INotifyPropertyChanged, and what happens if we implement it or not implement it.But what about INotifyPropertyChanging ? Anjum S...
View ArticleReferencing WPF namespaces in F# 4.0
I am going through several resources to learn F#, including the Pluralsight course, Introduction to F#. I am using VS2015 Enterprise. The code I'm using is:open Systemopen System.Windowsopen...
View ArticleRenderTargetBitmap throws COM exception when created too fast:...
I am trying to use RenderTargetBitmaps to cache parts of a control I am rendering. If I start creating the bitmaps too fast, the constructor of RenderTargetBitmap throws the exception:...
View Article