I want to bind a boolean field in my ViewModel to be set to true when a row in the datagrid is selected.
So I have this working with the Style trick. That is using in my theme:
Then in the XAML markup for the Datagrid:
ItemContainerStyle = "{DynamicResource ItemSelection}"
But to me this seems very poor form. I'm not expecting...
What should be one of the most simpliest form of databinding, is now causing me great amounts of grief. In my XAML, I have something as such:
<TextBox Text="{Binding Path=Speed}" />
Then in my matching .cs file, I have a property as such:
public int Speed { get; set; }
But they aren't binding in harmony and I don't understand why...
I want to display several actions in a ContextMenu attached to a Hyperlink in a FlowDocument. Some of these actions depend on the value of the Hyperlink object's NavigateUri property. How can I get a reference to the Hyperlink that the user right-clicked?
Unfortunately, it's not as simple as using the PlacementTarget property. As this (...
I've worked with PRISM on one major project before so I'm pretty familiar with the concepts involved but I'm about to embark on a self managed project and was wondering if anyone has any pearls of wisdom about how to go about implementing an appropriate architecture for a straight forward LOB/Forms over data app. I'll want to leverage as...
Hello.
Seems ilke none of the other StackOverflow questions answers this specific question. Or it may be lousy search skills...
I have a ("CanResizeWithGrip" + "WindowStyle="none"") application written in WPF / C#.
The application resizes sideways only (MaxHeight and MinHeight are the same), so I would want the cursor of the ResizeGrip ...
I'm trying to make something that looks like this, but I don't know how to approach it.
I have a thread that updates an object close to real time telling me three things: numberPockets (5), drawerPosition (light yellow), drawerTarget (dark yellow). The height and width of all the trays is fixed, so if more pockets were introduced the ...
I do not like having Controller-related code (understand ICommand stuff) in my ViewModel in WPF. Is there a framework to separate it and getting back to good old MVC for WPF?
I would like to get :
- a view in XAML
- a view model
- a model
- command handlers
...
I have two UserControls (uc1 and uc2) loading into a third UserControl (shell). Shell has two properties, uc1 and uc2, of type UserControl1 and UserControl2, and each have a DependencyProperty registered to their own classes called IsDirty:
public static readonly DependencyProperty IsDirtyProperty = DependencyProperty.Register("IsDirty"...
I have two applications that use the same data to create a UI, one is using WPF and the other is using GDI. I'm using a font called Myriad Condensed Web, according to the font name attribute in Windows. I have no problem instantiating the System.Drawing.FontFamily object using the given font name. However, when I create this font using W...
I am using entity framework with a web service and I have entity partial class objects that were generated automatically by the web service.
I would like to extend these classes, but I would like to group them in the generated class in a way similar to the way a namespace would (except inside a class).
Here is my generated class:
publ...
hello,
how can i get the selected rows - and then each (visible) cell separately on a sorted datagrid?
something like datagrid.SelectedCells[i][j], but with sorting taken onto account.
Thanks
...
I have a WPF DataGrid which has an AlternatingRowBackground brush. It's configured to color every other row. I'd like to do something on mouse over that highlights the current row. However, the Style Trigger seems to be losing out to the AlternatingRowBackground brush. I get the desired row coloration on the mouse over... but only on...
Hello, I am looking at doing a program as a hobby and to help a friend with a printing problem they have. The application is pretty simple, just taking in data and sending that data to a print job so my friend doesn't have to manage each thing individually.
My question is this: I want to use a tabbed main interface (Like how Meego ...
I need to be able start a timer when my custom control is loaded. However, I need to be able to do this in the abstract class that all controls of this type inherit from.
...
Can We use Nettiers in WPF?
or does codesmith have any template for code generation for WPF and MVVM design pattern?
i was using NetTiers And CodeSmith For Windows And Asp.net APplications.
Does it available on WPF applications?
please help me
...
How do I bind a textbox to one to many valued columns.
my table: id name statusid typeid assignerid ...
I would like to bind all these to textboxes. Some of the options are:
i.make joins and form resultset accordingly<1, tom, new, query, george>
ii.bind the sub table values to combobox and set selected value property accordingly
are...
When my collection of files is updated then I want to search the newest data...
Like windows Advance search option.
...
I am creating my own control from derived from drawingvisual class and drawn a rectangle. I want to enable mouse events for this object. how can I achieve this?
I thing implementing IInputElement interface might be the solution. Could you guys suggest me how to implement this interface.
Thanks in advance
...
I need a taper-effect on my transform in WPF.
Charles Petzold wrote some nice stuff about it for example :
http://www.charlespetzold.com/blog/2009/07/Using-the-Matrix3DProjection-Class-in-Silverlight-3.html
But now it seems that the used Matrix3DProjection class only exists in Silverlight, and NOT in WPF..?
(Why would Mirosoft think it ...
how to do incremental indexing in Lucene.Net ?
...