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

How to apply themes on different different controls ?

Hi all,           I want to  themes apply on different different controls such as button, list box,combo box etc.  in WPF.    Thanks.aniruddha

View Article


Converter not found in xaml designer

I am not sure if this is the right forum to ask this question, but we are seeing  an error along the lines in the xaml designer:The type BooleanToWidthConverter  was not found.  Check your ....in the...

View Article


How to access Textbox GetBindingExpression in ViewModel

Hi,Model- PersonViewModel-MainWindowVWView-MainWindowPlease help how to acces the textbox.getbindingexpression in viewmodel. Please refer sample code. i have used updatesourcetrigger=Explcit. After...

View Article

WPF: Basic Binding Question on UserControl with respect to two way mode

Hi,I will try to be as clear as possible :-1. I have a Usercontrol with a TextBox (It has its own View Model) - I2. I have another UserControl which references the above one (It also has its own View...

View Article

Why are we getting a "'The property 'Resources' can only be set once"?

We've got a solution with 2 projects in it, in C#. Using VS 2012. In the secondary project we've got a Generic.xaml file which has some templates defined in it, for transitions, etc. In order to...

View Article


ComboBox throws an exception

I have a combo obx that is throwing a exception.The error in the build says: Provide value on 'System.Windows.Markup.StaticResourceHolder' threw an exception"<ComboBox Name="plotCombo"...

View Article

"could not create instance of"

View Article

Accesing mainwindiow controls from other class in WPF

I am creating a text changed event for a textbox in Mainwindow and text changed event i call a class after calling that class i want to reset textbox content to "" how to do it easily i...

View Article


Creating geometry for Viewport3D using Multitasking?

Hi,I'm trying to populate a Viewport3D with UIElement3D objects. Because there is no DataBinding and Templating available with the Viewport3D, I do this manually using code.First, I create a...

View Article


Prevent keyboard shortcuts in TreeView

Hi,I have noticed that when I press the numpad minus (-) the TreeView will collapse the current tree branch. I want to disable this temporarily sometimes as it steals focus from the TreeViewItem that...

View Article

WPF commanding

I'm hoping someone can help me with the below problem. I have a dynamically generated list of radio buttoms in a user coltrol. when I select a radio button a string containing a name of the radio...

View Article

Dynamic allocation of controls

Is it possible to dynamically allocate WPF controls?  For example, I want to have a ScrollViewer, with a TextBox inside, and allocate an additional TextBox every time the last one becomes filled.  I...

View Article

WPF propertygrid globalization

In WPF property grid, there are "Search" and "Clear" buttons displayed. If i want to display these names depending on the language selected how to achieve?

View Article


Saving Text as an image that can be used as a Texture in 3d graphics

Hey guys,I have created a program that creates 3d charts.  It creates bars of different length and has hash marks that go up the side for comparison.  The whole thing can be rotated, zoom in or out and...

View Article

Why is it that an System.Windows.Controls.Image cannot be converted to a...

Hey guys,I know that this is a general question but it is driving me crazy!  I'm working on an application that includes WPF forms and what I want to do is to be able to click on a control (in this...

View Article


Pass DataContext Down Through Objects in XAML

Hello guys,I am trying to write a custom control and my problem is that the column does not not receive DataContext and therefore cannot do the binding.My custom control looks like this:class...

View Article

Task.Factory.StartNew ContinueWith Testing

I am writing a unit test to test a method in a WPF application. The WPF method code is as follow (this is a callback method from the EventAggregator):private void OnEquipmentListUpdated(object...

View Article


How to communicate from wpf to html 5 app?

Hi,I have a simple WPF app where  string messages  need  to be sent to HTML 5/(javascript) app.Which is the best way to transfer data.Also please point to any resources if available.

View Article

Xaml Binding to empty collection

HelloI have an entity called Employee with an ObservableCollection<Address> and Address has several properties eg. Town.Now I'd like to bind directly to the Town value as in <TextBox...

View Article

Host a windows form within WPF window?

Hi,I'm learning to code in WPF and I was wondering if I could host a windows form within my WPF window (using vb language).I just want to be able to put some of the windows forms in some tabs instead...

View Article
Browsing all 18858 articles
Browse latest View live


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