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

Add Window to Assembly

I have an existing project which compiled to a DLL. It has form based user controls and classes. Now I need to add a XAML 'Window' into the project. Is it possible? I am able to add XAML based user...

View Article


SERVICE in UserControl

I add a Service host on IIS in my WPFUserControl.When i drag the WPFUserControl in MyWPFApplication, VStudio write this error:"Could not find default endpoint element that references contract...

View Article


Extending the WPF Page control and including the derived class in a WPF App.

HiI have extended the WPF Page control and created a control named CPage. The objective is to include some custom functionality in the Page control, including some dependency properties which must be...

View Article

How to add items to an already bound DataGridComboxBoxColumn

Hi everyone, I have a datagrid with a DataGridComboxBoxColumn and which is bound to an ObservableCollection<UnitModel>. Now I used a styleto make the combobox column editable:<Style...

View Article

Dependency Property PropertyChangedCallback exception

  public bool HasConnection { get { return (bool)GetValue(HasConnectionProperty); }    set { SetValue(HasConnectionProperty, value); }}public static readonly DependencyProperty HasConnectionProperty =...

View Article


Dependency Property PropertyChangedCallback exception

  public bool HasConnection { get { return (bool)GetValue(HasConnectionProperty); }    set { SetValue(HasConnectionProperty, value); }}public static readonly DependencyProperty HasConnectionProperty =...

View Article

How to set the Region of a Windows Forms User Control that hosts WPF Control...

I have a WPF Control designed as a Pear Fruit...I can host that in a Windows Forms User Control using ElementHost...But I want to set the Windows Forms User Control region to the shape of the hosted...

View Article

Binding collections child item propery to Combobox...

Hi,In my application, i have a observablecollection of Employee class. Employee class has a name and Designation property.This observablecollection is binded using DataContext to a userControl. In this...

View Article


How to re-do an existing Windows Forms User Control to WPF control

I have the following code:using System; using System.Collections; using System.Collections.Generic; using System.ComponentModel; using System.Drawing; using System.Drawing.Drawing2D; using System.Data;...

View Article


Image may be NSFW.
Clik here to view.

How can I get an intensive, remedial class on Designer use?

A kind soul in this forum created a really great XAML for me. I had no idea that the visual equivalent can be manipulated with so many little icons, arrows, guidelines, etc.That is precisely my...

View Article

Image may be NSFW.
Clik here to view.

Binding to Text but change Text when lost focus (watermark)?

Not sure how to pull this off with MVVM. I can bind a textbox to an objects property but additionally, I want to be able to set a text to the textbox when it loses focus (put a Search content). Typing...

View Article

Multibinding ConvertBack doesn't pass the correct value?

There is a very strange problem which is confusing me a lot.Just like the code below,I had created a [Button] and multibound its [Canvas.LeftProperty] to [Entity.X] and [Entity.Z].The [Entity] class...

View Article

disable right click wpf

Hello, I am building a wpf app for a touch screen for windows 8 and I need to disable touch&hold (the equivalent of right click). I have read at the remarks on this link...

View Article


Xps font printing problem

Hi,I made a fixed xps document with a barcode font (type: 3 of 9). It shows fine when I display it with IE7, but when printing it fails (on two printers). I also made a Word 2007 document with the...

View Article

C# WPF DataGrid .net 4.0: Issues filling and editing DataGrid with joined SQL...

Hey there,I am running into issues using a DataGrid under .net 4.0 (I apparently haven't had these issues on 4.5, however am forced to use 4.0). I'm filling a DataGrid with a joined MS Access Table...

View Article


Can a custom Routed Event be used only on custom control??

HI all,Can a custom Routed Event be used only on custom control??... My doubt is whether can i use a custom routed event like"Glow" for a button like this.<Button Name="MyButton"...

View Article

Textbox binding - how to do validation on PropertyChanged but only...

I have a textbox that is setup for binding like below<TextBox FontWeight="Normal"><TextBox.Text><Binding Path="Students" Mode="TwoWay" NotifyOnValidationError="True"...

View Article


WPF popup is going behind when MainWindow Topmost is true

Hi All,  My scenario is,       Main window's Topmost is set to true       WPF popup's IsOpen=true and StayOpen=true   I want to display the window with popup ,but popup  is going back sometimes  also...

View Article

How to Populate a DatagridComboBox Column from another column

Hi all,I have two tables named Table1 and Table2. I want to Populate the column Col1 of Table1  with Col2 of Table2. here Col2 is a source column and  all values of Col1 will be a subset of Col2. And I...

View Article

Extending the WPF Page control and including the derived class in a WPF App

HiI have extended the WPF Page control and created a control named CPage. The objective is to include some custom functionality in the Page control, including some dependency properties which must be...

View Article
Browsing all 18858 articles
Browse latest View live


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