Make Enter On A Button Act As Mouse Click. Please Help!
Hi there all,I have my program set up so as that when i press enter it tabs between all the textboxes on the usercontrol. i am wanting it though, so that when it lands on a button and i press enter, it...
View ArticleMany to Many (Students , classes example) Datagrid xaml binding
I have a WPF / entity framework application, my model have student , class entities there is a many to many association/relation between student and class (student can have many classes and class have...
View ArticleWPF Application using EF 5 and SqlCe 4 - create, deploy and migrate
Hi,I have to create a distributed WPF application with a flat database on client side in order to work offline if the WCF service is not reachable. I thought about using entity framework model first...
View ArticleHow do I set a column in WPF datagrid as percentage value with 2 decimal points?
How do I set a column in WPF datagrid as percentage value with 2 decimal points?Here is my declaration of the data grid in XAML:<DataGrid ItemsSource="{Binding}"...
View ArticleHow can i display controls faster which is added run time?
Hi,I have a one form and I try to display data in DataGrid control with 100,000 rows & 10 columns and filling grid from DataTable. It works fine. I try to display data in TextBlock and adding...
View ArticleSQL Server Report Viewer Control , Replacing Toolbar with own WPF Controls
Dear all;i am using VS2010 and SQL Server Express 2008R2 express i have integrated the original Report Viewer Control in my WPF application by using an windows form host.The Reportviewer works fine so...
View ArticleRecord Screen | WPF, DirectX| Camtasia
Hi,I want to build a screen recorder which will record on screen activity like "Camtasia"...Please let me know do I need to use WPF or Direct X for itPlease provide detail if anyone has done it in the...
View ArticleSuggestion how to localize templates XAML
Hi,my application is composed by a main window which loads in its client area different XAML for different customers. The directory structure of the program is:MyProgram |- Templates...
View ArticleCreate Custom Calendar Using Datagrid
Hello everyone,I need help in creating a custom calendar using datagrid in WPF.Please give me some suggestions or samples...
View ArticleStrange problem with RenderTargetBitmap
I am developing a frame extract from video program. It works well and I can set an interval for the screenshots which are the stored in individual jpg files.Now I am adding the ability to add things...
View ArticleCommandBinding doesn't work
hi,Just trying to call a Command from one MenuItem:XAML:<Window.CommandBindings><CommandBinding Command="ApplicationCommands.Close"...
View ArticleWPF & OpenFileDialog (Win32 vs Forms)
I'm a programming student and I'm presently enrolled in a class teaching C# using WPF. All of my previous experience has been in WinForms and this has lead to some interesting issues. The most...
View ArticleA little bit of imagination (TextDecorations)
Hi there,This is one image with one HyperLink in order to use ICommand interface (simulating a button):<TextBlock DockPanel.Dock="Top"><Hyperlink Command="New"><Image...
View ArticleLack of headers
Hi AllI am having trouble with viewing .htm files, when they are in Split view, the header and left and bottom tool bars are visible in the source but not in design. When you click on the text in the...
View ArticleWPF Frame can not inherit value from parent
Hello If the parent control defines a value for the property "Foreground". The WPF elements inside the Frame will not inherit that properties value.If I add New Page to frame . then I change theme of...
View ArticleChange TextBlock Foreground color based on its Background color
In my WPF application, I have to keep on updating TextBlock background based on user conditions. TextBlock style is defined in App.xaml. If the background is too dark (Green/Blue) I want to set the...
View ArticleDatabase value doesn't display in wpf combobox
I've messed something up but cannot figure out what. I have a datagrid that used to display a value coming from the database just fine. Then I changed the cell on the datagrid to a combobox. The...
View ArticleProblem creating editable ListBox Item with an external button
I created a simple ListBoxItemStyle that contains a TextBox with its Visibility set to Collapsed and a trigger based on the ListBoxItem Tag property being set to True which sets the TextBox Visibility...
View ArticleAnimate the width property of a TextBlock
Hi to all, I have a TextBlock inside a cell of a Grid which I want to animate every time the text changes. My idea is to animate the width property of the TextBlock starting from zero to ActualWidth....
View ArticleDependency Properties and Attached Properties
hi,i am not clear with the concepts behind Depencency properties and Attached properties after reading so many time with reference of books and internet.can you please explain in terms of real time use...
View Article