Category "wpf"

String.Format, Currency, Polish Złoty

I am developing an e-commerce administration panel in WPF. I would like to display currency values in PLN (Polish Złoty). Format {0:C} gives output in USD

How I Can Refresh ListView in WPF

Hi I am using WPF and adding records one by one to the listview.ItemsSource. My data will appear when all the data is included, but I want to show the data as

How to draw a function plot in WPF?

I am a simple housewife and I like to plot a polynomial function for my unmotivated daughter. I have made a grid in WPF, in one cell I want to draw the graph of

How to make a window modal to Page in WPF?

I know how to make a Window Modal to a Window I have a Page as my main window. I want to open a window and make it Modal to the Page. Is it possible? Does Page

Why the following WPF style is not applied?

Why doesn't the following style work? I have in other places the exact same construct with different controls and it works. Using TargetType="{x:Type Separator

Opening a PDF file from within a WPF application

I have a WPF application in which the GUI displays a few different aspects of the application to the user, using a different tab for each part of the applicatio

What might cause a performance drop after migrating a WPF project from 3.5 to 4.0?

When I compile my application to target version 4.0 of the framework, UI performance goes straight to hell. For instance, opening an Expander that contains a G

How do you code a throbber ("loading" or "waiting" graphic) in WPF?

How do you code that "loading" or "waiting" graphic in WPF? If someone had a page that requires loading a lot information, typically on a flash web site, you s

Does .NET have icon collections?

Does .NET framework have a collection of icons for use in Windows Forms or WPF application somewhere? How does one use it? For example, how do I use it as an ap

Setting mouse position?

Well I'm working on a small program and I'm trying to set the position of the window's mouse to it's center every time it moves. Thing is I have no idea how to

Update button in datagrid, entity framework WPF Application

I'm attempting to create an update button, that you can press to automatically update a record within a DB. the update button opens a new dialog, which then all

How to change Oxy Plot tracker vertical line thickness?

We are using Oxy Plot plugin in wpf project, it is great tool but I have one small issue. If I change application window size and reset plot axis zoom, vertical

Where can i find the default WPF Control templates?

As per this MSDN link, There is no way to replace only part of the visual tree of a control; to change the visual tree of a control you must set the

Display image in content presenter in button

I have a button with a style that displays an image inside it. I would like to be able to specify the image it uses using the Content property on the button (or

WPF Popup steals focus from owner

We have a WPF popup that is working perfectly except that when it opens it takes the focus from the window that triggered it which has a jarring effect as the c

What's the best way to cancel an asynchronous WCF request?

(Assuming a WCF method called "MyFunction") Currently, to support canceling a WCF request, I'm using the BeginMyFunction/EndMyFunction methods generated by svc

Hyperlink in WPF Richtextbox

I load WPF Richtextbox contents from Xaml string in which there are some Hyperlinks. When it is loaded into control, Hyperlinks are not clickable! I want to cli

Keep window centered after SizeToContent smoothly

I have a WPF window that changes it's size over time due to SizeToContent="WidthAndHeight". Initially the WindowStartupLocation="CenterScreen" shows the window

Keep window centered after SizeToContent smoothly

I have a WPF window that changes it's size over time due to SizeToContent="WidthAndHeight". Initially the WindowStartupLocation="CenterScreen" shows the window