Ok, thanks.
I also noticed that animations have even higher priority than manually set properties. If you have animated an object somewhere, not even ClearValue helps. So i have to set the property to the current position manually in the animationcomplete-event and then ClearValue works again.  This is a pretty ugly sollution but it works fine because im only using this sollution once in my project.
The reason why i do this way?
I'm making a mediaplayer and when i play the movies in fullscreen i want the aspectratio to be correct, this has to be calculated manually cause i have placed everything in a ViewBox with fixed height/width to allow easier skinning for all resolutions. If you'r monitors aspectratio isn't the same as the skins, the movie will get a strange stretch even if you use StretchUniform on the MediaElement.
So, when you enter fullscreenmode i override all skinsettings and calculate the height/width manually and when you switch back from fullscreen the skins get priority again. Here the aspectratio for the movie isn't that important, it's just a small previewwindow so i don't think anyone will watch an entire movie here.  |