Last active
August 29, 2015 14:26
-
-
Save alexandru-calinoiu/cf74fbaea8fbee75e2aa to your computer and use it in GitHub Desktop.
Solution for adding a button
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<Button> | |
<Button.Template> | |
<ControlTemplate> | |
<Control Style="{DynamicResource SideUserImageStyle}" Tag="{Binding Path=User.Image}" /> | |
</ControlTemplate> | |
</Button.Template> | |
</Button> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<Button Cursor="Hand"> | |
<Button.Template> | |
<ControlTemplate> | |
<Control Style="{DynamicResource SideUserImageStyle}" Tag="{Binding Path=User.Image}" /> | |
</ControlTemplate> | |
</Button.Template> | |
</Button> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<Button Cursor="Hand" x:Name="ShowUserProfile"> | |
<Button.Template> | |
<ControlTemplate> | |
<Control Style="{DynamicResource SideUserImageStyle}" Tag="{Binding Path=User.Image}" /> | |
</ControlTemplate> | |
</Button.Template> | |
</Button> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public void ShowUserProfile() { | |
WorkspaceConductor.ActivateItem(ProfileWorkspace); | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
workspaceConductor.Verify(mock => mock.ActivateItem(profileWorkspace.Object), Times.Once); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment