15,906,569 members
Sign in
Sign in
Email
Password
Forgot your password?
Sign in with
home
articles
Browse Topics
>
Latest Articles
Top Articles
Posting/Update Guidelines
Article Help Forum
Submit an article or tip
Import GitHub Project
Import your Blog
quick answers
Q&A
Ask a Question
View Unanswered Questions
View All Questions
View C# questions
View C++ questions
View Javascript questions
View Visual Basic questions
View Python questions
discussions
forums
CodeProject.AI Server
All Message Boards...
Application Lifecycle
>
Running a Business
Sales / Marketing
Collaboration / Beta Testing
Work Issues
Design and Architecture
Artificial Intelligence
ASP.NET
JavaScript
Internet of Things
C / C++ / MFC
>
ATL / WTL / STL
Managed C++/CLI
C#
Free Tools
Objective-C and Swift
Database
Hardware & Devices
>
System Admin
Hosting and Servers
Java
Linux Programming
Python
.NET (Core and Framework)
Android
iOS
Mobile
WPF
Visual Basic
Web Development
Site Bugs / Suggestions
Spam and Abuse Watch
features
features
Competitions
News
The Insider Newsletter
The Daily Build Newsletter
Newsletter archive
Surveys
CodeProject Stuff
community
lounge
Who's Who
Most Valuable Professionals
The Lounge
The CodeProject Blog
Where I Am: Member Photos
The Insider News
The Weird & The Wonderful
help
?
What is 'CodeProject'?
General FAQ
Ask a Question
Bugs and Suggestions
Article Help Forum
About Us
Search within:
Articles
Quick Answers
Messages
Comments by snowdogs2 (Top 1 by date)
snowdogs2
5-Jul-11 10:51am
View
Yes I was running in debugger, but I've also built a realease version and run that on it's own as well as run without debug and the performance was equally poor. I did however find out that getting rid of the drop shadow effect drastically improves the performance, to acceptable levels. However, Once I start putting things in my pods to make it a practical dashboard I'm concerned that it will start chugging again, because if a drop shadow effect works fine in silverlight and causes WPF to come to a crashing halt, there's no telling what will break WPF.
I've also noticed that most WPF applications have some kind of Framerate issue. When you drag to resize there is a visible black edge along the right and bottom that appears while you resize. It's not just my application, I downloaded a demo on basic animation timing and it has the same effect. However, if I create a default WPF application, with nothing in it resizes without the black shadow. It's seems certain graphic events require more of the system and cause it to slow down. However, I have no idea what causes what to crash and burn. I did a test with the original Silverlight and it has a similar issue with the edge as you resize, but again no issue with the DropShadow. There seems to be some very odd discrepincies in performance, that don't make a lot of sense. One effect works fine in Silverlight, and causes the animation to grind to a halt in WPF. How are to know what effects, settings, overwhelm the animation, in which system. I looked in MSDN on wpf animation tips and tricks, and I didn't see anything the about DropShadow effects, or any settings/effects causing problems.
Finally, as for the Convert.ToDouble, yeah, that was an original draft, I've since changed to "0.0". the TopPropert was being set to null by default in WPF, and had to be set back to 0. There are a number of little quirk differences that I've been noticing that don't quite translate to WPF.
Finally as for the Conver.ToDouble(0), yeah, it was from a first draft. I've since replaced it with 0.0. The Canvas.Top and LeftProperties were being set to Null when moved over to WPF. Took a little while to figure that out, as the exception wasn't pointing right there. I've found a number of little quirky differences when moving from Silverlight to WPF.