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

Window Activation

I written a text editor application in WPF: http://edi.codeplex.com/...and would like to implement a SingleInstance feature as in Notepad++. That is, the user should be able to start the editor more...

View Article


MVVM WPF Datagrid SelectedValue bind by view model ?

Anyone knows how to change the SelectedValue of the datagrid by ViewModel.If we change View then It will fire VM but not vise versa.

View Article


root element is not valid for navigation

Good Day i have a Window in WPF defined like this  <Window x:Class="RVI_Education.Gavigator"        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"...

View Article

How to deploy localdb database with WPF app

I have created a WPF app that uses a SQL database via the (localdb)\v11.0. Firstly I created the database very easily in VS2012 Pro SP1. Then using Entity Framework option 'database first' to create...

View Article

Aero2 theme with Visual Studio 2010 doesn't work

My WPF control library uses multiple theme XAML files to adapt to the different UI themes of previous Windows versions. Besides Generic.xaml it contains Classic.xaml, Luna.NormalColor.xaml, other Luna...

View Article


Difference between two datagrid values and display the result in a new row

I have a datagrid that displays a table from a database vertically as follows :   Scores1     | 75  Scores2     | 100  Difference  | ?       I have to added a new row called Difference which should...

View Article

Create dynamic DataGrid with style and properties from an existing datagrid

Hi, in .NET Framework 4.0, C# WPF form, on my UserControl Grid I defined a datagrid 'myDataGrid' with style and some properties. I did not put any code in the UC Resources block The 'myDataGrid' is...

View Article

WPF DataGrid drag-fill (auto-fill) functionality - possible?

I would like to emulate the auto-fill / drag-fill functionality in Excel, i.e. when you select one or more cells in a row then a border appears around them, with a small cross in its bottom-right...

View Article


Modal dialog opened from view model gets separated from main window on...

I have a Modal dialog in my application. I am opening the dialog from a command in view model using window.ShowDialog() .The problem is that when we switch to other opened application and then clicking...

View Article


How can I change label content at runtime on a window with a storyboard...

My Main Window opens a dialog that displays a progress spinner storyboard and should update the content of the labels as the program does some work, but I can't seem to change the label content on that...

View Article

Object reference not set to an instance of an object

 在用wpf的时候发现个奇怪的问题:在嵌套的控件里面,如果有控件调用了事件处理程序和使用了ContentTemplateSelector时,程序就会提示:Object reference not set to an instance of an object.。删掉其中任何一个就不会出错 When in use wpf found a strange problem: nested controls...

View Article

LINQ JOIN QUERY NOT BINDING

Hi,I want to bind few values to my datagrid (WPF Control)..through linq, when i tred with Join queries it through me the error as follows.A TwoWay or OneWayToSource binding cannot work on the read-only...

View Article

TabControl ContentTemplate binding problem

Hello,I am writing a testapplication in C# using WPF, but got a problem with binding the tabcontrol.My scenario is as follows:I have created an custom object called TestCategory this object has a...

View Article


Error loading XAML file in designer

When I open up my XAML file from a WPF 4.0 application in the VS 2010 designer, I get this error message:Der Objektverweis wurde nicht auf eine Objektinstanz festgelegt.   bei...

View Article

Creating new WPF window within a MAF Add-In

Hello, I have a WPF application, which hosts a series of isolated plugins as documentedhere.  Everything seems to be working very well, only recently I tried to get one of my Add-Ins to create a child...

View Article


OpenClipboard error with Windows 8

I have an application written in WPF that requires the user to fill in some textboxes in a uniform grid.  When all of the cells have been filled in and validated, the code calls the Clipboard.Clear()...

View Article

getting sqlexception "The multi-part identifier "System.Data.DataRowView"...

 Hi all,  I'm working on a WPF solution where I have to populate a combobox depending on the selected item of another combobox. But I get an error.  The XAML code is:  <Window...

View Article


UserControl XAML Not Recognizing Code-Behind Class Name

I have developed various UserControls in a WPF solution called CustomControls.  Once developed, I can copy the 2 xaml files for a control into a new solution ad use it there (or compile into a library,...

View Article

How to create a verified click once install certificate

I created my own, but it says Unknown publisher and gives the warning message.  I think this is as expected because I need to get a certificate from Verisign or someone like that.  So my question is,...

View Article

WPF Tab Control destorying Child Control state.

I am having an issue with the WPF tab control destroying the state of the child control.  The usercontrols placed in tabs are unloaded and loaded everytime i switch between tabs, to create slow lag in...

View Article
Browsing all 18858 articles
Browse latest View live