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
using Microsoft.AspNetCore.Mvc; | |
namespace FluentlyNamespaced.Group | |
{ | |
[Route("api/group")] | |
[ApiController] | |
public class Controller : ControllerBase | |
{ | |
public Controller(Person.Data.Source personDataSource, Person.Mapping.Provider personMappingProvider) | |
{ |
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
using Microsoft.AspNetCore.Mvc; | |
namespace FluentlyNamespaced.Role | |
{ | |
[Route("api/role")] | |
[ApiController] | |
public class Controller : ControllerBase | |
{ | |
private readonly Repository _roleRepository; | |
private readonly Person.Repository _personRespository; |
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
<TextBlock> | |
<Run>Some leading text with a</Run> | |
<Hyperlink xaml:HyperlinkExtensions.Command="{Binding HyperlinkClicked}">hyperlink</Hyperlink> | |
<Run>in the middle.</Run> | |
</TextBlock> |
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
<TextBlock> | |
<Run>Some leading text with a</Run> | |
<Hyperlink>hyperlink</Hyperlink> | |
<Run>in the middle.</Run> | |
</TextBlock> |
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 static class HyperlinkExtensions | |
{ | |
private static void OnCommandPropertyChanged(DependencyObject sender, DependencyPropertyChangedEventArgs args) | |
{ | |
Hyperlink hyperlink = sender as Hyperlink; | |
if (hyperlink != null) | |
{ | |
hyperlink.Click -= OnHyperlinkClicked; | |