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

Binary format of the specified custom attribute was invalid

I have 3 C# WPF projects that were written with .Net Framework 3.5 on VS2010.  However, after upgrading each projects to .Net Framework 4.5 on VS2012, I am getting this error:Error 7 Unknown build...

View Article


How to Open another Page using c# WPF?

Hi guys, I am using Modern:UI and i am a beginner on this kind. I want to open another page  using c#. I already know how it was done on XAML.<mui:BBCodeBlock...

View Article


ObservableCollection with Collection.Queue

Hello,I am new to WPF and I need some help on this problem that I am facing. I want to implement a queue that the app can add to it a file path to a file to process. The user search for something and...

View Article

ListBox and other controls in a grid not scrolling

I have a user control in which I put a ListBox and a Button in a Grid. I enclosed this grid in a ScrollViewer. Clicking on the button adds a new item to the ListBox. The problem is that when I add...

View Article

Image may be NSFW.
Clik here to view.

Change highlighted color of AutoComplete box

I am trying change highlight color in AutoComplete box and it is not working as well.  Here is my style;<Style x:Key="autoBoxStyle" TargetType="ListBoxItem"><Setter Property="Padding"...

View Article


3D Animation for card game...

Hello Ladies and Gentlemen,I've been pushing the limits of the WPF 3D capabilities and have read everything I can get my hands on from Mr. Petzold and others on the subject of 3D animation.  Here's the...

View Article

how to disable focus in a custom control (ItemsControl)?

Hi EveryOne,I need to disable focus in my custom control which is inherited from ItemsControl. Now it got focus when select items in ItemsControl. I tried with FocusManager and SetFocusable as false....

View Article

ComboBox-like control hosting other editable controls

Hi,I'm would like to have a control with the ComboBox-like behaviour - means popup to select something from existing items and a host for different editable controls. My first idea was to change the...

View Article


Validation.Error not fire when inheriting from TextBox

I have code like this:                                                                   <TextBox Validation.Error="Validate"    >                                    <TextBox.Text>...

View Article


Image may be NSFW.
Clik here to view.

Question about dragging property from datasource using WPF and EF

Using WPF and EF, I've set up a tab control that has datagrids on every tab except one.  I want just textboxes on that tab.If I drag a single property from the datasource onto that tab, leaving it as...

View Article

How do I prevent a user selecting a duplicate data element for a cell in a...

(I know that I've asked this question before, but honestly the search tools for this latest version of MSDN Forums lacks some to be desired. Why, for example, does it appear to only show me questions...

View Article

How to make my .Net 3.5 application run on .Net framework 4.0 environment

Hi, My application is developed base on .Net framework 3.5, so if i run the app on Win8 or Win8.1 which does not have .Net 3.5 but only have .Net 4.0 or above, i will get a prompt message which said...

View Article

Search in a DataGrid/ListView and highlight text...

Hi All,In my application, i have a ObservableCollection which i am binding to a DataGrid or ListView. I have a textbox which will accept the user inputs and this text needs to be searched in the...

View Article


allowing javascript in wpf

hi to all,when ever i'm opening a html page in wpf (web browser) there is a security issue regarding allow or disallow blocked content....and i don't want that message to appear can anyone help...

View Article

How to Send content to Video output

Dear all,I have build a multitouch application which present different type of information as photos, document, videos.The application is running either under W7 or W8 desktop. On the hardware side I...

View Article


STA error when opening WPF window from Winform window

App.xaml is the startup point for the application (build action is ApplicationDefinition). This opens a WinForm window, that eventually opens a WPF window (when a menu item is clicked). At this point,...

View Article

Updating a progress bar in WPF

I am using Visual Studio Express 2010 (C#). This is a single-threaded application with a couple of classes. The progress bar is in the main window and when the operation begins, in a separate class, at...

View Article


How to bind a textbox in customwindowcontrol

Hi,I have created a CustomWindowcontrol as mention in the below link and i need to access the window title so i added a  textbox and that need to be binded ,so that i can access the textbox text value...

View Article

Validate issue in the wpf application

Hi, I using the following method to validate some textbox and combobox controls. When I use this method, how can I know what the source control is extactly? I mean that: if I click a textbox whose...

View Article

Block datagrid selection without losing line selections

Hello there,  I want to block line selection for a Datagrid without losing the previous selection:     1st - Select X rows.     2nd - block the Datagrid keeping the selection and keep the scrolls...

View Article
Browsing all 18858 articles
Browse latest View live


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