Skip to content
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

Regions in AXAML files #468

Open
ProviceUnify opened this issue Apr 16, 2024 · 1 comment
Open

Regions in AXAML files #468

ProviceUnify opened this issue Apr 16, 2024 · 1 comment

Comments

@ProviceUnify
Copy link

Is your feature request related to a problem? Please describe.

I worked with requested feature in stock WPF. It was very comfortable to organize code's sectors

Describe the solution you'd like

For example, we have large code segment:

<Grid>
  <Lot>
    <Xaml>
      <Code>
        <Inside>
        ...
        </Inside>
      </Code>
    </Xaml>
  </Lot>
</Grid>

Would be good to do something like this:

<!-- #region Block of ... -->
<Grid>
  <Lot>
    <Xaml>
      <Code>
        <Inside>
        ...
        </Inside>
      </Code>
    </Xaml>
  </Lot>
</Grid>
<!-- #endregion -->

To get collapsible block of code in sources like this:

> #Block of ...

It is must save collapsion state. Default behaviour of collapsibles in current Avalonia don't save its state. If VS or file were reopenned all collapsible will expand again now

Describe alternatives you've considered

Good solution is already in extentions but as i know it doesn't work with Avalonia (got error on installation, unable to check)
https://marketplace.visualstudio.com/items?itemName=JacobJohnston.XAMLRegions

Additional context

No response

@ProviceUnify
Copy link
Author

Seems like this feature is native for VS also.. Described solution doesn't work since VS 2017

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

No branches or pull requests

1 participant