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

Validation ErrorTemplate for Datepicker within UserControl

HiI have created a validation error template for a datepicker. It works but when I put the datepicker with the error template inside a usercontrol the validation doesn't trigger. Can someone...

View Article


ListBox - Unable to cast object of type 'System.DateTime' to type...

Hello:I have a listbox with DateTime objects.I then have a method that I need to call and pass in the items from the listbox:public bool copyFiles(List<string> datesProcess)I attempt to call the...

View Article


Binding error on XmlDataProvider (cannot bind to non-XML object)

Hi,I have a problem on binding some controls to my XML. My XAML is this (loaded at runtime):<DataTemplate xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"...

View Article

Conflicting InputBindings / InputBinding priority

Hihow does wpf handle inputbindings that fire on the same gesture, key-combination?My task is to let "Ctrl+A" select all items in a treeview. Unless the focus in on a textbox where the name of one of...

View Article

Image may be NSFW.
Clik here to view.

Problem facing with implementation of MVVM

as i known about MVVM  "View Model" should not have Reference ofView or UI controls.I have one requirement where i am facing problem with implementing in MVVM.could you please help me in solving...

View Article


How to edit a ListBox Item

I have a simple listbox of file names.   I have a button that I want to rename a file listed in the listbox.  I have modified the default ListBoxItemStyle template and added a TextBox and made the...

View Article

Image may be NSFW.
Clik here to view.

Apply RadioButton template in ListBoxItem

I need to change static content to dynamic content. Here is a snippet of my current code:<Grid Grid.ColumnSpan="2" Grid.Row="1" HorizontalAlignment="Center"><RadioButton IsChecked="{Binding...

View Article

PropertyChanged Null when not visible

hi,I am having issue with a Collection shown in a Listview giving null on PropertyChanged when the item is not visible in the UIHere is what i am trying to do.I have a Checkbox in the list view that is...

View Article


Why doesn't Textbox support Multibinding on IsEnabled?

Hi all,I have searched far and wide, but I can't find an answer to what should be a simple question....Given that I have a converter with this signature: public class multiBoolConverter :...

View Article


After changing My Settings Name on application settings setup panel, the...

My original (wrong) settings name was "User'sOption" when I replaced the default name "Settings1".settings. And  I quickly decided that I was wrong because no apostrophe has everbeen allowed in naming...

View Article

Add and manage Checkboxcolumn to the start of a bound datagrid

Hi,     I have a DataGrid which is bound to a List<X>. I am looking for is add a column at the start of the DataGrid & if that checkbox is selecetd then only retrieve the values of the row,...

View Article

ObservableCollection DependencyProperty for new Custom FrameworkElement

Hi,I want to create custom control which is simply occurs a grid and contains rectangle elements. I want to make databinding for the rectangle elements. Therefore I create a custom class for my grid...

View Article

Different sized items in an ItemsControl retaining required width only

Hi, I have a problem with what I thought would not be that complicated, but I have now spent a few hours stuck with what to try next.I have a sample of the following at...

View Article


Adding Custom Fonts to System crashes WPF application which uses SystemFonts.

Hi,I 'm using a control like Combobox has the list of SystemFonts in WPF. This worked fine for me until my installation of new font.After installing new font Application runs,But when i click the drop...

View Article

Common dialog for selecting a folder - where is it?

Hi,this must be a very easy one, but I just don't find it: where is the common dialog for letting a user select a folder? I looked at Microsoft.Win32.OpenFileDialog, but that's for selecting files......

View Article


Save draw images xml with .jpg,.png and etc

 draw images in drawing canvas panel to save .jpg, .png and etc  save this images are not open in photoshop software anybody help me..

View Article

Overflow or underflow in the arithmetic operation + unmanaged code

I know there are a few threads regarding this issue but no one seems to fix the real problem. Most threads are also very old.I'm using WPF with a datagrid attached to a background updated ViewModel. A...

View Article


DataGridColumn Width Binding

I have tried binding the width of a DataGridColumn with that of another control or with a Property in ViewModel but it doesn't seem to work. Look forward for help.Requirement:To hide the empty column...

View Article

Adorner layer lost after selecting different tabitem (speaking of...

 Everyone, I have a simple window with a TabControl and two TabItems. The TextBoxs are wired up using the new 3.5 IDataErrorInfo validation and it works great! Problem is, if I am on TabItem One, that...

View Article

DataGrid and persisting on cell lost focus

I need to persist the value of a cell when the user leaves it. This sounds like a quite normal use case but apparently this isn't very Google’able.I have a working solution using the...

View Article
Browsing all 18858 articles
Browse latest View live


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