Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
Working on new button/toggle button.
- Loading branch information
1 parent
42b562d
commit 66b5578
Showing
8 changed files
with
319 additions
and
54 deletions.
There are no files selected for viewing
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
using Windows.UI.Xaml; | ||
using Windows.UI.Xaml.Controls; | ||
|
||
namespace Continuity.Controls | ||
{ | ||
public sealed class ExtendedButton : Button | ||
{ | ||
public CornerRadius CornerRadius | ||
{ | ||
get => (CornerRadius)GetValue(CornerRadiusProperty); | ||
set => SetValue(CornerRadiusProperty, value); | ||
} | ||
public static readonly DependencyProperty CornerRadiusProperty = | ||
DependencyProperty.Register("CornerRadius", typeof(CornerRadius), typeof(ExtendedButton), new PropertyMetadata(null)); | ||
|
||
public Style IconStyle | ||
{ | ||
get => (Style)GetValue(IconStyleProperty); | ||
set => SetValue(IconStyleProperty, value); | ||
} | ||
public static readonly DependencyProperty IconStyleProperty = | ||
DependencyProperty.Register("IconStyle", typeof(Style), typeof(ExtendedButton), new PropertyMetadata(null)); | ||
|
||
public ExtendedButton() | ||
{ | ||
DefaultStyleKey = typeof(ExtendedButton); | ||
} | ||
} | ||
} |
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
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
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
Oops, something went wrong.