I am making a tool with WPF that involves matching items in two lists. Is there a cool control that can get me started on this?
Basically, I would have a source list that I would want to allow to match with a destination list. Drag and drop would be nice, but I am open to anything at this point.
Any ideas?
All I got now is to make t...
Hi,
Whenever application loads and any other usercontrol loads in the application, while loading and rendering the cpu usage touches 80 - 100%. How should i resolve this?
Thanks and regards,
Ershad
...
I've been developing a WPF application with .NET framework 3.5 and later had to change to 3.0. Some of the features like Func (System.Core.dll) and Linq is not available now and VS throws compile errors to my existing code. How can I use 3.5 features in 3.0?
...
I have a combobox which is has itemtemplate applied on it and is bind to a List of entity return using linq. i m using mvvm. It is bind to it successfully but when i set the selected value of it from code at runtime to show the selected value coming from db it doesn't select it. For reference here is my combobox xaml.
...
Hi !
I've written a Custom WPF Control with search extension, let's name it MyControl.
The Control is a descendent of an ItemsControl class.
So I feed the the data source to it like this:
The control itself uses
protected override void OnItemsSourceChanged(System.Collections.IEnumerable oldValue, System.Collections.IEnumerable new...
I'm looking for an Image control for WPF which can rapidly change images. The built in WPF one is quite slow for the image sizes im using (scaled). I only need about ~3 FPS. I have considered dropping to WinForms and even D3D but I'm not sure thats the best way.
Can anyone suggest something?
...
I have a question about data binding DataGrid in WPF. I am using the VS 2010 Beta 2 which has its own DataGrid, not the Toolkit one, although I think it is pretty much the same.
I want to bind to a dataset which has 52 columns, one for every week of the year. For this reason I want to bind the data dynamically rather than specifying eac...
My understanding of the Command Pattern is that you simply have 1 virtual method 'execute()', and all dependencies that an implementation might have are put in the constructor or through setter injection in the implementation (like discussed here).
However, in the WPF implementation of the pattern, I noticed they are passing a generic a...
How do I add my property called weight to an image and use it like this:?
myImage.weight
(assuming i have already defined myImage in XAML)
here's my code:
public partial class MainWindow : Window
{
public double Weight
{
get
{
return (double)GetValue(WeightProperty);
}
set
{...
I am seeking a behavior similar to those feedback buttons on webpages. When you click, a control appears in the center of the screen and the parent webpage gets darkened (and disabled).
In my case - A UserControl appears in the center of main window if I click on a button. Both the new UserControl and clicked button reside in same wind...
Scenario:
I want to use 3 standard font size for my WPF application : BigFontSize, NormalFontSize, and SmallFontSize. These are double values and they are defined in resource dictionary as (where sys is appropriately defined):
<sys:Double x:Key="BigFontSize">18</sys:Double>
<sys:Double x:Key="NormalFontSize">14</sys:Double>
<sys:Doub...
Hi there,
I want to bind some properties from my code-behind .xaml.cs to some xaml-code, just like this:
<TextBlock [someProperties] ... Text="{Binding ElementName=awesome, Path=value}" />
<TextBlock [someProperties] ... Text="{Binding Path=legendary}" />
In the associated .xaml.cs file I have the property:
public String legendary =...
I'm writing an application in Prism. I have a user control and contains two <ContentControl> controls. These both have Regions assigned to them. The usercontrol is being hosted in a Window that is being shown using ShowDialog().
I'm adding the one of my views to a region using view discovery and the other I want to inject the view into i...
While defining style in resource dictionary you can use either
x:Name="xyz"
and
x:Type="xyz".
and can reference this style in XAML like {StaticResource xyz}.
Most examples use 'x:Key', and the difference between 'name' and 'key' is that using 'x:name' lets you use this style definition code-behind?
FIXES:
The question is to...
Hello,
I am trying to get a reference to ElementHost control. For example in the below code I need to initially use the “testImage” content of the WPF user control to lunch the event. The WPF control is added at run-time, so does the ElementHost control, so I can’t use the WPF control’s name or ElementHost’s name.
My logic is to get the...
Hello All,
I am binding a data table to a Datagrid (WPF toolkit) for add, edit and delete. I am able to use tab keys to navigate through the cells from top to bottom. But as soon as I press tab on last rows' last column, it is not taking the cursor to the first cell of new row. How can I achieve this?
Thanks
...
private void SetCredentials()
{
username = txtfromEmail.Text;
password = txtpassword.Text;
pictureLogin.Source = @"C:\Users\Sergio\Documents\Visual Studio 2008\Projects\emailwpf\emailwpf\ok.png";
}
I get an error: "Cannot convert string to ImageSource".
What can I do?
...
According to the Code Snippet Manager in Visual Studio 2008 there is a code snippet named "wpfre" which expands to a routed event registration. However, when I try to enter it into the text editor, Intellisense won't complete to it and if I type "wpfre" and hit TAB it just completes to "wde" which is not the right thing.
I googled for i...
Here is my scenario:
I have a Main ParentWindow .
Before opening the parent i would like to open a progressWindow and fetch the data from DB displaying this window.
After the data fetch is complete i would like to close the progressWindow by using a delegate and i am running into threading issues.
Just wondering if you have any suggesti...
I understand the IObservable & IObserver are implementations of the observer pattern and can be used in similiar circumstances to .Net events.
I was wondering if there is any relationship to INotifyPropertyChanged?
I currently use INotifyPropertyChanged for data binding in winforms & WPF applications and was wondering if I'll be able t...