Hi,
How would I reverse a double animation in Silverlight on an event? For example, lets say I have an ellipse as a path and I am moving a shape along this path in an infinite loop. If I press a button, I want to reverse the direction of the spin (clockwise <-> counterclockwise).
To be more specific, I am using the PathListBox object t...
If I have problems with WPF, then it always concerns the Focus-Management. There are cases, my App loses totally focus so that another application gains the focus and my app goes in the background. This happens mainly if some windows in my app will be closed.
Is this a known problem of WPF. Does someone else has similar problems?
I alre...
There may not be any practical use of what I want to do, but just to satisfy my curiosity can we compact the 2nd binding in the following XAML into 1 line
<TextBlock>
<TextBlock.Text>
<MultiBinding Converter="{StaticResource MyConverter}">
<Binding Source="{StaticResource One}"></Binding>
<Binding>
...
Hi
In windows app and also any data-Grid's Component, released for windows app, kind of column exist.
That "Column-type" use for tables have relation(foreign_key) with another table and load one column from master table (have primary_key) Instead of itself (foreign_key)!
So I want do same thing for data-grid in the silver-light and wpf.....
I am interested in automating some application / system level tests on an existing product range. Our product range consists of several distinct applications, written in .Net 3.5 and using WPF for the presentation layer.
Ultimately, I am interested in finding an application testing suite that is capable of executing scenarios and report...
I am attaching a PreviewMouseLoeftButtonDown event handler to a ListBox. The aim is to obtain the clicked ListBoxItem from the "e.Source" parameter in the event handler. This works perfectly with the following code:
</ListBox>
<ListBox Name="listBox3">
<ListBox.ItemsPanel>
<ItemsPanelTemplate>
<StackPanel Orientation="Hori...
Hi,
i am trying to add Headers / footers to a WPF FlowDocument. I Found a solution on the Internet here that is using a custom Paginator Class to do this. Unfortunately this only works when printing out the Document, which is not what I intend to do. My Idea was to use a FlowDocumentPageReader or something similar with a custom paginato...
I'm trying to iterate through my Treeview, expanding all nodes however it runs into an InvalidCastException when ran;
Unable to cast object of type 'System.Data.DataRowView' to type 'System.Windows.Controls.TreeViewItem'.
My Code;
foreach (TreeViewItem treeitem in thetreeView.Items)
{
treeitem.IsExpanded = true;
}
Any ideas? I w...
I have an control that is subclassed from ItemsControl, called WorkSheet.
public sealed class WorkSheet : ItemsControl {
It's elements are forced to be WorkTiles.
/// <inheritdoc />
protected override bool IsItemItsOwnContainerOverride(object item) {
return (item is WorkTile);
}
/// <inheritdoc />
protect...
Hi,
I want to swap images on the button dynamically using mvvm light. When the page first loads,it should display the images as per the database values i.e. checked or unchecked. I have 2 columns for the images like ImageChecked and ImageUnchecked. By clicking on the button i.e checked or unchecked it should change accordingly.If it che...
Hello All,
I have a problem in getting Actual height and Acual width of Image control in WPF. When user selects the image file. I want to resize the selected image based on the dimentions of the image control.
I tried to get the Image.ActualHeight and Image.ActualWidth when window initializes, but I found that both properties of Imag...
Hi
I'm 3-months new to WPF and trying to build a launchy app for fun (app launcher type thingie by name).
I can't seem to launch ClickOnce applications by Process name.
In other words:
Process.Start("Firefox"); // will work
Process.Start("MetroTwit"); // a ClickOnce app - will NOT work
I've read that you should be calling it by U...
I need to draw text along lines drawn through pathfigurecollection->pathfigure->linesegement
is there any way to draw text along linesegment...
or is there any way to resolve this.
Cannot implicitly convert type 'System.Windows.Media.Geometry' to 'System.Windows.Media.PathSegment'
...
I've scoured the internet (including answers from this site) but nothing appears to work for me. Does anyone know the correct approach to attach WatiN to a WebBrowser instance (Windows Presentation Forms version)?
Most of the answers I've read tell me about 'ActiveXInstance', which is not visible in the WPF version of WebBrowser. I've ...
Hi all,
I have an ellipse that I'd like to programatically put into a canvas. Unfortunately, the ellipse only draws in the top right. Any help?
SolidColorBrush newColor = HotSquare(col);
Color newCol = getCol(col);
Color newCol2 = getCol2(col);
Ellipse el1 = new Ellipse();
el1.Height = 40;
el1.W...
I'm mostly an ASP.NET developer, so I'm not very familiar with either J2EE or WFP best practices, patterns etc, but I feel that the project I'm involved in could have been done better, but I can't quite put my finger exactly on what's wrong with the architecture.
What is the best(*) architecture for a heterogenous distributed 3-tier app...
I want to have my window size to the items in the listbox. The listbox contains variable lenght strings (20 to 120 chars). When I scroll the listbox and longer strings in the listbox scroll off the display the listbox shrinks and my window shrinks with it. How can I keep my window size fixed as the user scrolls and yet still have the win...
in a canvas, i have around 2000 framework element derived items.. which inturn consist of around a total of 12000 drawing visuals. This canvas represents a 2d view of a complex machine. And this canvas has pan and zoom logic.
The drawing comes in a jiffy..
but when the machine/drawing is fully loaded.. then the pan and zoom is very j...
Hi,
I am looking for way to get the endpoint of a dynamic path and add on object to it - similar to this kind of pattern:
where the red circle is where the endpoint of the given path is located. take note that the path is created thus, instead of this:
<Path x:Name="path" Data="M621,508 L582.99987,518.00011 569.99976,550.00046 511.9...
I was looking to colour the rows of my datagrid as per a datetime column to which is populated by an ObjectDataProvider, my question is whether this is possible within XAML? Mashed up some sample code of what I'd like, a datetime comparison based on one of the , then colour that row as applicable.
<Style.Triggers>
<Trigger Propert...