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

Framework difference caused error

Hi All,I have project which was developed under Framework 4.5.50709 and unluckily the "Target Framework" of solution was 4.0i dont know which of my component used latest Framework(4.5.50709). but by...

View Article


System.Windows.Forms.OpenFileDialog WPF

When I was working with WIndows Forms I was using the control OpenFileDialog for the file selection by the userIn my WPF windows application I would like to use a similar control, but if possible not...

View Article


ViewModel Property to bind Combobox ItemsSource

Hi,I have browsed for few days now to get a solution, but still can't get it.  I am trying to bind a Property of type List in my ViewModel to Combobox's ItemsSource in View's xaml.  I am using MVVM...

View Article

How to bind a TextBox to Just allow first Letter(1, 2 Or Any Alphabetic)

Hello,How i can bind my Textbox to just get only 1, 2 and Any Alphabet in it as it's first character. If any other letter will be there it should delete all the string in Textbox.  I want to bind it to...

View Article

WPF: Run validation only if control is enabled

I am applying binding validation to a few WPF controls in .NET 4.0. Currently, my controls turn red and display a little warning message when they fail a certain set of ValidationRules. The problem is...

View Article


HLSL Shader Problem: Transparent White rendered as Full White

I am trying to learn HLSL to create WPF Effect shader. I've been using the ShaderEffectsLibrary project, HLSLTester,  and ShaderApp. But I couldn't seem to get the result I wanted. So I made the fx...

View Article

GridView: Suppress column reorder for some columns only

HiHow can i disable moving/reordering of columns in a GridView for some columns only?"AllowsColumnReorder" affects all columns. I want the first two columns to be fixed. But the user is allowed to...

View Article

How to make graphics overlap in a StackPanel or other container

I have a StackPanel in which I wish to place images that are 100 x 100 pixels, in a vertical orientation.  One of the images is is a bit taller than 100 pixels, it's about 140.  A portion of the top 20...

View Article


WPF DatagridComboBoxColumn Itemssource

Hii have following Scenario, a Person can subscribe to a event one time, therefore i have a datagrid with a datagridcomboboxcolumn. The combobox contains all events. Now i want that after a person...

View Article


How to propagate thread exceptions back to application exception handler

Please see my question on Stackoverflow here:http://stackoverflow.com/questions/17411297/how-to-propagate-thread-exceptions-back-to-application-exception-handlerAs stated in the above link my objective...

View Article

How to generate a Unique Code for Barcode Programming

Hello All,I want to get a Unique Code to Generate a Barcode App for my 40 Users. Its a WPF(Form Based) application developed with C#. I want to get a random number of 10 digits that i can use for each...

View Article

WPF - How to make a ListView shrink to the height of the SelectedItem?

Hi All,I am wanting to make a list view behave a little like a WPF ComboBox in that when an Item is Selected the ListView will shrink to the height of 1 item and scroll so that the selected item is the...

View Article

Wpf and Xna 4.0 Winodws Avatar

Hi I need to create an Avatar like Xbox Avatar. Can i use the Avatar api provided by xna 4.0 framework and can i import the xna project(windows) into a wpf application and render it in a user...

View Article


Combo box with multiple columns

Hi,I am trying to display multiple columns in a combo box using MVVM, but currently I can only show one column by using "DisplayMemberPath" property.  ItemsSource property is bound to IList collection...

View Article

Filter datagrid based on textbox input

Hello..I'm trying to filter data in a datagrid depending on what the user enters in a text box which contains an order id. I'm using WPF. I understand the following works: private void...

View Article


Is possible in WPF?

Hello everyone, I am a newbie that wants to create a full screen application. So far, I am still learning C# and have yet to learn much about WPF.I was wondering if it'll be possible to implement...

View Article

Save Window.Background information

I have a WPF app where the main window can have it's background changed by the user.  The user can change the background using either a solid color or a gradient. How can I save the  background...

View Article


Questions about the visual class & how to use it

Hello I need to use the visual class in a WPF program, where I need 2 rectangles on top of points, moving dynamically with the points (position of the point changes, so does the rectangle on top of it)...

View Article

Touch Event responsiveness/performance/delay

When I manipulating a framework element with MouseEvents everything works fine andit responds instantly without any delay. But when I manipulate this element with my finger (TouchEvents) the...

View Article

How to set TabIndex to a ComboBox within a ContentControl?

I have following code - <ContentControlKeyboardNavigation.TabIndex="6">//Point A                           <ContentControl.Template>                               <ControlTemplate>...

View Article
Browsing all 18858 articles
Browse latest View live


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