Click here to Skip to main content
14,356,300 members

Silverlight / WPF

 
GeneralRe: WPF: Customizing the appearence of a window n XAML Pin
Richard Deeming29-Aug-18 5:09
mveRichard Deeming29-Aug-18 5:09 
GeneralRe: WPF: Customizing the appearence of a window n XAML Pin
Pew_new29-Aug-18 5:31
memberPew_new29-Aug-18 5:31 
SuggestionRe: WPF: Customizing the appearence of a window n XAML Pin
Richard Deeming29-Aug-18 3:56
mveRichard Deeming29-Aug-18 3:56 
GeneralRe: WPF: Customizing the appearence of a window n XAML Pin
Pew_new29-Aug-18 4:12
memberPew_new29-Aug-18 4:12 
QuestionWPF: Can't get what I need to do to get things right (responsive controls). Pin
Pew_new21-Aug-18 6:13
memberPew_new21-Aug-18 6:13 
AnswerRe: WPF: Can't get what I need to do to get things right (responsive controls). Pin
Richard Deeming21-Aug-18 10:59
mveRichard Deeming21-Aug-18 10:59 
GeneralRe: WPF: Can't get what I need to do to get things right (responsive controls). Pin
Pew_new21-Aug-18 23:02
memberPew_new21-Aug-18 23:02 
GeneralRe: WPF: Can't get what I need to do to get things right (responsive controls). Pin
Richard Deeming22-Aug-18 3:21
mveRichard Deeming22-Aug-18 3:21 
To move things around on the canvas, you'll need to update the Canvas.Top and Canvas.Left properties on the things you want to move.

If you want to move a group of shapes as a single unit, the simplest option would probably be to use nested Canvas panels. You can then change the Canvas.Left and Canvas.Top properties on the child canvas to move the entire group.
<Canvas Grid.Row="1">
    <!-- Bus: -->
    <Canvas Canvas.Top="..." Canvas.Left="...">
        <Path ... />
        ...
    </Canvas>
    
    <!-- Sign: -->
    <Canvas Canvas.Top="..." Canvas.Left="...">
        <Path ... />
        ...
    </Canvas>
    
    ...
</Canvas>

You'll obviously need to adjust the position of the shapes within the nested canvas, since they'll now be relative to the position of the nested canvas rather than the parent canvas. So if your shape was previously positioned at (100, 50), and is now in a nested canvas positioned at (90, 50), the shape would need to be at (10, 0).

WPF also has strong support for animation:
Animation Overview | Microsoft Docs[^]
Animation using Storyboards in WPF[^]
Advanced Animations in WPF[^]



"These people looked deep within my soul and assigned me a number based on the order in which I joined."
- Homer

GeneralRe: WPF: Can't get what I need to do to get things right (responsive controls). Pin
Pew_new23-Aug-18 1:41
memberPew_new23-Aug-18 1:41 
GeneralRe: WPF: Can't get what I need to do to get things right (responsive controls). Pin
Richard Deeming23-Aug-18 9:15
mveRichard Deeming23-Aug-18 9:15 
GeneralRe: WPF: Can't get what I need to do to get things right (responsive controls). Pin
Pew_new23-Aug-18 9:34
memberPew_new23-Aug-18 9:34 
GeneralRe: WPF: Can't get what I need to do to get things right (responsive controls). Pin
Richard Deeming23-Aug-18 9:39
mveRichard Deeming23-Aug-18 9:39 
GeneralRe: WPF: Can't get what I need to do to get things right (responsive controls). Pin
Pew_new23-Aug-18 9:52
memberPew_new23-Aug-18 9:52 
GeneralRe: WPF: Can't get what I need to do to get things right (responsive controls). Pin
Richard Deeming23-Aug-18 10:05
mveRichard Deeming23-Aug-18 10:05 
GeneralRe: WPF: Can't get what I need to do to get things right (responsive controls). Pin
Pew_new24-Aug-18 4:09
memberPew_new24-Aug-18 4:09 
GeneralRe: WPF: Can't get what I need to do to get things right (responsive controls). Pin
Gerry Schmitz24-Aug-18 7:08
mveGerry Schmitz24-Aug-18 7:08 
GeneralRe: WPF: Can't get what I need to do to get things right (responsive controls). Pin
Pew_new25-Aug-18 8:36
memberPew_new25-Aug-18 8:36 
QuestionScale items with ViewBox within an ItemsControl Pin
Kenneth Haugland7-Aug-18 7:07
professionalKenneth Haugland7-Aug-18 7:07 
AnswerRe: Scale items with ViewBox within an ItemsControl Pin
Kenneth Haugland8-Aug-18 4:56
professionalKenneth Haugland8-Aug-18 4:56 
QuestionPredicateBuilder Question Pin
Kevin Marois14-Jul-18 19:21
professionalKevin Marois14-Jul-18 19:21 
AnswerRe: PredicateBuilder Question Pin
Richard Deeming16-Jul-18 9:19
mveRichard Deeming16-Jul-18 9:19 
AnswerRe: PredicateBuilder Question Pin
Gerry Schmitz16-Jul-18 11:15
mveGerry Schmitz16-Jul-18 11:15 
QuestionWPF HyperLink Binding To MainWindowViewMOdel Not Working Pin
Kevin Marois9-Jul-18 18:02
professionalKevin Marois9-Jul-18 18:02 
AnswerRe: WPF HyperLink Binding To MainWindowViewMOdel Not Working Pin
Pete O'Hanlon9-Jul-18 21:07
protectorPete O'Hanlon9-Jul-18 21:07 
GeneralRe: WPF HyperLink Binding To MainWindowViewMOdel Not Working Pin
Kevin Marois10-Jul-18 7:53
professionalKevin Marois10-Jul-18 7:53 

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.