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

How to init Style type property in sample data source

I have a viewmodel with Style type property and want to create sample data source to get view in designer. I use Application.Current.FindResource("CustomStyle") to define property in code behind, but...

View Article


datagrid, datatable updating values in celltemplate

Hi,I've made this control that basically creates dynamic columns in a datagrid each time it is loaded. The itemssource is a datatable. The reason its a datatable is because depending on an object...

View Article


Images are not displaying in WinPE 4

Hi. I am having troubles displaying any images  in a WPF application that is executed under WinPE 4.0 (.Net package is installed and application runs fine).App runs fine on normal Windows machines but...

View Article

WPF User Control Image property

I have a User Control that contains a rectangle and an image. The rectangle is irrelevant to this issue. What I want to do, is be able to change the Source property of the entire user control (which as...

View Article

How to update a Setter within a MarkupExtension

I'm trying to implement my own MarkupExtension that takes two resource keys (in the SystemColor namespace) and a scale which mixes the two brushes. What I'm finding very difficult to do is implementing...

View Article


OpacityMask strange behaviour

Hi! I have a problem using both OpacityMask and Clip properties of UIElement.When I set these two properties, then two unnecessary lines appears at the left and right sides of the UIElement.This markup...

View Article

how to check for softwares requirement before launch my application

Hello, I've  develop an application using Microsoft VS 2010 in my own pc, in my laptop runs just fine but when I try to execute it other computer it gives several error due to the lack of neccesary...

View Article

Screen Navigation Best Practices in a borderless transparent background window

I have a WPF application that has several different screen scenes defined as separate grids all on a single Window that is borderless and transparent background.  There is a Home and Back button at the...

View Article


Get Token value from data template items

I am tryin to get Datacontrol value (TextBlock) from code behind I have xaml like <code>    <UserControl                 xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"...

View Article


WPF - Speeding up RTF Loading Code

Hello all,I'm working on an update for one of my programs, and the Load function that loads the user's information is lagging for maybe 1 or two seconds. In my application, the user can click buttons...

View Article

How to increase brightness in wpf

Hi all,I am working on a wpf project. I have a control and set the background color of it while loading it, when the mouse enters this control, I want to highlight the control(increase the brightness...

View Article

ItemContainerGenerator Recycling Problem

Hi,I am trying to use Recycling within my custom virtualizing panel.Here is my code:protected override Size MeasureOverride(Size constraint) { ... // computatons of firstVisibleItemIndex...

View Article

get all selected items from wpf checkbox list give me error

I have listbox with checked box as following, & it binding its data from sql server database,, I want to get selected items value When I run this but I got this error Unable to cast object of type...

View Article


how do I add a static extra header row to a listview?

I have a listview which I am using to display a small amount of gridviewcolumns. I am trying to figure out a way to add an extra header row to my listview above the standard header row which contains...

View Article

Get And Set Template Programmaticaly

Hi i try get template from element and set to another element, i get template this successful but i cant set this to other elementthis is my code String myXAML =...

View Article


Create Button With Round Corner

hiI want create button with round corner.thanks 

View Article

Create tree view with icon

hi i want add icon to my tree view .how to do this ?any one have sample ?thanks

View Article


C# - WPF - Adding multiple lines in a loop only shows them all at once.

Hello everyone! I am relatively new to programming and newer to C#. I looked around but didn't see the answer to my question anywhere else. So here goes:I have a method that, in a loop, adds multiple...

View Article

Image may be NSFW.
Clik here to view.

position in gridview?

hi i have window like thisi have grid-view that has some rows and columns. i want this:when click on a row shows the window behind the row something like balloon or tool-tip.how can i do that?hamed

View Article

menuitem 'System.Runtime.InteropServices.COMException' occurred in...

Hey all,There is a problem when using the menuitem of WPF 4.0. Here is the code.<Menu x:Class="CustomComponents.UnitSelector" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"...

View Article
Browsing all 18858 articles
Browse latest View live