System: Windows XP SP3, .NET 3.5, 4GB RAM, Dual 1.6gHz
I have a WPF application that loads and transitions (using Storyboard animations) extremely large PNGs. These PNGs are 8190x1080 in resolution. As the application runs it appears to cache the images and the system Memory slowly creeps up. Eventually it chokes the system and throws ...
Hi All,
I have a Winforms application coded in VS C# 2008 and want to insert a WPF window into the window pane of Winforms application.
Could you explain me how this is done.
Kind Regards
John
...
Displaying a View inside a Region is about 5-10 seconds slow for the first time, and UI freezes for that period in my Prism Composite WPF application. In subsequent times View is loaded relatively faster without any UI freezing. View is composed of a Devexpress WPF Grid control and data is fetched from a SQL database. I don't think its a...
Obviously it can have a style applied to it - what am trying to find out if its possible to define the Bullet element within the style, so you don't have to keep defining it over and over in the xaml
<BulletDecorator>
<BulletDecorator.Bullet>
...my bullet UIElement here...
</BulletDecorator.Bullet>
<Te...
I have a ListBox showing data about employees such as name, department photo, badge number, etc. Employees may have different types such as Manager, Staff, Volunteers. I have 3 separate data templates - one for each type. All of these templates show basically the same data but presented differently.
Depending on the user logged into the...
<UserControl x:Class="FlowItem"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" Width="300" Height="300">
<UserControl.Resources>
<Style TargetType="Label">
<Style.Setters>
<Setter Property="Background" Value="AliceBlue" ></Setter>
</...
In my WPF application, I have the standard Generic.xaml file, which contains a style for my custom class, Frost.
I need to find a way to hook up the Completed event of one of the animations to my custom Frost class, I cannot do it at runtime because it complains at me that i need to set IsFrozen to false which I do not want to do (becau...
hi guys,
I'm developing a graph control in WPF. i need to place a canvas on top of another. one canvas
contains the grid lines and the other canvas draws the objects on it. reason for using this is i need to remove the elements from objects canvas and redraw it again, but need to keep the grid lines without removing them.
so i remove ...
I have a DLL that I can use to pull the following information about individuals from a database:
-first name
-last name
-age
-name of task
-progress of that task (percentage)
I'd like to display that information with WPF (or other technology if that makes it much easier) in my Windows Application. Every 5 seconds, the application will ...
I have a simple fade in animation on a large Rectangle inside a ScrollViewer and I notice a significant drop in performance when I increase my windows size past a certain size.
resolution: 1650x1256 - still feels snappy and fluent (framerate between 50 and 60)
resolution: 1820x1256 - stutters and is pretty much unusable (framerate betw...
I have a window with two listboxes both bound to an XMLDataProvider. The SelectedItem property of Listbox1 is two-way-bound to the SelectedItem property of ListBox2. So far so good.
ListBox2 contains a Styletrigger which sets IsSelected to true when the mouse hovers over an item. The corresponding item in ListBox1 is selected too becaus...
I am aware of the FontStretch property, but not really sure how to use it.
What I want is to create a window designed with a resolution of say 200x400. Then when the user stretches it to 400x800 (or whatever), I'd just like the entire window to stretch/scale up (in the given scenario, everything would double in size) rather than just...
Hi,
i am porting my application from windows forms to WPF. I have found that datagrid is available only through the WPF Toolkit. However i have some issues with performance. This could be because something that performed alright in windows forms does not in wpf since it has to be implemented differently. Anyhow, i am doing something lik...
Hi,
We have a xps document which is embedded resource in the exe. When i read this, i am getting a xpsDocument object, But unable to doc.GetFixedDocumentSequence(). It is giving Invalid uri,Document reference error..
I am getting the document as below.
string resourceNameOfContext = string.Format(Constants.HELPDOCUMENTNAME,
...
I am completely new to WPF, so I am spending time trawling the web for examples and tutorials on how things should be done. I have concluded the way forward is to try and use the MVVM pattern as guidance for my application structure. I am completely comfortably with the theory if not with my technical ability. I have one or two questions...
I was wondering what is the best way to go about taking a selected image, resizing it and saving it. From what i have heard WPF destroys image quality when it resizes images. Is this true, if so what method should i try to attempt this task?
Thanks, Kohan.
...
Hi,
I am new to WPF concepts. I want to just display a string in a textbox. I tried the following C# code and XAML to bind a string to a TextBox.Text property.
C# code:
public partial class Window1 : Window
{
public int TmpVal;
public string TmpStr;
public Window1()
{
TmpVal = 50;
TmpStr = "Windows Cr...
hi guys,
this is my code
<Canvas Name="chartCanvas1" ClipToBounds="True" Background="Beige">
<Canvas.RenderTransform>
<TransformGroup>
<ScaleTransform ScaleY="-1" />
<TranslateTransform Y="355" />
</TransformGroup>
</Canvas.RenderTransform>
</Canvas>
i need to bind the ...
What use are they if they cannot be altered from their default values anyway? Rhetorical question.
First, what's the best way to circumvent the Settings system and write to the application scope settings file directly (security issues in the next paragraph)? XmlReader/XmlWriter?
IIRC, if an application tries to write to its Program Fil...
Hi I found this questions
http://stackoverflow.com/questions/1019204/how-to-manipulate-wpf-gui-based-on-user-roles/1020303#1020303
and apply his answer to my project. I'm implementing the same behavior.
but the thing is the property binding doesn't work.
I create the RoleToVisibilityConverter class and make some test, calling the co...