Click here to Skip to main content
15,885,366 members
Home / Discussions / WPF
   

WPF

 
GeneralRe: problem in extending Vista glass effect into WPF client area Pin
Member 415175824-Sep-08 21:01
Member 415175824-Sep-08 21:01 
GeneralRe: problem in extending Vista glass effect into WPF client area Pin
User 27100925-Sep-08 1:39
User 27100925-Sep-08 1:39 
GeneralRe: problem in extending Vista glass effect into WPF client area Pin
Member 415175825-Sep-08 15:07
Member 415175825-Sep-08 15:07 
GeneralRe: problem in extending Vista glass effect into WPF client area Pin
User 27100925-Sep-08 15:21
User 27100925-Sep-08 15:21 
QuestionXAML Power Toys 2.0.8 Released - Great New Features! Pin
User 27100921-Sep-08 21:32
User 27100921-Sep-08 21:32 
QuestionDVD Application Pin
Vishaal K. Menon18-Sep-08 20:16
Vishaal K. Menon18-Sep-08 20:16 
AnswerRe: DVD Application Pin
Harvey Saayman23-Sep-08 1:42
Harvey Saayman23-Sep-08 1:42 
QuestionFixing an Image/Drawing so it doesn't auto-size Pin
chaiguy133718-Sep-08 16:43
chaiguy133718-Sep-08 16:43 
I'm having this weird minor problem that I can't seem to figure out, probably because I don't understand enough of why it's happening.

I have an ImageDrawing that I draw some shapes in, and then animate those shapes. Due to the animation, the size of the drawing changes, as do its edges relative to the "center" of the drawing, if you will, (or any fixed point in the drawing).

What's happening is WPF is treating the image as an encapsulated object whose dimensions keep changing, resulting in it constantly "re-centering" itself, which results in my drawing moving around on the window when I want it to be completely fixed (so that the individual shapes animate, but the drawing as a whole stays in the same spot).

Basically as far as I can tell is happening is the drawing is being "trimmed" (like in Photoshop), rather than staying a fixed size like a canvas. Any idea how to stop this happening?

I've tried a few things like giving the Image a fixed width and height, but the drawing inside it still does the same trimming thing. Also I can't set HorizontalAlignment or VerticalAlignment because the top/bottom and left/right edges of the drawing still change (thanks again to the trimming).

“Time and space can be a bitch.”
–Gushie, Quantum Leap

{o,o}.oO( Looking for a great RSS reader? Try FeedBeast! )
|)””’)            Built with home-grown CodeProject components!
-”-”-

GeneralRe: Fixing an Image/Drawing so it doesn't auto-size Pin
chaiguy133718-Sep-08 16:51
chaiguy133718-Sep-08 16:51 
QuestionRe: Fixing an Image/Drawing so it doesn't auto-size Pin
chaiguy133718-Sep-08 18:05
chaiguy133718-Sep-08 18:05 
AnswerRe: Fixing an Image/Drawing so it doesn't auto-size Pin
chaiguy133718-Sep-08 18:17
chaiguy133718-Sep-08 18:17 
QuestionHow to draw an vector on top of an Image? Pin
Suehana Saidin18-Sep-08 14:45
Suehana Saidin18-Sep-08 14:45 
AnswerRe: How to draw an vector on top of an Image? Pin
chaiguy133718-Sep-08 16:36
chaiguy133718-Sep-08 16:36 
GeneralRe: How to draw an vector on top of an Image? Pin
Suehana Saidin18-Sep-08 18:55
Suehana Saidin18-Sep-08 18:55 
GeneralRe: How to draw an vector on top of an Image? Pin
chaiguy133718-Sep-08 19:05
chaiguy133718-Sep-08 19:05 
QuestionNewbie Needs Help with using Blend in my VS 2005 applications Pin
GDMFSOB18-Sep-08 3:45
GDMFSOB18-Sep-08 3:45 
AnswerRe: Newbie Needs Help with using Blend in my VS 2005 applications Pin
Michael Sync18-Oct-08 21:57
Michael Sync18-Oct-08 21:57 
QuestionHow can I access to an element of App with Timer in WPF ? Pin
Mohammad Dayyan18-Sep-08 3:00
Mohammad Dayyan18-Sep-08 3:00 
AnswerRe: How can I access to an element of App with Timer in WPF ? Pin
Insincere Dave18-Sep-08 6:59
Insincere Dave18-Sep-08 6:59 
GeneralRe: How can I access to an element of App with Timer in WPF ? Pin
Mohammad Dayyan18-Sep-08 9:09
Mohammad Dayyan18-Sep-08 9:09 
QuestionHow to show multiple attribute values in tree view from XML file in WPF? Pin
sachinss198617-Sep-08 23:29
sachinss198617-Sep-08 23:29 
AnswerRe: How to show multiple attribute values in tree view from XML file in WPF? Pin
Pete O'Hanlon18-Sep-08 3:50
mvePete O'Hanlon18-Sep-08 3:50 
QuestionError:Assembly '' was not found in Custom Control(WPF) Pin
bruze17-Sep-08 3:54
bruze17-Sep-08 3:54 
AnswerRe: Error:Assembly '' was not found in Custom Control(WPF) Pin
Pete O'Hanlon17-Sep-08 4:36
mvePete O'Hanlon17-Sep-08 4:36 
QuestionIs animated masking possible in WPF? Pin
azwethinkheiz17-Sep-08 0:48
azwethinkheiz17-Sep-08 0:48 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.