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

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 Article


Using 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 Article


Programmatically 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 Article

Image may be NSFW.
Clik here to view.

MultiLine Chart using WPFToolKIT

Hi,Please let me know how to achieve the multiline charting using WPFToolKIT.

View Article

C# 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 Article


Font 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 Article

Image may be NSFW.
Clik here to view.

VisualBrush 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 Article

column 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 Article


WPF 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 Article


How 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 Article

How 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 Article

Interacting 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 Article

wpf 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 Article


Menuitem 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 Article

WPF: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 Article


Need 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 Article

Using image scanner devices in .NET ?

Anybody knows  component or ActiveX to scan images using scanner device  in .net platform?

View Article


Combobox 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 Article

How 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 Article

HierarchinalDataTemplate 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
Browsing all 18858 articles
Browse latest View live


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