You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Today I decided to get to know Avalonia. I started reading the documentation and I got to the Samples & Tutorials/Music Store App section and changing the code in it a bit. When I got to the point where I opened a new dialog window, I came across an error..
With such an axaml file, the dialog window created appears with the size of the main window, which has an extension of 1000x450.:
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Today I decided to get to know Avalonia. I started reading the documentation and I got to the Samples & Tutorials/Music Store App section and changing the code in it a bit. When I got to the point where I opened a new dialog window, I came across an error..
With such an axaml file, the dialog window created appears with the size of the main window, which has an extension of 1000x450.:
Window xmlns="https://github.com/avaloniaui" 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" mc:Ignorable="d" d:DesignWidth="200" d:DesignHeight="200" x:Class="MusicStore.Views.MusicStoreWindow" Title="MusicStoreWindow" TransparencyLevelHint="AcrylicBlur" ExtendClientAreaToDecorationsHint="True" WindowStartupLocation="CenterOwner">by adding width and height attributes to the window, the window appears with the desired size
<Window... Width="200" Height="200""why when I change the line: t
mc:Ignorable="d" d:DesignWidth="200" d:DesignHeight="200"the window does not change its size?
Could the error be hidden in other files?
(I followed the documentation and didn't change the code much)
I will be glad if you tell me why this is happening!
Beta Was this translation helpful? Give feedback.
All reactions