I am trying to automate testing for wpf application using ui automation. I have problems simulating right mouse click and selecting different option in right click menu. Any suggestions?
I also have problems with running other test written using ui automation. Because they just don't wanna start if I don't have UISpy opened and all prog...
Hi,
I'm looking for somthing I can use as a timeline control.
A kind of "banner" the user can drag to the left or the right to go forward or backwards
in time and then he or she should be able to select a point in time on that control.
A fancy datetime picker :-)
Any ideas?
...
I found some rather strange behavior...
Here is how to replicate the problem:
Create a WPF Application Project.
Remove the StartupUri from the App.xaml file.
Add a Startup Event Handler to the App with signature "private void Application_Startup(object sender, StartupEventArgs e)"
Now, add a Form to the project (right click and select...
I'm in the process of learning WPF coming from WinForms development.
I have a TextChanged event assigned to one of my TextBox's in my WPF application. If the user enters invalid data, I want to be able to revert to the previous text value.
In the old forms day, I would replace NewValue with OldValue, but it seems WPF doesn't work the ...
Are there any MVC frameworks available for WPF other than Caliburn (which looks awesome btw)?
...
How to enforce that developers writing XAML in Visual Studio should follow certain standards and validations need to be run and if invalid compile time errors are thrown.
For example, making sure that all the databinding expressions (some are real long) are written correctly as per 'a custom validation' I would like implement, during de...
I have run into an issue with WPF and Commands that are bound to a Button inside the DataTemplate of an ItemsControl. The scenario is quite straight forward. The ItemsControl is bound to a list of objects, and I want to be able to remove each object in the list by clicking a Button. The Button executes a Command, and the Command takes ca...
Here's the scenario
I have a Grid with some TextBlock controls, each in a separate cell in the grid. Logically I want to be able to set the Visibility on them bound to a property in my ViewModel. But since they're each in a separate cell in the grid, I have to set each TextBlock's Visibility property.
Is there a way of having a non-vis...
I have items wrapped in wrap panel.
I want to move first line of items down by some offset.
Is it possible?
Thanks
...
How do I enable multi-select in a WPF ListView by dragging?
Setting the SelectionMode property to Extended does allow multi-select using Shift and Ctrl, but not by clicking and dragging. Setting the SelectionMode property to Multiple gives a sticky selection which isn't what I want.
...
While trying to answer a question in the vicinity 'Unit Testing WPF Bindings' I had the following niggling question..
What's the best way to find if you have WPF Data Binding wiring setup incorrectly (or you just broke something that was wired up correctly) ?
Although the unit-testing approach seems to be like Joel's 'ripping off your a...
I need to create a rectangle bubble with rounded corners with text inside, like a cartoon speech bubble. I need the bubble to expand horizontally and vertically depending on the size of the text it contain. I would like the speech arrow and the radius of the rounded corners to remain constant.
I could simply use a path to create my bub...
I have a ListBox where the number of items is added based on and integer property set by a user. The items are created from a ControlTemplate resource that which is comprised of a Label and a TextBox inside of a DockPanel. The label is not data bound but I would like for it to have somewhat dynamic content based on the (index + 1) of the...
I have a ComponentResourceKey defined in my resource dictionary like this:
<Style x:Key="{ComponentResourceKey TypeInTargetAssembly={x:Type local:Resources}, ResourceId=BaseControlStyle}" TargetType="{x:Type FrameworkElement}">
<Setter Property="Margin" Value="4,4,0,0" />
</Style>
I have a static class that I use as a shortcut to ...
I have a main form and as sub form. I need the main Form to display the sub Form and pass into the constructor an object. When the sub Form is done it needs to destroy itself so the cycle can be repeated.
Currently I declared the sub form globaly
Public GlobalWindowBookmark As WindowEditBookmark
I then create the form and pass it ...
I have a listview with a DataTemplate that has a ComboBox. I want the ComboBox to look flat like a label until the user actually wants to change the value. I had the example below working before, but I changed things around a bit, and now it doesn't work anymore and I'm not sure why.
The IsMouseOver property does not seem to be working...
I have resource dictionary files (MenuTemplate.xaml, ButtonTemplate.xaml, etc) that I want to use in multiple separate applications. I could add them to the applications' assemblies, but it's better if I compile these resources in one single assembly and have my applications reference it, right?
After the resource assembly is built, how...
I've got two sizing issue regarding a Window I've got. The basic layout is like this
<Window MaxHeight="{DynamicResource {x:Static SystemParameters.VirtualScreenHeight}}"
MaxWidth="{DynamicResource {x:Static SystemParameters.VirtualScreenWidth}}"
>
<StackPanel>
<DockPanel LastChildFill="False">
...
In WPF need to trap the keys entered in a textblock to keep the user from entering anything but digits,cap letters and navigation keys (Backspace, Arrows, etc).
Thanks!
...
I am trying to perform validation in my WPF application using the solution in Detecting WPF Validation Errors.
public static bool IsValid(DependencyObject parent)
{
// Validate all the bindings on the parent
bool valid = true;
LocalValueEnumerator localValues = parent.GetLocalValueEnumerator();
while (localValues...