How to Uncheck Menuitem isCheked property in MenuItemClick event
I am able to check the menuitem but not able to uncheck and more over it showing previous check in the menuitem. Once I click on the another menuitem it doesn't uncheck the previous menuitem. I'm...
View ArticleHow to resize controls as window resizes?
Hi all , I have a WPF that I have set it to maximized when the program starts However i realize that my controls when minimized could not be resized.Anyone have any idea to resize all the controls ?...
View ArticleCustom TabItem template with MouseLeftButtonDown event states
I have created a template for my TabItems within a TabControl. I have looks defined for the Selected and Unselected states. I want to also have a Down Pressed look for both the Selected and...
View ArticleWPF C# - Placement of Modal Dialog
I added a Modal Dialog to an existing WPF application. The reason for this was to insert a WinForms WebBrowser control in a WPF application and place the window over my MainWindow such that it appears...
View ArticleMVVMLight command CanExecute not firing after async call
I'm using MVVMLight in a WPF4 project, and have set up an ApplyCommand and an UndoCommand, which are bound to buttons on the view. All standard stuff, done many times. When the user clicks a button, a...
View ArticleHow do I two-way bind Rectangles on a canvas to a business model?
As a beginner, I spent a ton of time creating a canvas that you can draw rectangles on -- and then selecting a rectangle so you can move it around or resize it.So I am pretty happy with how this works....
View ArticleExpressing WPF in UML
I am having trouble expressing standard WPF design in UML. I would be interested in class diagrams and dependency diagrams.I am interested in things like:1> Dependency Properties How do I...
View ArticleMDI form in WPF
I want to create a MDI Parent form and a Child form in WPF. When i drag my parent , child also should move with parent.How to achieve this requirement?
View ArticleHow can I copy a section of one WriteableBitmap to another WriteableBitmap
I need to copy a section (x,y,width,height) from one writeablebitmap to a section (same size) of another writeablebitmap.In fact, the x,y,width,height are identical of the FROM writeablebitmap and the...
View ArticleChild Form in WPF
I want to create a Parent form and a Child form in WPF. Parent Form - Window1.xaml Child Form - Window2.xaml When i drag or minimize my parent , child also should move with parent.How can i do...
View ArticleLoading multiple Images on WPF canvas degrade the performance of apllication.
Hi,I am using WPF canvas. I am having many images say around 1500-2000, which I need to load on the same canvas. But when I do this the application performance is sarificed. I am adding these images...
View ArticleWPF Canvas Ruler Scrollbar issue
Hi,I want to have ruler always visible even though I have scrollbar visible. See below ImagesIf I scroll down or scroll to right, both canvas ruler will be disappeared as I am scrolling whole panel to...
View ArticleURGENT ! WPF screen resolution ?
Hi all .. I had my program written in the Com's resolution of 1920 x 1200 it works well and able to see all of the controls .However when i change to my laptop with a resolution of 1366 x 768 come of...
View ArticleHow to get Textbox type Cell Value of each row in Datagrid Using WPF
Hi friends, There is one issue. How i get DataTemplate Texbox cell value in datagrid of each row.My grid like this:-<DataGrid x:Name="dgResult" AutoGenerateColumns="False"...
View ArticleScreen not updating quickly enough (probably problem with threads).
I have a 2,000 x 2,000 image inside of a Scrollviewer. As part of an animation sequence representing the location of animals on the map the image.source is changed to a 'clean' copy of the 3D map and...
View ArticleHow to implement Doevents function in WPF like winform?
How to implement Doevents function in WPF like winform?and if checkforIllegalCrossThreadCalls exists in WPF?by the way, my program like belowstep 1 (long time)Doeventsstep 2 (long time)Doeventsstep 3...
View Articlerendering with direct11 in WPF
I found multiple posts about rendering DX11 in xaml. In the end those posts were talking about c++/cx based applications and not WPF applications C# based.In the past we had for WPF the D3DImage...
View ArticleAbout a Dicom image with ClearCanvas wit C# from and old question on this...
Hello all, I recently came across a thread on this site with the topic Showing Dicom images for Heathcare. There was a poster named Dan Blanchard, whom posted the following code using...
View Article奇怪的问题 WPF窗体全屏无边框后 ListView的数据绑定失效了
我有一个WPF窗体 里面有ListView 我正常操作时 数据会显示在ListView里 很正常但是当我设置WindowStyle=None之后 窗体最大化 全屏无边框 再操作时 ListView就不显示数据了 数据源确定有值请问大家这是怎么回事阿sadfasdf
View ArticleA5 Printing using Raw Data in C#
http://support.microsoft.com/kb/322091I have used the above to link to print raw data this works fine. But my requirement is how do i print this same logic to print the data in A5 sheet for printing....
View Article