Category "wpf"

Image not displaying at runtime C# WPF

I have been trying to learn C# but I'm coming across a lot of problems. I am trying to display an image in WPF but for some reason, the image won't show! It app

Add a breakline in tooltip

¿How can I add a breakline to a text inside a tooltip in XAML? I try with this: <Label Name="label4" UseLayoutRounding="False" Focusable="Fa

Add a breakline in tooltip

¿How can I add a breakline to a text inside a tooltip in XAML? I try with this: <Label Name="label4" UseLayoutRounding="False" Focusable="Fa

dataGrid doesn't update when item property has changed

So I have almost identical thing set up with TextBoxes/ListBoxes and so on but it just doesn't seem to work with dataGrid.. So I have a view Index which contai

Converter of System.Drawing.Point' to 'System.Windows.Point

I am trying to draw few entities in WPF. My collection contains System.Drawing.Rectangle objects, When I try to access the location of those objects in WPF XAML

Custom ContextMenu Command in Datagrid's Textbox from ViewModel

I have a UserControl which includes Datagrid. Inside Datagrid I've set EditingElementStyle with Textboxes that have ContextMenu for Copy/Paste commands. I need

Custom ContextMenu Command in Datagrid's Textbox from ViewModel

I have a UserControl which includes Datagrid. Inside Datagrid I've set EditingElementStyle with Textboxes that have ContextMenu for Copy/Paste commands. I need

Monitor.TryEnter doesn't work

Part of my code-behind: object _sync = new object(); private async void OnKeyDown(object sender, KeyEventArgs e) { if (!Monitor.TryEnter(_sync)) return;

WPF Tab Control Prevent Tab Change

I'm trying to develop a system maintenance screen for my application in which I have several tabs each representing a different maintenance option i.e. maintain

Is there any way to remove bindings from all bound elements on a form close event?

According to this document, the following code causes a memory leak in WPF: myDataBinding = new Binding("Children.Count"); myDataBinding.Source = myGrid; myDat

Using FolderBrowserDialog in WPF application [duplicate]

I have a WPF application that I need to have users access directories in. I have searched to the end of the world on how to integrate windows

Getting current page of a FlowDocumentPageViewer

I have a FlowDocumentPageViewer control that I am populating from the code behind. I am adding text from 3-4 items. I need to know on what page item 1,2,3...

How to prevent TextBox auto scrolls when append text?

I have a multi-line TextBox with a vertical scrollbar that logs data from real-time processing. Currently, whenever a new line is added by textBox.AppendText(),

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