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

ShowDialog Can Only Be Used Once?

Hello all. I have created an application (WPF/C#) with several windows that I call with ShowDialog.All works well unless I try to show two different windows, one after the other using ShowDialog on...

View Article


Image may be NSFW.
Clik here to view.

Do not want to know how to change the color of the Ellipse when the Ellipse...

Programmingpatterns, such ascell phones, Ihave been making.So thepatternwasdrawn totheTouch, butBecausein theend pointsof thepathusingthe'Ellipse.TouchEnter'EllipseEllipsecolorchange comes.Ellipsein...

View Article


Get Leafs of TreeView

Hi All,I have displayed a tree view in my application using MVVM and I followed the following article for that:...

View Article

WPF: How does NavigationService work with MVVM?

WPF has NavigationService class. From online training class (AppDev), we see how the NavigationService works in code behind.Wonder how does NavigationService work with MVVM pattern? Does anyone know...

View Article

WPF DataGrid Scroll Event issue

I have a WPF program which incorporates the WPF customized DataGrid . The grid works fine in nearly all respects except scrolling. If I put the entire grid into a ScrollViewer, I can smoothly scroll...

View Article


Spell checker for multilingual application

I am using using spellchecker in a multilingual application. Now I want to enable it for arabic culture. I am working on windows 7 machine and .net 3.5. As per msdn blogs, we don't need to install any...

View Article

ValidationRule to validate if end date early start date

Hi All.I have form with two date fields StartDatePicker1 and EndDatePicker2. And I would like to use ValidationRule to validate error if entered StartDate will less than EndDate. If is possible how it...

View Article

Attaching a style in a custom Control

I am working on my first custom control.  It uses a RichTextBox with inline TextBox controls.  I am planning to modify the FlowDocument to contain a series of InlineUIContainers interspersed throughout...

View Article


How to dynamically height and width change of user control ?

Hi All,           I want to dynamically change height and width of "User control " when resize  of "User Control"  View window(Not a Window only using User control ) than dynamically change height and...

View Article


WPF Combobox

I had this JSON response, i also deserialize it and trying to assign this to combobox but it is not possible for me to bind Id with conuntry name. So that its selection state will come{    "api":...

View Article

Image may be NSFW.
Clik here to view.

PathGeometry for Minimize button

I have a window which needs custom Maximize and Minimize Icons.Icons are :    For maximize icon, I already have Path.Data in my code as follows :Data="M0,0L9,0L9,1L0,1L0,9L9,9L9,0"I wanted path for...

View Article

how can i handle CommandPreExecute and Excuted Event in WPF

Modalviewnamespace WpfApplication10 { public class ViewModel { private SaveCommand _SaveCommand = new SaveCommand(); public SaveCommand SaveCommand { get { return _SaveCommand; } set { _SaveCommand =...

View Article

How to show last item selected in listview?

Hi all,i i am developing wpf app. i am using one listview control in it and adding items on button click. now i  want after adding an item,it must be display as selected item in listview. please...

View Article


WPF - XBAP application restart..

Hi,We are developing an xBAP application where one of the requirement is when users logs out then we need to shutdown current Application and should start Application. When saw some of the posts most...

View Article

Get resource key inside the created resource object

I have the following setup. I create a number of objects in XAML as resources, and specify parameters to them, which I then process in code. If something is wrong with the parameters, I want (for...

View Article


Textblock inside button + clickable area issue

Hello All, I have a button and I have put a Textblock inside it to look it like linkbutton. And I have to fix the button width... now the issue is even my text is only ten characters, I can click on...

View Article

How to get Data grid column header

Hi Experts,Im binding a colletion to a data grid and the columns are auto generated, so by default column header would be the property name. So i have added two meta data attributes to binding...

View Article


Nested DataGrid with inner datagrid in rowdetails template

Hi,I am using nested datagrid with inner datagrid in my rowdetailstemplate. I am able to get functionality of tree structure using nested grid. Inner datagrid has multiple rows with on of the column as...

View Article

Extra column will be shown in default WPF customized data grid

I have developed the customized data grid,that grid last column is showing empty always.how can i resolve the issue.please find the screen short.

View Article

Image may be NSFW.
Clik here to view.

TableCell split after page break : remainder split part looses original cell...

I have an issue regarding TableCell splitting strategy on WPF FlowDocument Table. Here is a simple code allowing to reproduce the issue :MainWindow.xaml/// <summary>/// Interaction logic for...

View Article
Browsing all 18858 articles
Browse latest View live


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