In my WPF project, I'd like to display the difference between two images.
If the two images are identical, the result would be a transparent image.
If they are different, it would be a pixel by pixel difference.
Is there an easy way to do this?
...
A customer has reported that our software hangs when he runs it on one of his computers. We narrowed down the problem to rendering text with FormattedText and put together a simple application for him to try, which just renders some text with different font parameters - this would hang too.
Here's the bit of code which does the actual t...
Hi guys. I have a WPF app with a listbox and a contentcontrol. The contentcontrol content is bound to the listbox and has a datatemplate that displays a textbox whose content is bound to a variable of the selected item in said listbox. So far, everything works well, i.e. when I select an item from the listbox the textbox content changes ...
I'm writing a custom WPF Start Page for VS2010. I have it displaying a list of common solutions used by me in a View.
Now, I want to open the Solution in VS when selected.
Any ideas? I'm looking at the DTE stuff, but having very little success. Before I dig too deeply, is DTE the right way forward, or is there another way?
...
Can someone recommend me the best books for windows form and WPF Advanced issues (e.g., threading model in those technology.)?
Thanks.
...
Hi there
how can I pass the window I am currently on as a parameter to a command?
I like to do this in XAML-markup:
<Button Command="CommandGetsCalled" CommandParameter="-this?-" />
...
I've seen a lot of WPF Binding examples and have used the feature in a lot of different places in learning MVVM, but something that has seemed quite inconsistent to me is when you specify "Path=" in the binding string as appose to simply typing in the property you want to bind to. For example, what's the functional difference between the...
I've been googling in vain for hours, and can't seem to find a way to view an rtf file in a powershell WPF form.
I can get the rtf file using:
$myContent = gc c:\myContent.rtf
but when I try to display it using:
$RichTextBox.appendText($myContent)
I get the encoded rtf, not the properly formatted content.
Anyone have a way to do ...
I've just answered a question over here where I said that there is no functional difference between
{Binding TargetProperty}
and
{Binding Path=TargetProperty}
and, as far as I'm aware what I have written is fundamentally correct. However the idea that one will use the constructor and the other sets the property got me thinking th...
I am creating a window that uses a WPF calendar to browse documents created on specified dates during the month shown. When the calendar changes month, I search a database for all documents created during that month, which I use to create a list of dates during the month that have documents.
In the Calendar control, I want to boldface t...
I am trying to think of the best way to scale two panels proportionally.
If I have a grid that contains two canvases, both stacked horizontally next to each other, I want canvas (A) to scale to the size of canvas (B), proportionally, though.
So, essentially, if canvas (B) increases in size, canvas (A) decreases, and if canvas (A) incre...
I have a custom object that I am trying to bind to a control. On that custom object I have implemented the INotifyPropertyChanged interface. I have successfully bound to my object and a property on that object.
What I can't figure out is how to go from there. I've been working on this for 2 days now and I still cannot get it working.
M...
Hi all!
I have such style in WPF
<Style x:Key="SubTabItem" TargetType="{x:Type TabItem}">
<Setter Property="Template">
<Setter.Value>
<ControlTemplate TargetType="{x:Type TabItem}">
<ControlTemplate.Triggers>
<DataTrigger Binding="{Binding Path=IsSelected}...
I'm using the DevEx DXGrid (WPF) to show about 2,000 rows of data. I'm using a DataRow Template to get Master-Detail behavior (a new detail grid for each row).
My application responds extremely slow to almost all use input (to the grid). for example:
scrolling
expand/collapse group rows
resize app window
I've contacted DevEx suppo...
I have a ComboBox that has its ItemsSource bound to a static List<CustomSettings> of options. The ComboBox is part of a form which is bound to a CustomObject class, and one of the properties on that class is a CustomSettingProperty.
I would like to bind the SelectedItem of the ComboBox to the property specified in the CustomObject, how...
I am working with a tree structure using WPF and the MVVM pattern. I start out by creating 20 root nodes and lazy loading the child nodes as each node is clicked. So for instance ... if I have the following:
Level 1
Level 1.1
Level 2
Level 3
Level 3.1
Level 3.2
Levels 1, 2 and 3 are loaded at run time. Levels 1.1, 3.1 and ...
My ViewModel implements IDisposable, but it looks like the the View (System.Windows.Window) does not. So how do I ensure that the VM gets disposed in a timely fashion?
...
Anyone know what control this is or how I add it, if it can be used in WPF?
(sry it wouldn't let me post the image until I have 10 rep)
http://img825.imageshack.us/img825/398/eric0047.jpg
I'm referring to the menu: File | Home | Page Layout | Mailings | etc
Thanks!
Eric
...
I've got an object (Decorator) that defines an attached property for any of it's children.
So far I have no issue setting/getting the attached property on the remote object:
public static readonly DependencyProperty RequiresRoleProperty =
DependencyProperty.RegisterAttached("RequiresRole", typeof (string), typeof (U...
I have a UserControl that has a custom DependencyProperty. When I use the UserControl from inside a DataTemplate, I cannot set the value of the DependencyProperty. If I use the UserControl directly in a window, then the DependencyProperty works fine. I apologize for the long post, I simplified the code to the minimum that still shows the...