moving rectangles in WPF, Errors.
I am attempting to move rectangles in WPF inside the program while the program is runningI have: leftrec.SetValue(Canvas.TopProperty, lefthand.Y);Throws an "Argumentexception was unhandled" error,...
View ArticleHow do you insert text,table and images in a wpf richtextbox document where...
How do you insert text,table and images in a wpf richtextbox document where the caret is positioned?
View ArticleClickCount stuck at 1 with .MouseUp event
This question might be little stupid but couldn't find the right words to search google to know the answer.The problem is, when i go the MouseButtonEventArgs e.ClickCount, which was added to a...
View ArticleC# - Extend Glass Frame
Helllo Everyone :) Patric Scribe gived me a few days ago this link about Extand Glass Frame Into WPF Application. I have been trying to expand the glass efact to all my window background but with not...
View ArticleUsing alternative InputGesture (Key Mapping) for...
I have implemented a WPF ApplicationsCommand.New and thought it would be a clever idea to implement alternative scenarios with the same command - just using different parameters from an enumeration for...
View ArticleKnowing what is unselected
How can I know which element is unselected?<ListBox Grid.Column="1" x:Name="Territories" SelectionMode="Single" cal:Message.Attach="[Event SelectionChanged] = [Action...
View ArticleDragDrop Adorner Template disappears between windows
Hi,I'm having an issue where my drag drop adorner template is disappearing when dragging from one window to another. The drop performs perfectly correctly but the adorner template is only visable in...
View ArticleHow to use navigation inside a tab control
Hello,I'm working on a simple communications program that uses a tabbed document interface. Each tab represents a connection to the outside world. Inside the tab, there is a view for the configuration...
View ArticleAdd table to repeating pages flowdocument
Hello,I am trying to add a table to start on every page before flowdocument starts to print or as a header. I have put the code of the table below.Please help. All I want to do is to put this table...
View ArticlePrevent parent control selection/deselection
I have a child control that handles mouseLeftButtonDown event. When I perform CTRL+click it executes code logic to select data in my chart. However, it's parent control gets deselected too. How can I...
View ArticleIs WPF dead or going to be
I read this article and not sure if its worth learning WPF in case its not used in future - anyone got any thoughts?http://www.theregister.co.uk/2010/09/09/microsoft_html_5/
View ArticleRenderTargetBitmap() Out of Memory Exception
Hi All,I am using RenderTargetBitmap() function in a loop. I am facing out of memory exception when I execute the function. Below is the function which I use.Any help will be highly...
View ArticleSetting Container Position in WPF
Hi I want to show a container in WPF application at a specified point. How can i do that ?The window contains a Webbrowser control and i want to show a custom section ( may be a grid or Stackpanel with...
View ArticleFile dialog positioned behind the parent window
Hi,I have made a reference of “ApplicationClass” which is in “Microsoft.Office.Interop.Excel” namespace. As I call the Save() method of this class, the SaveAs dialog appears but it goes behind the...
View ArticleHow to retrieve which dynamically generated combobox has been selected inside...
I am a C++ developer and recently started working on WPF. I am sorry for the weird title since I wasnt sure what to put. In my app, I need to dynamically generate 2 groupboxes which contain buttons,...
View Articleribbon linbreak ?
hi!I have a ribbon with a alot of Buttons but there are to many Buttons in a line...I Need all the Buttons in the line!Here is a Picture with my Problem:Now I Need an idea that i can see all Buttons...
View ArticleWPF trigger on UnsetValue, or how to set MinHeight if Height is not set
Hi,I have searched for a while but found no solution yet.What I would like to do:I want to define a button style where the button has a MinHeight, when the user of the styled button did not set the...
View ArticleWPF DatagridTextColumn not changing immediately when a...
HiI have 2 Tables in a typical Master-Detail relationship :1) AcctGrps is the Master table. It has 2 columns : AcctGrpCd and AcctGrpName, with AcctGrpCd being the PK.2) Accts is the Detail table. It...
View ArticlePriting in WPF fails to use the user specified printer tray
Hi,The following code is being used to print some documents. The problem we are having is that no matter what tray we use it always appears to use the default tray. Any help would be greatly...
View ArticleSortDirection coming as Null for datagrid
DataGrid sort direction is coming as null. Why is sort direction coming as null during the first click on the column? My intention is to save the sort. But if sort direction itself is coming as null...
View Article