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

Several threads changing UI with MVVM

I start a few threads that work in background. They have their jobs, and they raise events that I consume in the ViewModel, and changes the UI.For example, look at this method from a ViewModel: private...

View Article


XDescProc.exe holding on to a named mutex

We are using Visual Studio 2012 with the Caliburn.Micro framework. As part of that framwork there is an AppBootstrapper which is called as soon as the application starts. Within this application we...

View Article


Why TextBlock with HyperLink is not disabling?

Hi, I have a strange situation. I decide to add the hyperlink to my wpf window. When my app is starting, this window should be disabled, to avoid undesirable user clicks. And here is the magic -...

View Article

Image may be NSFW.
Clik here to view.

How hide additional Column in GridView?

Hello All,       How can I hide the additional GridViewColumn from GridView through xaml? The red marked column should be hidden.RegardsSalamIf you find any postis helpful, Kindly Vote As Helpful...

View Article

Calling WPF .XAML file from class library.

Team,I have a requirement where I need to call a WPF .xaml file from a class library. Say, I have tool developed in WPF and this tool should be kicked-off inside a class library when I call the...

View Article


Image may be NSFW.
Clik here to view.

WPF - Datagrid - Style header on columns reordering

Hi,I've having some trouble to override the default style of the column headers when I'm reordering a column. In the screenshot, you can see the separator is blue and the header text doesn't fit my...

View Article

Ultimate Novice: Question About ProgressBar And BackgroundWorker

I have a one control(Textbox) application. The user enter a number and if the format is correct, the database searches for the number and display a confirmation. All of this happens as follows:    1....

View Article

Treeview ContextMenu Command Binding

I am having problems binding to a ContextMenu attached to treeview items.  The sample code has two treeview's in a stackpanel.  The first treeview has one item with a header of "Group 1"  the seond...

View Article


View Model Navigation in Windows 8

Hi,I am trying to use MVVM model to make my windows 8 app and I have bound a button click on my first page view to move to the next page, but I am facing a problem of sending any type of data to the...

View Article


DataGrid exception on validation failure (DeferRefresh is not allowed...)

In the same series as the DataGrid validation scheme issues , I get an exception whena cell is invalid the DataContext changes This happens in a DataGrid, which is bound to a CollectionViewSource. This...

View Article

[Help] How to add one button to the title bar of WPF page?

Hi All,Right now I need to add one extra button to the title bar of WPF page, NOT window. How can I do it?If it is the window not page, I can update the windowstyle and re-draw one title bar. But now...

View Article

webBrowser control

When  try to run a complex HTML5 page (exists locally on my desktop ) on IE10 it works perfectly, but when I try to load it in the webbrowser control I don't get all the features.Although I've called...

View Article

Writing a custom WPF trigger

In a Style, I want to be able to write something like following:<Trigger Property="TextStyle" Value="Main,Disabled,Secondary"> ...</Trigger>which should mean, that the setters inside this...

View Article


WPF Performance. Wrong dirty rect calculation.

I am currently  analyzing performance problems in a WPF rich client LOB application. The problem is that the application runs very slow/sluggish. Especially data table handling (scrolling, sorting,...

View Article

Display XElement Graphic

I have a XElement containing the xaml to display a line. How do I load it and display the line in a rectangle?Mike Gallinger C.Tech. Cutting Edge Computing Software Developer

View Article


Zoom and Pan a Map Image with C# WPF

I'm trying to make a map from an image using the projection of Robinson. The idea is to give the image the same behaviors of a normal map, so the user should be able to zoom and pan on the map, it...

View Article

RichTextBox Error on Save and Retrieve PLEASE SAVE ME

Hello,Ive been having a stress ful problem for the past three days.I have an Richtextbox in a page and a list on another page. When you select a list item it should load the next page and add the...

View Article


Prevent repeated mouse left button clicks on TreeViewItem

HI,       In my application , I am having a logic of executing a command (through attached command behaviour) when a MouseLeftButtonUp event occurs on a TreeViewItem.  It may so happen that once the...

View Article

Unable to generate events from controls made in xaml

-Visual Studio Professional Update 3-Windows 7 Ult x64I am working with a WPF forms project and I manually wrote xaml code to create a control in the toolbox. When I double click the control on the...

View Article

Custom ScrollBar control with buttons...

Hello,i want to add a custom scroll bar viewer in my application for a Canvas control. But along with custom scroll bar i want to use some buttons for the canvas control. Similar to somthing what we...

View Article
Browsing all 18858 articles
Browse latest View live


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