I created a WPF project in VS2008 and compiled it with Any CPU, x64 and x86. Any CPU and x64 works, but compiling to x86 the application is hanging when running through VS2008 and crashing when running without debugging. Debugging it with WinDbg I can see a StackOverflowException and sometimes a MissingMethodException relating to WPF met...
It was my understanding that this:
<Style TargetType="{x:Type Image}">
<Setter Property="Margin" Value="0"/>
<Setter Property="Stretch" Value="None"/>
<Setter Property="HorizontalAlignment" Value="Center"/>
<Setter Property="VerticalAlignment" Value="Center"/>
<Setter Property="Cursor" Value="Help"/>
</Style>
would change...
Hello all!
I posted a comment to Microsoft that the Dialog Boxes in WPF are not VisualStyle enabled.
Joe Castro posted a workaround there which I don't really understand how to achieve, can anyone help?
Here is he's response:
For app compat reasons applications don't by default use v6 of the system common controls (available since XP...
I have bound a flagged enum to a bunch of checkboxes by using a value converter that works as described in the solution to this question. This works fine when I'm working with a flag that hasn't been set to anything.
However, in the non-trivial use case that the flag is actually set to some data, on load the checkboxes are bound correct...
In digital imaging, when overlaying two visual layers there are multiple ways you can calculate the image that results when light from a lower layer shines through an obstructing layer in some way. This can offer effects that do not occur as natural phenomenon, such as multiplying colours.
Here's an example of the layer blending mode m...
Hi all.
I have a WPF application. It runs ok, but when the computer goes into "Stand by" mode it crashes, with an unknown exception.
this might have something to do with the fact that my window is transparent.
I am using .NET 3.5 with SP1.
does anyone have an idea?
edit 1:
When the window is in visibility.Collapsed - the app doesn't cr...
Hi,
I'm trying to create a transparent ListBox in a WPF application. I want the ListBox to be completely transparent, thus a background image is visible "behind" the ListBox. However, I want my ListBox items to be totaly opaque, that is to say, they lay on top of the background image.
Do anyone know how I can accomplish this?
Thanx i...
I'm still learning WPF, but I'm really confused about something that should be really simple. What I want to do is to center the contents of the 3rd and 4th columns. When I run this, the columns are left justified.
<ListView Margin="0" x:Name="listMonitoredUrls" AlternationCount="1"
ItemsSource="{Binding}" >
...
Hello,
I have a WPF application and I use external library for generating documents. This library returns document as System.Drawing.Printing.PrintDocument. How can I print this document in WPF? I can use Print() method directly, but I need to allow user to select printer and settings. If I use WPF PrintDocument dialog, I can't set my d...
I am new to WPF and am trying to find the right control.
I am coding a WPF app that has two sections. The left side is an Outlook like sidebar (Odyssey controls).
For everything else I want a control that I can easily swap the contents of based on what is in the side bar.
So the user selects an option in the side bar and all the cont...
I need .NET UI control that acts as a designer/editor window similar to what you see in some of these applications:
- Visual Studio
- Visio
- Balsamiq
- Windows Workflow
- Photoshop
I hope to use WPF, but will settle for WinForms. I need to create custom widgets that I can drag, drop, and edit in the designer/editor window. I ...
I'm building some WPF application to manage my time. I'd like to save time spans for work time on project for a calendar day.
So my question is what's the best choice on how to save the data? I figured I could use an XML file, an Access database file or maybe a property. I´d like to save the data locally, so no SQL Server action in thi...
The column header of the DataGrid is not a FrameWork element for some reason, and so you cannot use bindings to set things like the header text. Please correct me if that is wrong of if that has changed with .NET 4.0 (I am using the latest WPFToolkit from CodePlex now).
I am trying to use the DataGrid for a time sheet presentation where...
I wonder that MediaElement (from WPF) components are capable of playing and buffering mp3 streams.
I need play mp3 memory stream(not mp3 file) using MediaElement of WPF
,would you please tell me how to do it .
thank a lot
...
I am new to WPF. I have a ListBox that has its ItemSource set to a instance of WorkItemCollection. (A collection of WorkItem objects.)
When the list is displayed it only displays the type of each object (Microsoft.TeamFoundation.WorkItemTracking.Client.WorkItem). Is there a way to make the list display WorkItem.Title?
...
What should be the best practice to declare the converters:
Declare ALL my converters in the app.xaml (i.e. in <Application.Resources/>) so it's available in the entire application.
Declare on each Page/Window/ResourceDictionary/DataTemplate etc. at its Resources section, the converters I need on this page.
You tell me...
That's for ...
During a drag in Wpf, how can the mouse cursor (or perhaps using an adorner) be changed to indicate that the droptarget will not accept the dragged item?
I've tried to set e.Effects = DragDropEffects.None during the DragEnter event but this isn't working and I suspect that I've misunderstood what that feature should be used for. I've tr...
Hi,
I have a GridView defined like this :-
< ListView Name="chartListView" SelectionChanged="chartListView_SelectionChanged">
< ListView.View>
< GridView>
< GridViewColumn Header="Name" DisplayMemberBinding="{Binding Name}" Width="250"/>
< GridViewColumn Header="Type" DisplayMemberBinding="{Binding Type}" Width="60"/>
< Gr...
I have a small WPF application that I am working on localizing. I have read thru a number of documents but I have not found a good source of information about dealing with 'rich' content - for example:
I have a ui element (TextBlock) that contains a mix of text with formatting, inline images and symbols. I want to localize this element....
Hello, I try to use inheriting in WPF. I have asked a question about this earlier, but no one answered correct. So I try to make a BaseWindow class with some UI elements and I want that other windows, that inherit my BaseWindow would have these UI elements. How to do that. My practise with WinForms applications dont work anymore. Maybe t...