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

Image may be NSFW.
Clik here to view.

A chance for YOU to play for the WPF team, in the TechNet Guru World Cup!

The World Cup is here again!Not balls... brains!And YOU have been selected to play on our team!Yes forum reader, step up and take a shot!Slam some techie tips in the back of our nets!No dribbling...

View Article


DataGrid don't update after changing the ItemsSource

I have a data grid which I binded to a ObservableCollection object. On an event, I clear the ObservableCollection and add new items to it. When finished, I try to update the DataGrid, but it still...

View Article


Pixel Shader effect on Media Element - Using GPU cycles when Paused?

Hi all, If I apply a Pixel Shader effect to a Media Element will the shader continue to use GPU cycles if the Media Element video is paused or stopped? Just wondering if I should set the Media Element...

View Article

Default WPF Project Slow Start

When I create a new WPF Application, and try running it (without touching any code), the application takes 5-7 seconds to start, as opposed to 1 second if I make a Windows Forms Application.I've seen...

View Article

DynamicResource not working with Color and SolidColorBrush

Hello everyone,I have a problem with DynamicResource in my Resource Dictionary. I have the following Code in the App.xaml:<Color x:Key="Color1" >White</Color><Color x:Key="Color2"...

View Article


ArrowUp/Down keys are not working on WPF modeless dialog

Hi,I have a wpf modeless dialog and is calling from Win32 project (clr layer). The ArrowUp/Down keys are not working on wpf modeless dialog.Any help on this will be great.Guo.

View Article

Even spacing between slider ticks

Hi,I have a peculiar case.I have a slider with ticks="4,5,7,9,10,20"Slider places ticks with respective distance so the ticks are not evenly spaced.Is there any way I can space them evenly?Thank...

View Article

Image may be NSFW.
Clik here to view.

WPF DropShadow effect like Office 2013, and Maximize/Minimize animation

Hello, I'm creating a custom window with drop shadow effects.However, it seems OK only in not-maximized state.While maximized or snap to the edge of screen, it couldn't fill all of the screen.(I know...

View Article


TreeView Item Drag and Drop in wpf using c#

I am working on treeview. And i want to drag and drop items of treeview at same level. All treeview parent and child items are dynamically added while project run.I have only single treeview...

View Article


Intersect Rectangles in Different Containers WPF

Hello all. I am hoping that someone can help me understand how to do this. I am trying to perform hit testing but it is not working and I think the problem is that the objects are in different...

View Article

high performance plotting software using writableBitmap in wpf with pan and...

hi. 2 month ago i started to write a plotting software in wpf. as the number of points was in range of 100000 points(max), none of WPF geometry, visual, canvas, ... was useful as mentioned...

View Article

Event not working: Accessing WPF Window Control From a WPF Page.

Hello: I have a Label Control which holds an image with margins set in xaml in the MainWindow.xaml as indicated in code below:<Label x:Name="MyLogo" x:FieldModifier="public"...

View Article

Error event "loaded"

I don`t understand this error occurs, though I have declared this method. look at this code and error. 'WpfApplication5.MonoBehaviour' does not contain a definition for 'event_rotate' and no extension...

View Article


MSTest Unit Test, what is ClassInitialize good for? What would I put in it?

I understand the order of execution concerning classinitialize and testinitialize etc... The problem I am having is what is it that I would use ClassInitialize for.  I've been beginning to write unit...

View Article

How to set click event when loading controltemplate by xamlreader?

Hi everyone, I'm trying to use XamlReader to load controltemplate from code behind and I'm stuck at adding click event for each buttons in the Xaml. I couldn't find the buttons inside the...

View Article


Hierarchial Datagrids in WPF

I have a hierarchical Data grid.<DataGrid Name="dgList" ItemsSource="{Binding List1}" Grid.Row="0" Margin="0,0,0,0" CanUserAddRows="False" AutoGenerateColumns="False" IsReadOnly="True"...

View Article

How to access a class declared in MainWindow from another window?

Hi all,I'm new to wpf. I added a new class to my project to hold global data (globalData.cs) using the Solution Explorer (add class). I'm using it in my MainWindow to store some info. I added another...

View Article


DocumentViewer PrintDialog and PrintTicket

I'm wondering if I'm blindly missing a way to configure the PrintDialog to honor the PrintTicket in a DocumentViewer when a FixedDocumentSequence is used.I'm a little stupified that this functionality...

View Article

Drag & Drop is not working anymore after using SendInput

I'm using the following code:const int INPUT_MOUSE = 0; const int INPUT_KEYBOARD = 1; const int INPUT_HARDWARE = 2; const uint KEYEVENTF_EXTENDEDKEY = 0x0001; const uint KEYEVENTF_KEYUP = 0x0002; const...

View Article

Get TreeViewItem for TreeView logical element

My tree view seems like this<TreeView x:Name="ArticlesTreeView"Grid.Column="0"AllowDrop="True"><TreeView.Resources><HierarchicalDataTemplateDataType="{x:Type...

View Article
Browsing all 18858 articles
Browse latest View live


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