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 ArticleValidating 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 ArticleIssue 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 ArticleIf 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 ArticleRibbonComboBox 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 Articlewhat 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 Articleadding,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 ArticleAuto-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 ArticleAuto 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 ArticleWhy 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 ArticleCan 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 ArticleI 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 ArticleDatagridcell 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 ArticleHow 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 ArticleHow 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 ArticleScrolling 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 ArticleQuestion 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 Articlehow 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 ArticleRandom 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 ArticleHow 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