How to enable a checkbox inside a ListView in WPF?
I have a multi-trigger for my IsEnabled and IsChecked property. It is working well except that after the checkbox is disabled, it will not re-enable with code. Here is the...
View ArticleIs there a way to debug WPF application as -if running on Windows XP?
Is there a way to force a WPF application running on Windows 7 to behave as if it's running subsystem is Windows XP?
View ArticleHow to detect changes on client side
Hi,I am using Webapi to get data and on the server side I am using EF5. The context is in the web project and POCO Entites are generated in a separate project("domain"). WPF application has a reference...
View Articlellenar datagrid en wpf desde codigo
Buenas tardes espero y me puedan ayudar, tengo un data grid con 5 columnas agrgadas lo que quiero hacer es meterle informacion a esas columnas desde codigo y tambien que al momento de celeccionar una...
View ArticleWPF Widnow not visible when Show after multiple Hide/Show
.Net 3.5 sp1I have a wpf window which after 3000 Hide and show is not visible after invoking Show. The logic is executed - but it just isnt visible.Anybody knows the reason - should hotfixes described...
View ArticleAutomationpeer? On-Screen-Keyboard
Hi,I want to enable my .Net 4.0 WPF-application to "interact" with the on-screen-keyboard. Actually all I want is the normal usage: popup when focus is on textboxes.All sources I find tell me, to use...
View ArticleWant to set range for each joystick axis
Hi,I am using joystick to move cameras and using below code to acquire joystick and setting range. DeviceList gameControllerList = Manager.GetDevices(DeviceClass.GameControl,...
View ArticleDisplay selecteditem from a comboxbox on Datagrid
I have a `combobox` and a `datagrid` in my application. The datagrid has its itemsSource from its collectionViewSource resource key(using Entity Framework) and there are three `ComboBoxItem`'s...
View ArticleScrollviewer Manipulation events blocking button click events
Hi,I am creating an application which works in desktop and tablet.I created a user control with 10 Buttons.In MainWindow, I created a ScrollViewer which has StackPanel as a child. I have created 5...
View ArticleEventHandler In XAML
Hi guys, I have a problem defining an EventHandler in XAML Please take a look at the code and you will understand what I am trying to do and how I am trying to assign a method to the attached handler....
View ArticleHelp with loading an image to label' background C# WPF
Hi,I've created a class named: Structure which inherits from label. I want to dynamically load an image to it's background from the project' resources folder: this is the part inside the CTOR where I...
View ArticleWPF DataGridComboBoxColumn style
I use ComboboxColumn in DataGrid which works fine.However there is a style issue: When cursor is not on the column, the ComboboxColumn looks like a textboxColumn. Once I click it, a tiny arrow on the...
View ArticlePublisher cannot be verfied in WPF
Hi all of you,Every time I launch my WPF application I get twice this message:"Publisher cannot be verified.Are you sure you want to run this application"So that I've decided to create a test...
View ArticleMediaPlayer don't work well in WPF
I have a very strange problem with MediaPlayer in WPF. The player is set in the main window consturctor, its works fine, but if I put it in some timer or inside a method its just dont play the sound...
View ArticleHow do you specify test data, to display in the design view?
We're working on our first major WPF app. Isn't it possible to have test data that can be displayed in controls, especially ListBoxes, DataGrid, etc., that would make it easier to style those controls?...
View ArticleHow to set Window.DataContext declaratively in XAML
Hi,In my window, I declare and populate an ObservableCollection<Person> _persons; Then I assign it as the DataContext of the window like this: this.DataContext = _persons;I have a listbox in the...
View ArticleWPF Performance question
To measure performance I made an application with a timer which changes 54 Boolean values (as for the test), the values are bound from a wpf (xaml) window and shown as simple textblocks, this works...
View ArticleHow to print text to a local or network printer from my WPF app
Hi,I have a Print button in my WPF app and when the user clicks on it, I want to display the Windows' standard Print dialog box where user can choose the printer and change other print settings. My...
View ArticlePack URI Absolute Path
Hi everyone,I have a certain image file located at this location on my machine C:\abc.tif.I have to assign this to ImageSource property of ImageBrush.How can I do it programmatically...
View ArticleWPF and .Net 4.5 Issues
I have an application that i have developed in .net 4.0 and on app startup i make a few database calls and bind my results to a couple different datagrids on different tabs in my main view. On my...
View Article