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

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 Article


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


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

C# - 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 Article

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


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

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

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


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


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

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

Image may be NSFW.
Clik here to view.

RenderTargetBitmap() 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 Article

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


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

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


Image may be NSFW.
Clik here to view.

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

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


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

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

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


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