wpf

WPF Exclusive mode

Is it possible to run a WPF application in exclusive mode - where it owns the entire screen? I want to do full screen video playback. ...

Image manipulating with WPF

I want to have in my GUI capability for scale, rotate and crop images permanently (saving into the file the changes). WPF is natively capable of it? If it isn't, is there any component that can work more integrated with WPF? I also need to adjust image brightness and contrast, remove borders, for JPEG and TIFF formats. ...

Controlling a UserControl's Storyboard from the parent Window in WPF using only XAML

I have created a very simple test app to try and solve this problem described to me by a co-worker. He was able to trigger it in C#, but I believe he needed the solution to be more generic and wanted it to be done strictly in the XAML. The problem was: How do you trigger the Storyboard inside of a UserControl to begin in response to an...

Explain System.Diagnostics.CodeAnalysis.SuppressMessage

Hello I have this kind of code in some applications (from microsoft) [assembly: System.Diagnostics.CodeAnalysis.SuppressMessage( "Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", MessageId = "CounterClockwise", Scope = "member", Target = "ScePhotoViewer.PhotoDisplayControl.#RotatePhotoCounterClockwiseComma...

WPF: Multiple pages, each page has its own context menu, how to set global menu?

I have a window that displays different Pages. Each page has one or more Context menus. I would like main window to display these context menues in the main app menu. So, if one page listview with context menu that has Delete and Copy, main app menu should have menu "Commands" with commands Delete and Copy. When page changes, Commands me...

textBoxEmployeeName vs employeeNameTextBox

Which naming convention do you use and why? I like to use employeeNameTextBox, because: It seems more natural from an English language perspective. I find it's easier to look up with Intellisense. The convention is similar to the convention used for events (MouseClickEvent, MouseClickEventHandler) and dependency properties (VisiblityP...

How to go from bad to good OOP design?

I'm reading a lot about good and bad practices in OOP design. It's nice to know your design is bad, or good. But how do you get from bad to good design? I've split the interface (xaml) and codebehind from the main businesslogic class. That last class is growing big. I've tried splitting it up into smaller classes, but I'm stuck now. Any...

WCF Service to Create Video Thumbnails

I am trying create a WCF service that leverages the WPF MediaPlayer on the server to generate thumbnails for a video that a user uploads. I found a lot oif info on how to render a frame and save it to a file. But the problem is the key event MediaOpened (actually none of the events) I need to tie into doesn't - EDIT fire. Does anyone kn...

Microsoft Blend June 2.5 expired

Hi. I can't find newer Microsoft Blend Preview. Is it available? Thank you for your answers. ...

Is mixing WPF, LinqToSql and multiple threads a bad idea?

My situation is roughly similar to this guy except that I don't need change notifications right now I have a WPF App displaying a hierarchy. The children for each node are retrieved using a LinqToSql query. The app works perfectly when there is one thread. Now I'd like to make things a bit faster.. by loading children asynchronously. F...

WPF vs WinForms or Rich UI vs Stable Applications? What do you think about the future of the Windows Forms platform?

WPF vs WinForms. What do you think about the future of the Windows Forms platform? ...

How to get the hex data for setting a Path object's Data property in XAML

I have an image and i want to set its hex data as the data for the Path object in a button in XAML. Is there a tool that will get me the Hex data for this purpose? ...

Are there (free) tools or libraries for 3D WPF objects?

I wanted to play around with some 3D controls in WPF, but was mildly surprised to find that there were no primitive solid controls in WPF - I just wanted to plop a few spheres and cubes in a scene, but didn't realize I had to render them using meshes. Surely someone has created libraries of 3d primitives that can be added to WPF 3D scen...

Where can I find some sample WPF animations?

As I am a programmer,and not an artist or animator and I am failing at showing off the best features of WPF in my application. Although I have samples for simple animations for buttons like growing, or having the color fade into something brighter on click but what I am looking for is some showcase button animations and some showcase pa...

Drawing Pixels in WPF

how would I manage pixel-by-pixel rendering in WPF (like, say, for a raytracer)? My initial guess was to create a BitmapImage, modify the buffer, and display that in an Image control, but I couldn't figure out how to create one (the create method requires a block of unmanaged memory) ...

Can you use the asp.net membership provider in a windows application?

The Asp.Net membership provider has some clear uses in a web app. I am thinking about trying to leverage some of the features in a windows application (more specifically WPF). Does anyone know if it is possible to use the core features in a windows app? I am mostly just looking for it to create my database tables, and maintain users, ...

WPF BitmapSource ImageSource

I am binding an Image.Source property to the result of the property shown below. public BitmapSource MyImageSource { get { BitmapSource source = null; PngBitmapDecoder decoder; using (var stream = new FileStream(@"C:\Temp\logo.png", FileMode.Open, FileAccess.Read, FileShare.Read)) { decoder = new PngBitmapDecod...

Release build not available WPF

I am writing a fairly simple WPF desktop application and under build\configuration manager, release is not an option. The only available options are Debug, New, and Edit. Anyone have an idea on why this is? Related: the control library in the same solution does have release as a build option. It is only missing in the wpf app. ...

WPF EventRouting to Children

Is there any way to broadcast a RoutedEvent to all of my children in WPF? For example lets say I have a Window that has 4 children. 2 of them know about the RoutedEvent 'DisplayYourself' and are listening for it. How can I raise this event from the window and have it sent to all children? I looked at RoutingStrategy and Bubble is the ...

Move two WPF windows at once? [solved]

My main window has spawned a child window that's positioned on top to look like part of the main. I would like to move the child window in sync with the main but I'm not sure how. My main window has my own title bar which event MouseLeftButtonDown calls this function: public void DragWindow(object sender, MouseButtonEventArgs args) {...