-
-
Notifications
You must be signed in to change notification settings - Fork 762
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Added new icon element (and markup) - DrawingBrushIcon. New constants for NavigationLeftCompact #1061
base: main
Are you sure you want to change the base?
Conversation
src/Wpf.Ui.Gallery/App.xaml
Outdated
@@ -28,6 +29,8 @@ | |||
<helpers:ThemeToIndexConverter x:Key="ThemeToIndexConverter" /> | |||
<helpers:PaneDisplayModeToIndexConverter x:Key="PaneDisplayModeToIndexConverter" /> | |||
|
|||
|
|||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Formatting
|
||
using System.Windows.Controls; | ||
|
||
namespace Wpf.Ui.Controls; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
namespace Wpf.Ui.Controls; | |
namespace Wpf.Ui.Controls; | |
// If a copy of the MIT was not distributed with this file, You can obtain one at https://opensource.org/licenses/MIT. | ||
// Copyright (C) Leszek Pomianowski and WPF UI Contributors. | ||
// All Rights Reserved. | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
using System.Windows.Controls; | ||
|
||
namespace Wpf.Ui.Controls; | ||
public class DrawingBrushIcon : IconElement |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Missing docs for the public API
{ | ||
var self = (DrawingBrushIcon)d; | ||
if (self.Border is null) | ||
return; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Missing brackets according to the .editorconfig
@@ -4,13 +4,24 @@ | |||
xmlns:converters="clr-namespace:Wpf.Ui.Converters" | |||
xmlns:system="clr-namespace:System;assembly=mscorlib"> | |||
|
|||
<!--#region navigation leftConstants --> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Dont use regions
@@ -4,13 +4,24 @@ | |||
xmlns:converters="clr-namespace:Wpf.Ui.Converters" | |||
xmlns:system="clr-namespace:System;assembly=mscorlib"> | |||
|
|||
<!--#region navigation leftConstants --> | |||
<!--<system:Double x:Key="PaneToggleButtonHeight">40</system:Double> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Remove if not needed
[ContentProperty(nameof(Icon))] | ||
[MarkupExtensionReturnType(typeof(DrawingBrushIcon))] | ||
public class DrawingBrushIconExtension : MarkupExtension | ||
{ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Formatting
Pull request type
Please check the type of change your PR introduces:
What is the current behavior?
Drawing brush cant be use for icon element.
For change left navigation menu size must override all style.
What is the new behavior?
DrawingBrush can be used like icon element (example in Gallery).
Easy way to change width for navigation menu (constants)
Other information