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

Object Referene Issue- DragHelper

Hi All,I am facing an issue in my WPF (MVVM) based appliation.Issue is that i have a Text Box and a drop down , what ever value user enter's in the Text box we resolve it with Drop down and auto select...

View Article


Validating a textbox which will accept only negative decimal numbers.

Hi,I am working on one Wpf Desktop application. In that I have to validate a textbox such that the user can enter a range from 0.0000 to-99999.0000. any one please suggest me how to do this. It...

View Article


Issue with tabbing through controls in wpf user control with WindowsFormHost

Hi,I am using a  wpf user control to load as part of a word add in to launch and get user inputs for a letter template. Multiline text box was giving me issues here. It throws System.InvalidOperation...

View Article

If I target .net 4.5 but publish to a machine that has .net 4.0, how to make...

I has a web application that test ok when published to local IIS on Window 8. Then I publish the web app to a server machine that has .net 4.0. I get the error message: Parser Error Message:...

View Article

RibbonComboBox SelectionChanged not firing

I'm developing an app in .NET 4.5.1 WPF/C#. I have added the Microsoft RibbonBar to the main window. On it, I have a RibbonComboBox which I populate at runtime with labels. Wen the user selects an item...

View Article


what would be the MVVM form of this simple test WPF app? (VS2012)

I am trying to grasp the idea of the MVVM pattern for WPF programming -- Data Binding, Commands, Templating.   I put together a very simple WPF app which on the button click event will copy the text...

View Article

adding,loading and saving to a listbox from a .txt file

Hi everyone im a beginner to wpf, and im looking for the simplest way to add information save and load(to and from a txt file)all help would be greatly appriciated,thanks             

View Article

Auto-update Column and ColumnSpan in Grid-contained elements

Hello,I am 99% certain what it is I want to accomplish through some combination of Xaml and what's looking like probably some ValueConverter Bindings.I need to update a Grid's ColumnDefinition via code...

View Article


Image may be NSFW.
Clik here to view.

Auto Calculate 2 cells difference in data-grid row and insert into cell in...

Hi everyone and Happy New Year,I am trying to create a datagrid with a start time column and end time column of a process followed by a third column that calculates automatically on input the time...

View Article


Why DateTime.TryParseExact return false on different culture ?

Why this statement return falseDateTime.TryParseExact("lun", "ddd", new CultureInfo("it"), DateTimeStyles.None, out dt)whilenew DateTime(2013, 11, 18).ToString("ddd", new CultureInfo("it"))return "lun"...

View Article

Can not commit changes made to SQL server Database from WPF code

Hi Guys,Hope you can help me with this.I have created a very simple program using WPF in Microsoft Visual Studio 2013 Express, to Display , Update and delete data.It works when compiled.But never...

View Article

I can save the UserControl to image in WPF, but the pictures is black

I can save all the UserControl to image. But all the pictures is dark when I click save button in the first time except current UserControl, That's ok when I click save button again.This is my C#...

View Article

Datagridcell text change not updating the source in viewmodel.

Hi,I have created a datagrid with DataGridTextcolumn dynamically. Few columns are read only and few are not. Based on the user action I need to set the read only for a specific cell in data grid. I...

View Article


How do I shrink the margin around the DataGridColumnHeader in the DataGrid

I am trying to shrink the margin between headers in a DataGrid. I tried styling the DataGridColumnHeader and setting margin/padding/min height to 0 with no success. I think that the...

View Article

How to get "Select File" dialog via browse button in the property list of...

Hi,I want to add a property to a C#/WPF user control allowing a "Select File" dialog via browse button in the property list, just like ImageUrl property of Image control so that i can get the path of...

View Article


Scrolling using mouse wheel in a WPF Tab Control not working as expected when...

We have a VS 2010 C# VsPackage with a tool window that hosts a WPF user control. The user control has a tab control with 2 tabs, one with a few combo boxes and the other with a list view....

View Article

Question about sorting Detail table

Someone posted almost the exact same question here.  I attempted to use that answer in my situation but am not sure how to form the syntax.  I'm using WPF and EF.I, too, have a master/detail situation...

View Article


how to select easily a DataTemplate from App.Xaml

Dear all,I have the following DataTemplate in my App.Xaml<DataTemplate DataType="{x:Type vmodels:FilterViewModel}" ><!--<v:FilterView DataContext="{Binding}"/>--><v:NewFilterView...

View Article

Random hang-up when showing a dialog on a touchscreen on Win8

Hello,We are developing an application with VS2010, C#, WPF  and NET Framework 4.0.The application is having random hang-ups after showing a dialog. This problem only happens on Win8 and with a...

View Article

How to make TabControl a static object if created in Designer

Hey all,I've created a TabControl in Designer (I dragged it to Grid from Toolbox). Now I need to make a Property that returns reference - that TabControl so I could do something with it from another...

View Article
Browsing all 18858 articles
Browse latest View live


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