IDataErrorInfo and validation object - not property
Hello,When I start I think this problem is very simple. I have ViewModel with IDataErrorInfo and UserControl:<a:ProductView DataContext="{Binding Path=., Mode=OneWay, ValidatesOnDataErrors=True}"...
View ArticleUsing alternative InputGesture (Key Mapping) for...
I have implemented a WPF ApplicationsCommand.New and thought it would be a clever idea to implement alternative scenarios with the same command - just using different parameters from an enumeration for...
View ArticleProgrammatically select HierarchicalDataTemplate.ItemTemplate
Hi, I have a requirement where i should display data Hierarchically in TreeView. The primary node will be ModelName which is a TextBlock and each primary node should have number of...
View ArticleMultiLine Chart using WPFToolKIT
Hi,Please let me know how to achieve the multiline charting using WPFToolKIT.
View ArticleC# Help Print Data From Access into a Textbox
Hi All,I am trying to view a certain row from Access in my C# program.private void Button_Click_1(object sender, RoutedEventArgs e) { OdbcConnection conn = new OdbcConnection();...
View ArticleFont Size From Slider - Simple XAMLBinding
I want slider to change font size in other wpf controls.I found a simple solution similar to below but could not get it to work. Can you help get it to work?Thanks<Window...
View ArticleVisualBrush pixelates the content
I have an issue with VisualBrush, as seen on the right side of this image.The shown object is a Rectangle, which uses VisualBrush to show its contents - two items of a ListBox (this complication was...
View Articlecolumn in gridview in listview not sizing itself
I have a ListView whose View is a GridView. The CellTemplate for the 1st GridViewColumn is a DataTemplate that has a custom control in it. I appears that the 1st GridViewColumn sizes itself to fit its...
View ArticleWPF DataGrid and ITypedList: PropertyDescriptor.GetValue() is not called
I tried to implement ITypedList in my ItemsSourcebut PropertyDescriptor.GetValue/SetValue are never invoked. What is wrong about it? XAML looks like this:<Window x:Class="WpfApplication5.MainWindow"...
View ArticleHow to create a menuitem that displays its ItemsSource in a listbox in WPF/MVVM?
The goal is a menu item that display its contents as a scrollable listbox. The reason for this is because the idea is to limit the consumed screen real estate to say 8 lines or so for the menu item...
View ArticleHow to let the user edit a rich text box in windows phone?
I've the following xaml code:<RichTextBox Foreground="black" Background="White"><Paragraph> line 1: abc cde fgh ijk</Paragraph><Paragraph> line 2: abc cde fgh...
View ArticleInteracting directly with a database with WPF and EF
Greetings,I have two projects that I tried to set up identically, but with one I can add a new line in a table in the database programmically and the other I cannot. I have used the same code, have...
View Articlewpf to handle touch keyboard in windows 8 desk mode
I have tried to show touch keyboard using IInputPanelConfiguration interface.http://msdn.microsoft.com/ja-jp/library/windows/desktop/jj126267(v=vs.85).aspx It worked on MFC project. but it not work...
View ArticleMenuitem of a Menu is disabled
Hello. I'm trying to use RoutedCommand and Command in a Menuitem. I have done following:_commandNewProject = new RoutedCommand("NewProject", typeof(Project)); var binding = new...
View ArticleWPF:TreeView How to assign Id to a treenode
I have a WPF application with treeview control. When I implement this method to parse the strings I can find a treeview. Now I want to assign id to each path for...
View ArticleNeed Sample Code to Scan Documents using WPF
Hi, I have been working on the WPF application using c#. Need some help in scanning the documents. Any suggestions to do it... Really appreciate if i can get some code. Thanks
View ArticleUsing image scanner devices in .NET ?
Anybody knows component or ActiveX to scan images using scanner device in .net platform?
View ArticleCombobox with Auto Complete Facility in WPF
Hello Guys,I am trying to achive Auto Complete feature in Combo Box in WPF.I tried the using the below sample from this site.http://dotbay.blogspot.ae/2009/04/building-filtered-combobox-for-wpf.htmlit...
View ArticleHow to set Controls on TabItem to default values on Clicking on another...
On windows load ,I am Binding data to datagrids in tabItem1 and tabItem2. the datagridheader has checkbox and row also have checkbox ,the functionality of checking and unchecking working fine.Now after...
View ArticleHierarchinalDataTemplate component not to highlight when selected
Hello guys,I've got the following resource dictionary in my wpf form<ResourceDictionary><Style x:Key="TreeViewItemStyle" TargetType="TreeViewItem"><Setter Property="IsExpanded"...
View Article