Skip to content
This repository has been archived by the owner on Mar 8, 2024. It is now read-only.

Discussion Shouldn't xaml be made more simpler,easy,clearly ? #240

Open
sgf opened this issue Dec 2, 2021 · 1 comment
Open

Discussion Shouldn't xaml be made more simpler,easy,clearly ? #240

sgf opened this issue Dec 2, 2021 · 1 comment

Comments

@sgf
Copy link

sgf commented Dec 2, 2021

<Window x:Class="WpfApp1.MainWindow"
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
        xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
        xmlns:local="clr-namespace:WpfApp1"
        mc:Ignorable="d"
        Title="MainWindow" Height="450" Width="800">
    <Grid>

    </Grid>
</Window>

this is a wpf new mainwindow.
u can see many xmlns. This is very confusing, I am using wpf, why do I specify so many urls (xmlns).

<lib>mswpf,more...<lib/>
<Window Title="MainWindow" Height="450" Width="800">
</Window>

I think the design of xaml is full of configuration items (xmlns, x:Class, mc:Ignorable).
And many of these things should have been replaced by conventions.

@sgf sgf changed the title Discussion Shouldn't xaml be made more simpler? Discussion Shouldn't xaml be made more simpler,easy? Dec 2, 2021
@sgf sgf changed the title Discussion Shouldn't xaml be made more simpler,easy? Discussion Shouldn't xaml be made more simpler,easy,clearly ? Dec 2, 2021
@sgf
Copy link
Author

sgf commented Dec 10, 2021

xaml‘s Style is very Poor readability.
Compared to the CSS a lot worse.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant