I have an XBAP WPF application which displays various pages inside of a Frame. I was thinking about allowing deep linking into this app. So that users can link to something like http://myhost/myapp.xbap?page=MyPage and I then when app loads I automatically set MyPage.xaml as a source of my main frame.
I think I have an understanding of ...
I am having performance issues when rendering/rotating WPF triangles
If I had a WPF triangle being displayed and it will be rotated to some degree around a centrepoint, I can do it one of two ways:
Programatically determine the points and their offset in the backend, use XAML to simply place them on the canvas where they belong, it wo...
My WPF application used high CPU usage after about 30 minutes, then i break the application to find out what code spent high CPU usage, but i got nothing.
Visual Studio 2008 can't display current running code, but i found this in "Call Stack" panel:
[In a sleep, wait, or join]
mscorlib.dll!System.Threading.WaitHandle.WaitAny(System.T...
How do I insert an image in a database and retrieve the image in Crystal Reports using a C# WPF Application?
...
When I select an item on my treeview, there is a notable time gap from my viewmodel class being instantiated to the view refreshing and the treeview node being hi-lit.
I need to show a wait cursor during this time - I've tried wrapping the code that instantiates my viewmodel class, but the cursor is back to an arrow a couple of seconds...
We use UI Automation and Nunit to create tests UI tests for WPF application.
We've created tests that work fine when you run them from a local machine. Those tests never run successfully on our build server (using TeamCity). Build always hang after opening application window. But if I am logged in (remote desktop), on our build server al...
This is the error we get:
Error 1 The type 'System.Windows.Point' is defined in an assembly that is not referenced. You must add a reference to assembly 'System.Windows, Version=2.0.5.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e'. C:\PacMan\PacMan\PacMan\PacManTests\UnitTest1.cs 65 13 PacManTests
We get this error in our unit ...
I need to figure out how to communicate between ViewModels. I'm new to MVVM so please be kind.
Here's a dumbed down example
class definitions(assume that I have hooked the Child.PropertyChanged event in the ParentViewModel):
public class ParentViewModel : ViewModelBase
{
public ChildViewModel Child { get; set; }
}
public class Ch...
I have a hierarchical data structure that I need displayed in WPF. I'm very new to WPF and have been trying to come up with a way to do this. But, alas, I have drawn a blank and ask you guys for help. My data structure looks like this:
Ford
F-150
2009
P4445
2008
N998
2007
M775
F-350
2008
N999
2007
M777
I want the data...
Hi,
Does WPF provide a framework for handling documents, similar to how MFC's Document/View?
In my WPF application, I can go and just create File->New/Open/Save elements in the menu and attach them to methods, but I'm wondering if WPF provides anything to manage that in a better way.
Thanks!
...
I'm going to focus hell right now in my WPF application. Focus is jumping around between elements, and seemingly disappearing only to come up on another element when the tab key is repeatedly pressed.
Is there a property I can bind a label on to or something that will simply just tell me what the heck the keyboard focus is latched on to...
I have a simple user control to display a hyperlink in a textblock:
LinkTextBlock.xaml:
<TextBlock >
<Hyperlink NavigateUri="{Binding Url, ElementName=root}" >
<TextBlock Text="{Binding Text, ElementName=root}" />
</Hyperlink>
</TextBlock>
LinkTextBlock.xaml.cs:
public static readonly DependencyProperty UrlPropert...
I've got a WritableBitmap that updates on a separate thread, specifically in response to an event.
myWritableBitmap.Lock();
CopyMemory(myWritableBitmap.BackBuffer, ...);
myWritableBitmap.AddDirtyRect(...);
myWritableBitmap.Unlock();
When run on a separate thread as-is, the Lock() command throws a System.InvalidOperationException.
If I...
Hi,
Please humor me as I might be crazy.
Does viewing xaml in the Visual Studio UI designer execute the code-behind file?
For the past while whenever I try to view the main xaml file of my WPF application it throws an exception, but because I've been busy with other things I never really looked into it until today. Now I notice that ...
I'm having a problem understanding the basics of databinding in WPF. I have a generic DataGrid (with AutoGenerateColumns set) that is bound to a DataTable with column names that vary on every load. When the dataTable contains columns that are of type boolean, I want to render a column that contains custom images representing true and fal...
I'm having problems making a ComboBox stretch to fill the whole column width in a GridViewColumn. It should also resize when the column is resized.
In the following example I have a StackPanel with a ComboBox inside. This is set to stretch and will in fact stretch to fill the StackPanel width.
Then I add a ListView with one column, c...
In WPF is it possible to style the WPF TabControl to lool like those in Visual Studio?
Instead of this: (Normal Tabs)
I will prefer this: (Styled Tabs)
...
I'm creating a program using WPF that has an FTP like interface with 2 list views and 2 buttons between them. The problem I have is that I don't know how to set the 2 list views to fill up the available space without getting the buttons to do so as well.
...
I am looking for a way to edit a piece of HTML (such as an email text) in a Windows app (either WinForms or WPF). So this should work not unlike the little editor I have available to myself right here on the stackoverflow site (well, except more wysiwyg, I guess), except I want to do the same thing in WPF/WinForms.
Anyway: You get the ...
I am currently in the process of creating a Onscreen keyboard. I am handling the button click using routedcommands. The issue is that when i click on the button in keyboard panel the focus shifts to the button rather than on the Textbox. The requirement states that a cursor should always appear in the text box to indicate the position wh...