want message loop in worker thread
I want a message loop in a worker thread to accomodate some 3rd-party software. The software raises events and, when run in the UI thread, blocks the UI for longer than it should.Something...
View ArticleWPF MVVM pattern to CSV file
Hi All,I am new to MVVM pattern and WPF also. If i have designed to generate 100 queries to display in the Grid and it needs to be converted as CSV format. Is this possible to do it ?SaranRam
View ArticleHow to know the current Cell grid position
Dear all,I need to build a game board which will be design by a graphical background as follow :On top of the graphic board I will draw a grid in order to represent each cells.In order to offer a rich...
View ArticleRestrict characters in decimal field in WPF (MVVM)
Hi,My application is WPF with MVVM.I have a decima field which is binded to a text box. I want to restrict the characters to that textbox. How can i achieve this?public Nullable<Decimal> Weight...
View ArticleSystem.OutOfMemoryException: Insufficient memory to continue the execution of...
Hi everyone,I'm getting System.OutOfMemoryException when my WPF application runs for long time (~4-5 days). Application is written using .NET 4.0 and running on Windows7 embedded 64 bit. But...
View ArticleChange button styles depending on object property
Hello everyone,I'm trying to modify in xaml the style of a button inside a listboxitem, when a property (the IsAlive property) of the bound object is true or false. This object contains three...
View ArticleWPF cant pause a MediaElement
Hey,I placed a media element on a grid, added 2 buttons to browse for file and one button to play the file.while playing the video im loading works well, the pause does not work.Functions:...
View ArticleHow to execute the batch file on the server side from client after uploading...
I transfer (upload) the batch file to the server using FTP in C# (FtpWebRequest). Batch files have some commands. My requirement is to transfer the batch file to the server (which I am able to do) and...
View ArticleSet ItemTemplateSelector via XAML Inheritance
I have 3 classes (ExpanderItem), (ExpanderControl), (TestControl).--ExpanderItem<UserControl>-- namespace decl and other initialization code<ItemsControl x:Name="ContentPanel"...
View ArticleSaving a document in shared folder
Hi I am under a task (in my wpf project) to save a document in shared folder,so any user of that system can view that document .I want to know how i can get the shared folder path...
View ArticleHow to bind a BitmapImage to Image control in xaml with "Binding"
Hello!I am having some trouble with an image, and I hope somebody can help me, because I think I might be missing a very simple thing, it can't be sooo dificult!I am developing a WPF application, that...
View ArticleTrigger Opacity of an ItemControls Datatemplate
Dear all,I have an ItemsControl whihc has its ItemSource bind to amy ViewModel The datatemplate used for that ItemsControl is define as follow :<DataTemplate x:Key="ScoresTemplate"><Grid...
View ArticleHow to select/deselect all check boxes in a given Groupbox at once
Hi,I have a WPF form like the one given below. My requirement is upon clicking select all/ unselect all (ContextMenu) i want to check all the check boxes inside the group boxes. I didn't find a smart...
View ArticleApply tooltip style in ErrorTemplate
I have a custom style for ErrorTemplate tooltips. This works just fine when applied to a control.<Style x:Key="errorToolTip" TargetType="{x:Type ToolTip}"><...></Style>I then have the...
View ArticleBind XML File to TreeView control and filter using XPath
Given the following XML how can I specify an XPath which will populate the TreeView control with every node element EXCEPTwhere Name="Main Heading" I dont want the root node to be displayed, just need...
View ArticleProgressBar not get Proper grid using MultiBinding Converter in .Net...
Hi, I have Migrated from .net Framework 3.5 to .net Framework 4.0 After that I am facing the ProgressBar problem.In my application in .net Framework 4.0 I am using MultiBinding Converter as follows,In...
View ArticleHow to use WPF SplashScreen class under .NET Framework 4.5 / Windows 8?
Hi, I have a problem using the WPF SplashScreen class under Windows 8: When shutting down the application while the splash screen is about to be displayed, the program crashes sporadically with the...
View ArticlePropertyChanged not fired when user control's combo box selected value changes
I have a user control with a combo box and a text box as shown below.<UserControl.Template><ControlTemplate TargetType="{x:Type UserControl}"><DockPanel...
View ArticleSearch Graphic Library WPF C#
Hi,I want a DLL, who allow create a line Graphic with a zoom, same VisiBlox but this isn't free. I want free library.Thanks, it's urgent!!!
View ArticleMVVM design pattern for beginner in WPF
Click here To View The Contenthere I used to explain MVVM core functions what do you think about that ?Please use Firefox or Chrome to view the content.I think you will get good practical understand...
View Article