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

Add A label to a resizable an movable image

I have a project that does multi-touch...image moving, resizing etc. These images are loaded on the fly, so I don't know how many may load onto the canvas. The moving and resizing has all been worked...

View Article


Thread safety bug in XPS Serializer or FixedDocument sequence? "calling...

Every once in a while (500 iterations or more) I'm getting an exception in the static method below stating "calling thread cannot access this object because a different thread owns it".  Thing is, this...

View Article


Image may be NSFW.
Clik here to view.

BindingProxy is not working at design time

I am using a binding proxy to bind top-level data from a viewmodel in a datagrid template column as shown below. The issue I have is that while it works at runtime, it does not work within the IDE...

View Article

Mr Ivaylo Yotov

Hello I need help to uninstall google chrome with scam. 

View Article

Activating Dragon Naturally Speaking Full-Text Control feature in a WPF...

Hi,This might be a long shot, but Nuance support redirected me here.A bit of context:I'm trying to use Dragon Naturally Speaking with my WPF application.They have a feature called "Full-Text Control"...

View Article


Prevent drop-down menu to close

I have a big problem. I want to prevent an opened drop-down menu to close when hovering another menu item. How can I achieve this? Thanks.Regards Marius

View Article

WPF: how to ensure Foreground setting in style template only affect TabItem...

Our application uses WPF. One window includes tab control. Tab header Text is displayed as Black.when select tab, we want the selected tab display different foreground for Tab Header text. For example,...

View Article

WPF: What is simple way to implement Tab control

Our application uses WPF. One Window includes TabControl. Each tab header includes image and text.When the tab is selected, we need to show different image and text in different color.One way is to...

View Article


Is it possible to pass current DataContext as ContructorParameter of...

It would be very useful to pass DataContext as parameter for DataTemplate:<DataTemplate><DataTemplate.Resources><ObjectDataProvider x:Key="ServiceDataProvider" ObjectType="{x:Type...

View Article


Image may be NSFW.
Clik here to view.

Debugging issue with WPF

Hello,  I am trying to debug some of my code for a set of WPF buttons.   I am stuck with an issue that I cannot get around.  When I launch the debugger from Visual Studio 2013, I get the following in...

View Article

Get selected Listbox item

hi,Can someone tell me  how to know which listboxitem from a listbox was selected by the user?This is the listboxitem.<ListBoxItem HorizontalAlignment="Left" Name="Canvas" Foreground="White"...

View Article

How to binding and change VM property value when DataTrigger?

Hi all,Please see the below code. The current work is when mouse over myButton then set textbox value as 3. Then binding this value to ViewModel property, at this time, the new value of ViewModel...

View Article

Image may be NSFW.
Clik here to view.

Vertical alignment of DataGrid row content

Hi,I have a regular DataGrid from WPF 4.0 RTM, where I put data from database. In order to make clean & light style of DataGrid I use a tall/high rows and by default DataGrid aligns row content in...

View Article


Set button state base on the state of items in list

Hi everyone,I'm making an application that helps user to manages their file. In my application, I have a list of files and a button Delete all. I want the Delete all button to be disabled when all...

View Article

Check path if it is in virtual device or not, writable or not

Hi everyone,I'm currently making an application which encrypt file and users can decrypt the file anytime they want. After encrypting the file, I will delete the original file and when I decrypt, I...

View Article


How to change wpf application window icon and icon in task bar at runtime?

Hello,I am trying to change the icon of my wpf application mainwindow and the one shown in task bar at runtime using Icon property in Window class and some native win32 api's. When I set the new icon...

View Article

Problem with focus

I have a problem setting focus in one of my apps.  The app has a "toolbar" which is just a panel with buttons.  When a button is clicked the appropriate Popup control is made visible.  Each Popup has...

View Article


Binded Datagrid displays System.Data.Datarow as data

Using VS2010 C#Hi All,I am having a really annoying issue which I know there's an easy fix for, but i cannot figure it out for the life of me. My goal is to copy info from an excel sheet to the...

View Article

Best way to parse .Msg file of Outlook?

Hi,I am working on a WPF project, I thought that there's some stuff that belong to unmanaged code. I would like to know what is the best way to go?I am completely new to this Domain(Parse .MSG file)I...

View Article

print wpf datagrid as WYSIWYG

WPF - Vb net--------------------------------hi, I have search more than I thought that I would search of how to print a datagrid as it is (styles borders,lines etc..) . i have try several ways but with...

View Article
Browsing all 18858 articles
Browse latest View live


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