|
I have WPF application that performs scrolling of three xaml controls in circular manner.
If I use simple control without much styles or instead use a simple image in the element, then scrolling goes fine and application performance is good.
However, if I load the control with heavy WPF styles,then at very high resolution say (1400 * 900) systems, scrolling gets jerky and CPU usage increases.The problem exists with machines with low graphic card.
I studied this and found that WPF can take advantage of hardware rendering pipeline but couldn't find any working example.
Is there some way in WPF by which we can use heavy styled xaml controls with good performance on PCs with UMA graphic card?
|
|
|
|
|
devneeraj wrote: Is there some way in WPF by which we can use heavy styled xaml controls with good performance on PCs with UMA graphic card?
Nope. You hit the same limitations as you would trying to run a 3D game running on the card. The limitation is not with WPF.
If you have a problem, then you could offer multiple styled versions (it's as easy as swapping in another set or ResourceDictionary's) so that people with lower powered cards could choose to use a lighter version.
|
|
|
|
|
Guys and Girls,
I am working on a XBAP WPF project that requires access to some data objects contained within a class library. This class library is contained within the same solution but sits in a seperate solution folder and is referenced within the xbap application.
The problem is that when I try top use xmlns to gain access to the namespace of the class library, it fails. using the same xmlns syntax but take the class library out of the solution folder it works.
Is this a known issue or am i being dumb and not getting my syntax correct??
The line I use is as follows
xmlns:cnl="clr-namespace:Citynetworks.CommissionManager.BusinessEntities;assembly=Citynetworks.CommissionManager.BusinessEntities"
Many thanks
Paul
|
|
|
|
|
Hi!
I want to move some item along some path. How can i do that?
|
|
|
|
|
|
in Forms there is a DesignerHost and DesignSurface class for developers
who want to build their own app for UI-design.
what exist for WPF? which classes or samples?
Thanks Frank
|
|
|
|
|
Well, you can always host your application inside the Visual Studio shell (see here[^]). I'm not sure that the Cider designer is available for developers as a standalone set of classes yet. It wasn't when 3.0 was released, and I haven't seen anything to indicate that this has changed.
[Edit]
OK - this section is a bit of information as to why there isn't a readily accessible equivalent to DesignerHost and DesignSurface for WPF. Basically, as you are aware, the DesignerHost and DesignSurface classes are part of the .NET framework, while the Cider designer is actually part of Visual Studio rather than the core framework. This means that Microsoft has all sorts of issues, such as licensing, that have to be sorted out. This is why the WPF designer in Visual Studio is a feasible route - basically, if I were you I'd look at using the Visual Studio shell in Isolated mode.
I've done quite a bit of playing about with Visual Studio development and, once you get used to it, it's really powerful and really flexible.
[/Edit]
modified on Wednesday, March 26, 2008 3:51 PM
|
|
|
|
|
Hi all,
I want to draw part of a circle and am having difficultly being new to this WPF lark. I can draw a complete circle using an ellipse with equal width and height easily enough.
But what I want to do is given a position, a radius and a start angle and a stop angle draw part of the circle. Have it start at 9 o'clock for instace and sweep clockwise to 5 o'clock. I can sort of do this using an arc, but this seems to be based on a start position and an end position and I'd have to resort to trigonometry in code to work these out.
Any ideas?
|
|
|
|
|
|
Thanks for this Karl, I'll take a look.
Regards,
Rob Philpott.
|
|
|
|
|
I need to dynamically add items to a treeview, but each item should include a check box, and I need to be able to specify the font a color.
Can anybody assist me please ?
Johan Lombaard
Only two things are infinite, the universe and human stupidity, and I'm not sure about the former - Albert Einstein
|
|
|
|
|
Have a look at this[^] article to get some ideas.
|
|
|
|
|
Hello All,
What tools do you use to create 3D models and export them to XAML?
Is XAML the only format that WPF can accept for specifying 3D geometry?
Is there a XAML exporter plugin available for 3ds Max?
|
|
|
|
|
Bartosz Bien wrote: What tools do you use to create 3D models and export them to XAML?
I'm using ZAM3D http://www.erain.com/Products/ZAM3D/DefaultPDC.asp[^]
Bartosz Bien wrote: Is XAML the only format that WPF can accept for specifying 3D geometry?
Yes
Bartosz Bien wrote: Is there a XAML exporter plugin available for 3ds Max?
Don't know. Need to contact them. You "could" go from 3ds Max to ZAM3D to XAML.
modified 27-Feb-21 21:01pm.
|
|
|
|
|
Bartosz Bien wrote: What tools do you use to create 3D models and export them to XAML?
I use Cinema4D, 3DS Max and Maya. Although I'm looking into Zam3D.
Bartosz Bien wrote: Is XAML the only format that WPF can accept for specifying 3D geometry?
Yes - well, you could write your own internal 3D methods that interact with the 3D engine directly, but that would be defeating the whole purpose of XAML.
Bartosz Bien wrote: Is there a XAML exporter plugin available for 3ds Max?
It's not exactly a plugin, but you can always look at this[^] for simpler models.
|
|
|
|
|
I've been playing around with WPF a little bit. I'm using vs 2008. I'm trying really hard to see what the benefits are to using XAML. I understand that when I drag buttons and junk from the toolbox that they will be described in the XAML markup. That's fine. But if I want to do anything beyond that, like custom drawing, I don't see when XAML would be the answer. So far the only one I can come up with to us XAML is the shiny preview window in the designer. This is nice but doesn't overcome the XAML problems I'm seeing:
No strong typing.
No error handling.
No intellisense.
No inheritance. (I've seen some workarounds for this but they don't exactly excite me.)
If I write my WPF customizations in nice procedural code behind C# these problems go away. Along with the shiny preview window.
Am I missing something here?
|
|
|
|
|
There are many advantages of XAML, but disadvantages as well as you pointed out. In the case of WPF, XAML is a non-language specific description of the UI using a more natural hierarchical relationship between elements. This also enables easier code sharing between languages, and enables tools to generate XAML without knowing the nuances of a programming language. Expression blend is one such tool, and there are converters for many other third party tools as well, such as Adobe Illustrator. You can write a feature-rich app with just XAML and never touch a line of VB.NET or C#.
That being said, there are advantages to both XAML and procedural code and those trade-off decisions need to be addressed in your design. I personally like to see the hierarchical relationship, but do have some gripes when it comes to debugging complex XAML.
|
|
|
|
|
Could anyone recommend me a good example that includes FPS camera (like in Wolfenstein or Doom) THAT runs/compiles under Visual Studio 2008?
Thanks for help
|
|
|
|
|
I don't believe that is a WPF/WF/WCF question, that sounds more like Direct X. Unless WPF is hiding an excellent feature that I don't know about yet.
Regards,
Thomas Stockwell
Programming today is a race between software engineers striving to build bigger and better idiot-proof programs, and the Universe trying to produce bigger and better idiots. So far, the Universe is winning.
Visit my homepage Oracle Studios[ ^]
|
|
|
|
|
Hi I want to capture rezise event of WPF window ... how can I do that ... please guide...its urgent
|
|
|
|
|
ciacia wrote: its urgent
It's always urgent. Just once, I'd like to see somebody say get round to it when you can.
Anyway - the Window element in your XAML exposes a SizeChanged event so you'd hook it up as in
<Window x:Class="MyNamespace.MyClass"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
Title="Size Test" Height="411" Width="310"
Loaded="Window_Loaded"
SizeChanged="Window_SizeChanged"> This creates an event handler in the codebehind that looks like this:
private void Window_SizeChanged(object sender, SizeChangedEventArgs e)
{
}
|
|
|
|
|
Funny but useful reply. tks
|
|
|
|
|
Hi,
This is my requirement,
Can I have linklabel in my dialog to open another dialog in WPF(Xaml).
Say there is a Dialog A inside that I have couple of textboxes and a couple of linklabel,
Based on the link the user chooses I have to open Dialog B or Dialog c.
It is not a web based application but WPF application.
Any sample appreciated.
With Rgds,
|
|
|
|
|
Use a HyperLink control in the in the Click event perform any operations you need to.
modified 27-Feb-21 21:01pm.
|
|
|
|
|
I wrote a simple application in WPf and I`m getting StackOverflowException in PresentationCore.dll. It seems to be WPF bug. It`s impossible to debug or trace the cause, since exception occurs not in my code. I`m attaching the sample application which produces this exception (http://62.233.162.212/martinez/SMOG/Sample%20application.rar[^])
How to produce this exception in this application:
1. The application initially contains 2 polygons. Enlarge the "brown" one a bit
2. Turn off snaping (upper-left corner checkbox)
3. Insert the second polygon inside the former one
4. Move the bigger polygon one or two times - it always throws this exception.
Thank you very much for any help
|
|
|
|