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

WPF 4 touch, AutomationPeer, Windows 7 Tablet Input Services memory leak?

Hi,I am creating a WPF 4 touch application and was doing memory profiling for my app with ANTS memory profiler and found that the AutomationPeer feature is holding on and not releasing my...

View Article


Help to find event for RibbonTab [WPF4]

I'm using WPF Ribbon RTW for my app. The problem is that I can't find event which reacts to changing tabs. Does this event exists?There is no knowledge that is not power.

View Article


Image may be NSFW.
Clik here to view.

Does anyone know if there's a freely available control like this?

The application I'm making has a finite amount of space. But there are a lot of buttons needed. So to better take advantage of the space I have available, I want a control that I can add buttons to and...

View Article

FontSizeConverter double to pt

I'm able to convert the font (in points) to double like this:double pointSize = (double)new FontSizeConverter().ConvertFrom("8pt"); But how to go back to point having a double?Take a look at WPF...

View Article

How to inherit from mouseevenargs

Hey,I#m working on a customcontrol, this exposes an Event MouseMove.For this event i needa custom EventArgs class, which should be the same as noral MouseEvenArgs just with the extension of a property...

View Article


Windows Phone tile menu in WPF

I'm writing a tile menu just like phone 7/8 in WPF: a grid of tiles.  The menu is hierarchical: when you click a tile, the current tilegrid disappears, and a new grid with subtiles appears using the...

View Article

Convert rtf text in XAML

I am trying to convert rtf text in XAML by following  code            TextRange textRange = new TextRange(richTextBox1.Document.ContentStart, richTextBox1.Document.ContentEnd);            MemoryStream...

View Article

Using of Content Attribute inside a UserControl does't allow me to give...

Hey,i have developed a UserControl which owns a ContentAttribut, which themselfs takes a Grid as only ChildElement.So far so god, but know, in my MainApplication, in there i implement the usercontrol,...

View Article


ICommand Selected Item is failing mvvm

I'm working on a problem using MVVM. It is my first real attempt at it. I have a listview and the first selected item always fails to have the button enabled. However, the other ones work. I can verify...

View Article


Unable to set the visibility of the user control

Hi..I want to set the visibility to visible of the custom user control when a MediaEnded event fired. How to achieve this, I have no idea? I tried to set the visibility to visibility.visible to true...

View Article

Xaml 2009 in Compiled Xaml for generic types

I have a project that I need to upgrade to .net 4 and now my serialized xaml that contained generic types is broken when I call xamlreader.Because of the upgrade I am now using...

View Article

change a property on the control itself using VisualStateManager

Hi,I notice in Blend when you have a control and are defining states for it, you can't set properties on the control itself from a state, only on things inside the control's template.Are there any...

View Article

ValidationRule to validate if end date early start date

Hi All.I have form with two date fields StartDatePicker1 and EndDatePicker2. And I would like to use ValidationRule to validate error if entered StartDate will less than EndDate. If is possible how it...

View Article


Listview with two types of highlightning

I'm using C# wpf and I have a listview where I want to set, say a dark highlight, when an item in the listview is double-clicked and if an item is single-clicked it should have a bright highlight. A...

View Article

Still having issues with binding SQL Server. I need Help

I have been able to bind to a grid and perform updates by selecting from the grid and making a call to my database which is using LINQ to SQL.<o:p></o:p>I need to be able to iterate through...

View Article


Best way to bind to a header of a column of a DataGrid

Hi,directly binding by setting Header={Binding PropertyName} seems not be possible. So far I found several ways to bind to a header of a DataGrid. One can be found here. The prefered way until now I...

View Article

Is there a way to programmatically set the selected member of an Observable...

What is the syntax to set the 'current' member of an observable collection? I assume that there is such a thing since a ListBox/ComboBox/etc will set this.For example, let's assume that we have...

View Article


Creating Developer Defined BitmapPalette for 16-Bit Grayscale Image

Hi, Wondering, if someone else knows/can help?  I am looking for a way to use a custom palette with 16-bit grayscale image data. I am looking to remap the pixels for display only (so can see normally...

View Article

How to use GotFocus event / LostFocus event in wpf ?

Hi guise, I have created wpfwcf  Chatting  program  and i want to use  GotFocus Event And GotLost Event  because  if i am working on another form or application and user send me some message  than i...

View Article

sort ComboBox with RadioButtons

The first sort procedure below, after "InitializeComponent()", works just fine and sorts the items in my ComboBox; however, the other two identical commands which are supposed to key off the...

View Article
Browsing all 18858 articles
Browse latest View live


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