Quantcast
Channel: Windows Presentation Foundation (WPF) forum
Browsing all 18858 articles
Browse latest View live

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 Article


How 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 Article

Print 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 Article

How 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 Article


Image may be NSFW.
Clik here to view.

How 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 Article

System.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 Article

how 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 Article


Access 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 Article


Image may be NSFW.
Clik here to view.

How 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 Article

Generate 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 Article

use 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 Article

How 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 Article


How 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 Article

Handfree 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 Article


Binding 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 Article

how 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 Article


how 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 Article

Animate 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 Article

WPF 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
Browsing all 18858 articles
Browse latest View live


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>