Good time, Heshkodovtsy.
Began to learn WPF, reached the triggers. I try to solve several problems on my own, set by myself, because The examples in the book are very simple, and I want something more real for use in life.
Actually, the first task is to animate the window display. I want that when the window is displayed on the screen, it smoothly leaves from outside the screen, here I have several problems:
- I can not understand where the trigger shove. I try in the section <Window> </ Window>, I swear that it is impossible here, because it already exists (but I don’t observe it in the code). I tried in the Grid - here I swear that it cannot contain a trigger ... I also had an idea to put it in style, but with them I still haven’t quite clear everything.
- How to get the screen size to pre-position the window depending on the screen resolution (I want the window on the right to crawl out). Well, for now, quite an example will come down so that the window on the left crawls out. Set constant values on the left.
Thanks in advance for your answers.