I'm using the ICommand interface to perform binding on a couple of buttons in my application, the Run and Close button. I'm using a helper method that was mentioned in this question to hook up the ICommand to a delegate as follows:
_someCommand = new DelegateCommand(this.DoSomething, this.CanDoSomething);
private ICommand _someCommand;...
Hi,
I'm trying to deploy an application written in wpf c#. I use an external library (irrklang). I added a reference in visual studio to that dll (it is placed in the same folder as the executable). It shows up in my application files, I deploy, install on a different machine and I get the file not found exception. I looked up the exe f...
Hi,
I made a program in wpf c#.
I made a drag and drop handler which adds some items to a listbox. While the program is doing that (it takes some time) I want a Grid to change its property visiblity to visible and I want to update a textbox to show the user which file is being processed. The code is as follows:
UPDATE: Solution impleme...
Good Days;
I'm working on custom control development.I want develop image control like ComponentOne Bitmap control.I need to crop operation and give face warp effect.
Subject Crop: How I take image part with have x1,x2 and y1,y2 coordinates and save image file?
Subject Face Warp Effect : How I give face warp effect ?
Thanks for all r...
Using WPF, assuming I have 2 classes:
public class SimpleType {
public string Name { get; set; }
}
public class ComplexType {
public SimpleType Item1 { get; set; }
public SimpleType Item2 { get; set; }
}
and I want to bind a collection of these objects to a gridview, and in other places as well. I always want SimpleType ...
Hi all
I have a data table. This data table is processed through a class and results in a set of DataSeries. These consist of a name and list of DataPoint. DataPoint contains X and Y values, along with a tool tip. The user can chose 1 grouping level (which results in one DataSeries) or two grouping levels (which results in many DataSerie...
I have a simple WPF application I'm using for experimenting.
I have two themes defined in seperate xaml files, changing the xaml to point to them worked fine. By the way, in the xaml I'm using a straight ResourceDictionary element, not a ResourceDictionary.MergedDictionaries one.
I want to let the user select which theme to use, so I...
According to a post at the very end of this thread you can replace the ScrollViewer of a ListBox with a ContentPresenter to disable scrolling in a nested scenario.
However, I don't know how to replace the ScrollViewer. Do I have to re-create the template?
...
Hi,
I have a WPF Datagrid binded with list of interface objects.
Consider, ClsEmployee class implements I_Employee interface with properties Empl_Id, Empl_Name, Department, Address and City_name.
List _emplList;
consider, _emplList has 10 items.
dgEmployeeGrid.ItemsSource = _emplList;
Question:
Now, if the user clicks on a button, t...
Hi everyone,
Normally clicking 'X' button at the top right corner will exit the application. I want my window form application to exit only when holding the 'Shift' click. How can I do that?
...
Hi all
I am trying to add Series binding to the Visifire graphing controls set. To this end i have created a SeriesSource dependency property of time DataSeriesCollection. This is bound in the front end using:
`<Chart SeriesSource={Binding Series} />`
Problem
When the source changes, the validation callback is called. The value th...
Suppose I have a tab-based interface like Internet Explorer.
In each tabpage cpu-intensive stuff can happen (f.e. displaying a waveform and calculating and displaying a realtime FFT) that is only relevant as realtime statistic - so only when it's actuallty visible to the user.
What's the best way to approach this ?
...
Morning folks,
I think I've got my head around basic databinding in WPF, but I'm not sure how to go about this problem. I have a datagrid that the user adds items to, and I'm trying to make one column a 'depends on' column, so that when the column is in edit mode it contains a dropdown box of all the names of the items in the datagrid e...
In my Windows I have a TextBox which I like to update (text property) from another thread. When doing so, I get the InvalidOperationException (see title). I have found different links in google explaining this, but I still can't seem to make it work.
What I've tried is this:
Window1 code:
private static Window1 _myWindow;
private Mess...
I have a TextBox that stretches to the width of the window:
<Window ...>
<TextBox VerticalAlignment="Top" />
</Window>
However, the textbox should have a minimum width, and I want scroll bars to be shown, if the textbox cannot be displayed fully. Thus:
<Window ...>
<ScrollViewer HorizontalScrollBarVisibility="Auto">
<...
Hi everyone,
Normally we bind a textbox's Text property to a data-context's properties. The data-context can be 1) the code behind (default) and 2) the view-model, 3) others which specified in Initial method of the form (this.DataContext = ... ).
What I want to do: bind two textboxes to two different data context in the same form. How c...
I'm looking for a way to validate all the data on a form that has tabs and the tabs contain data templates. I've been looking all over and found a similar question here: http://www.netframeworkdev.com/windows-presentation-foundation-wpf/wpf-validation-data-templates-74176.shtml, but that didn't get a good answer.
Walking the logical tre...
<StackPanel Name="mypanel">
<ScrollViewer Height="{Binding ElementName=mypanel, Path=ActualHeight}">
I need, that Height = mypanel.ActualHeight-60.
How to do it?
...
Hi,
let's assume I've got a UserControl like this:
<UserControl x:Class="SomeNamespace.SomeClass">
<Grid>
<TextBlock Name="SampleTextBlock" />
</Grid>
</Usercontrol>
Somehwere in my application I get handed the Name: SampleTextBlock. I can find the corresponding Framework-Element to the name. But how can I find the Ty...
Hi guys,
I am new to this technology so this might have been asked before and I do not know - so sorry to start with.
I have a message Queue and I am designing a WPF interface for it. The actual message queue(MSMQ) contains information to do with trains(model trains) so i need to show their exact location in real time. From section t...