We're considering migrating a WinForms app to WPF, but are just starting on the WPF learning curve now that 4.0 is out.
What I'd like to do is migrate our application commands (cut, copy, paste, etc) to a WPF-like command-binding system, while still running as a WinForms app - but in such a way as to make the migration easy when we go a...
I am trying to add a custom activity designer for an activity that I have. The activity looks a little like:
public class WaitForUserInputActvitiy : NativeActivity
{
public InArgument<UserInteractionProperty[]> UserInteraction { get; set; }
}
I am trying to put a designer on the activity to make it a bit nicer to set these values ...
I want to bind datagrid view column visibility with a property of class.
I am passing a collection as ItemSource to grid.
I am not able to do this. Any idea why?
...
When I click a cell in a WPF datagrid, the whole row is selected, and when I press Ctrl + C to copy the content, the whole row i copied...
How do I select and copy the content of a single cell?
...
I've been thinking if there's a way how to speed up freeing memory in .NET. I'm creating a game in .NET (only managed code) where no significant graphics is needed but still I would like to write it properly in order to not to lose performance for nothing.
For example is it useful to assign null value to objects that are not longer need...
Hello
First Sorry for my English.
I wanted to ask why ElementName does not work the first case, and work in the second.
I give the two sections of code . the firts not work
<Button
Name="button1" Width="100" >
<Button.LayoutTransform>
<ScaleTransform x:Name="ttt" ScaleX="3" ScaleY="...
As of last night, I decided to start learning about WPF and have been reading through a number of online tutorials and books. This is a huge shift.
One feature that has fascinated me is the implicit property value inheritance. I know in the WinForms world, if a control is not visible then neither are any of the child controls. Same s...
Howdy,
My C#/WPF project needs a calendar. We're going to be using it to pick a range of dates for appointment scheduling. I'm told the default calendar is too small to be used by some of our reps so I've been working on resizing it.
<toolkit:Calendar Grid.Row="1" x:Name="DateWindowCalendar"
BorderBrush="White" BorderThickness="0"
...
Thus far, Microsoft's C# team has resisted adding formal compile-time macro capabilities to the language. There are aspects of programming with WPF that seem (to me, at least) to be creating some compelling use cases for macros.
Dependency properties, for instance. It would be so nice to just be able to do something like this:
[Depen...
Hi - I'm a bit of a WPF noob, so apologies for any inherent daftness in this question (!)
I'm trying to enable editing of WPF treeview labels with a doubleclick - I've googled around this, and it looks like the two ways of doing this are with a custom control or with a style which hides one of a TextBox/TextBlock.
Using a style to set ...
I have an Image from (System.Windows.Controls.Image).
This image is positioned on a main canvas.
I want to determine the alpha channel value of the mouse cursor when I click on any portion of this image.
When doing something like the following, I'm getting an exception.
{"Value does not fall within the expected range."} System.Except...
I have developed a simple DB-editing app using Xceed's excellent DataGrid for WPF (UX Edition version 3.7), which is now ready for deployment... except that when I run it on a machine other than the development one where it was built, I am getting the runtime exception for invalid licensing.
I have included my license key in the App.xam...
Hi,
I'm very new to WPF, and am trying to set the datasource (which the WPF Grid doesn't have as a property) of my grid to take a List. Does anyone have any code examples of how to do this. I have googled it, but can't find any really good examples.
(Oh, and can anyone suggest a good site for all round WPF Code examples?)
Thanks
...
Hi guys
I have an WPF application for 60 users tops.
Some of they are cashier users, and I use RDLC reports to show customer orders.
The problem is, users are telling that application is getting slow or hanging.
This WPF application uses most up-to-date Enterprise Library. Connection pooling is handled by default, there's no customiz...
I am trying to derive a class from ObservableCollection and I need to run just a single line of code each and every time any instance of this class is deserialized. My thought was to do this:
[Serializable]
public class ObservableCollection2<T> : ObservableCollection<T>, ISerializable
{
public ObservableCollection2()
: base...
I'm using the new d:DesignInstance feature of the 4.0 series WPF tools. Works great!
Only issue I'm having is: how can I set properties on the instance? Given something like this:
<Grid d:DataContext="{d:DesignInstance plugin:SamplePendingChangesViewModel, IsDesignTimeCreatable=True}"/>
How can I set properties on the viewmodel, asid...
If this question has been asked then I applogize and I will join in voting to close it (or just delete it), but I could not find it being asked before.
We are potentially embarking on making many of our apps using WPF. Most of our apps are normal business apps that will not need too much eye candy. Tasteful ui is nice, but I don't see...
I wrote app with multiple views. Viewmodels are assigned to "smartcontentcontrol" which is derived from contentcontrol and overrides contentproperty metadata to handle changed event for that dependency property. I put some effects on that callback for visuals (renderbitmap and so on).
Now i have extended my viewmodel so, that uppon assig...
Hi,
I have ListBox in my WPF project that gets set to a datasource of "MyObjectCollection".
I have managed to get the ListBox to display my collection, and each item to display two string properties from the object. The object also contains an Image, how do i get the image to display in the ListBox?
I am currently using the below code ...
I'm writing an interface that features a large (~50000px width) "canvas"-type area that is used to display a lot of data in a fairly novel way. This involves lots of lines, rectangles, and text. The user can scroll around to explore the entire canvas.
At the moment I'm just using a standard Canvas panel with various Shapes placed on it....