Skip to content

Controls update#521

Merged
pomianowski merged 17 commits intolepoco:developmentfrom
IvanDmitriev1:Control-updates
Feb 8, 2023
Merged

Controls update#521
pomianowski merged 17 commits intolepoco:developmentfrom
IvanDmitriev1:Control-updates

Conversation

@IvanDmitriev1
Copy link
Copy Markdown
Contributor

Deleted Dialog control.
Changed .editorconfig so that it is the same as in the dotnet/runtime repository.
Added folders for TitleBar, MessageBox, ContentDialog, VirtualizingWrapPanel, NumberBox controls.
Added small fixes.

Pull request type

  • Update
  • Bugfix
  • Feature
  • Code style update (formatting, renaming)
  • Refactoring (no functional changes, no api changes)
  • Build related changes
  • Documentation content changes

@github-actions github-actions bot added controls Changes to the appearance or logic of custom controls. styles Topic is related to styles labels Feb 1, 2023
@IvanDmitriev1 IvanDmitriev1 changed the title Control updates Controls update Feb 1, 2023
Copy link
Copy Markdown
Member

@pomianowski pomianowski left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hey, thanks for organizing the cleanup.

For the namespace to work properly, Properties\AssemblyInfo.cs needs to be updated. Same for VisualStudioToolsManifest.xml.

As for IDialogService, I find it useful and think that it should be rewritten for DialogControl.

@IvanDmitriev1
Copy link
Copy Markdown
Contributor Author

Ok.

@IvanDmitriev1
Copy link
Copy Markdown
Contributor Author

For the namespace to work properly, Properties\AssemblyInfo.cs needs to be updated. Same for VisualStudioToolsManifest.xml.

Actually I didn't change namespace, they all have the Wpf.Ui.Controls namespace.

@pomianowski
Copy link
Copy Markdown
Member

For the namespace to work properly, Properties\AssemblyInfo.cs needs to be updated. Same for VisualStudioToolsManifest.xml.

Actually I didn't change namespace, they all have the Wpf.Ui.Controls namespace.

I'm not a fan of the solution when the namespace is not the same as the directory tree.

@IvanDmitriev1
Copy link
Copy Markdown
Contributor Author

At the same time, all controls should have the namespace Wpf.Ui.Controls, isn't that right?

@pomianowski
Copy link
Copy Markdown
Member

At the same time, all controls should have the namespace Wpf.Ui.Controls, isn't that right?

No need, namespace is added to AssemblyInfo.

namespace Wpf.Ui.Controls.Navigation;

[assembly: XmlnsDefinition("http://schemas.lepo.co/wpfui/2022/xaml", "Wpf.Ui.Controls.Navigation")]

@IvanDmitriev1
Copy link
Copy Markdown
Contributor Author

No need, namespace is added to AssemblyInfo.

But it for XAML not for c#.

@pomianowski
Copy link
Copy Markdown
Member

pomianowski commented Feb 5, 2023

No need, namespace is added to AssemblyInfo.

But it for XAML not for c#.

It doesn't matter what the namespace is, it could even be Wpf.Ui.Xyz and everything should still work.

Unless you mean a naming convention to keep everything neatly in one place.
Well, so far I've decided that we should stick to the directory tree, but if everything in Controls is more convenient and in line with what is in the main WPF, we can consider it that way.

@IvanDmitriev1
Copy link
Copy Markdown
Contributor Author

Unless you mean a naming convention to keep everything neatly in one place. Well, so far I've decided that we should stick to the directory tree, but if everything in Controls is more convenient and in line with what is in the main WPF, we can consider it that way.

Yep

@pomianowski
Copy link
Copy Markdown
Member

Unless you mean a naming convention to keep everything neatly in one place. Well, so far I've decided that we should stick to the directory tree, but if everything in Controls is more convenient and in line with what is in the main WPF, we can consider it that way.

Yep

Well, then, just like the main WPF, we can omit decorative subfolders and keep everything in one place, taking care of the correctness of the namespace.
https://github.com/dotnet/wpf/tree/main/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls

@IvanDmitriev1
Copy link
Copy Markdown
Contributor Author

Then I prefer the directory tree.

@IvanDmitriev1
Copy link
Copy Markdown
Contributor Author

But at the same time winui 3.
https://github.com/microsoft/microsoft-ui-xaml/tree/main/dev

@pomianowski
Copy link
Copy Markdown
Member

pomianowski commented Feb 5, 2023

But at the same time winui 3. https://github.com/microsoft/microsoft-ui-xaml/tree/main/dev

Well yes, but it's a CPP project

@IvanDmitriev1
Copy link
Copy Markdown
Contributor Author

IvanDmitriev1 commented Feb 5, 2023

In my opinion , c++ namespace structured by folders, at least I did. Although c++ has no standard on this.

@pomianowski pomianowski merged commit a99b6c8 into lepoco:development Feb 8, 2023
@IvanDmitriev1 IvanDmitriev1 deleted the Control-updates branch February 8, 2023 15:50
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Feb 9, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

controls Changes to the appearance or logic of custom controls. styles Topic is related to styles

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants