Selected enum based on selected value in combobox
I want to display a list of values in one combobox and based what gets selected fill values in another combobox. So for instance i have these enums: public enum Region { Midwest, West }; public enum...
View ArticleHow to check if the TextBox start with % and end with %?
Hi,How to check if the TextBox start with % and end with %?It is straightforward. For exampleTextBox.Text = "%WPF%;TextBox.Text = "NO WPF;TextBox.Text = "%WPF001%;TextBox.Text = "NO WPF 002;
View Article'DeferRefresh' is not allowed during an AddNew or EditItem transaction
Basically I have a tab control in the GUI and there is WPF 4.0 datagrid in one of the tabs. When I click on a cell in the grid and edit something and then switch tabs I was getting Defer Refresh error...
View ArticlePrint out a paginator with PrintQueue
Hi,I want to print a paginator (type is inherited of DocumentPaginator) with an instance of a PrintQueue:var writer = PrintQueue.CreateXpsDocumentWriter(printer); writer.Write(paginator);I can...
View ArticleHow to run a story board, and then remove it after it has finished
Hi, I wanted to be able to change the Background of a button when it is clicked, have this colour stay applied for say 3 seconds, and then the background revert to the original.I am using a Style for...
View ArticleHow to make a /r/n for custom control go to next row after added in itemscontrol
How to make a /r/n for custom control go to next row after added in itemscontrolDesigner
View ArticleSystem.Windows.Shapes.Path incorrect behavior
After doing some research on subject I didn't find anything, so I'm sorry if the same question was already asked. Task: make a colored track-line on Canvas after cursor, when the left mouse button is...
View Articlehow to use image control to display 10 images sequentially?
I have struggled with this problem the whole day.when I use this code, it can work:int i = 0; private void button1_Click(object sender, RoutedEventArgs e) { i++;...
View ArticleAccess violation in wpfgfx_v0400.dll
Hi,our .Net 4.5 x86 application crashes in wpfgfx_v0400.dll, when running in the debugger or stand alone, on Windows 8 x64.The crash seems to happen randomly, but quite frequently, we can easily...
View ArticleHow can I programatically get child's content text and value from stackpanel...
hi, I am trying to get textbox value from a stackpanel. That stackpanel is a child of a popup. it is easy to add a stackpanel with its children into a popup content as child. But I cant succes reaching...
View ArticleGenerate file Generic.xaml on having generated the project
Good morning, I take time trying to divide the file Generic.xaml, so that it is possible to work better on, since there comes a moment in which it is very difficult to work on this one, by what I would...
View Articleuse MediaFoundation.dll in wpf
hiHow to use MediaFoundation.dll in wpf application to create video player.i found samples for form window but i don't know how to use in WPF.Please HelpThank you
View ArticleHow to pass data between one Window to one view in WPF?
Hi all of you,When I run my app the first thing is launching my Window Logon where the user can do logon against my rdbms, fine till here. I would need to pass data to my main view from this window but...
View ArticleHow to create Radiobuttons dynamically in WPF with the input given by user ?
Hi, I want to create RadioButtons in a stackpanel dynamically based on the user input in a textbox. I am unable to bind it and no radiobuttons are visible . My xaml code is below :---...
View ArticleHandfree Drawing with mouse in C#
hi all,I have picturebox and i want to draw freely with pen on picturebox with mouse...i also wanna give choices for color and size... please do suggest me as soon as possible. Thanks in advance.
View ArticleBinding Dependency Properties of Non-FrameworkElements
Hi i have a configuration class, that is meant to configure a complex ribbon bar class. The configuration class has a collection of ConfigurationItems and the ConfigurationItem derives from...
View Articlehow to change header style of listview in wpf
Hi All,I am working on a wpf project. I need a group and sort listview. I need to change style of header, cell and group of listview. I write GridViewColumn as the following:<GridViewColumn...
View Articlehow to bind data to group header of listview in wpf?
Hi All,I have a ListView, and I want to add grouping to it. I added a CollectionViewSource, and set my grouping and sorting parameters. I then written a GroupStyle to my XAML. It works as expected,...
View ArticleAnimate along Polyline
I have been searching high and low. At this point everything is cloudy so I thought I'd just ask my question to see if anyone could point me in the right direction. I'm trying to animate a Path...
View ArticleWPF DataGrid moving or navigating to next record works but datagrid is static...
Hello..\I have a datagrid bound to a collection of data. My code works, as I click on the button "Next", the selection moves to the next row, however, as I keep on going down, the datagrid just stays...
View Article