Closed Shadowblitz16 closed 5 months ago
I have fixed uixml. It seems work fine with these changes. I removed all Dock settings as they are extra.
<Window xmlns="http://schemas.alternetsoft.com/ui/2021"
xmlns:x="http://schemas.alternetsoft.com/ui/2021/uixml"
x:Class="SMBXR.MainView"
xmlns:local="clr-namespace:SMBXR"
Title="SMBXR Editor">
<Window.Menu>
<MainMenu>
<MenuItem Text="_File">
<MenuItem Text="_Open..." Name="openMenuItem" Click="OnOpen" Shortcut="Ctrl+O"/>
<MenuItem Text="_Save..." Name="saveMenuItem" Click="OnSave" Shortcut="Ctrl+S"/>
<MenuItem Text="-" Name="separatorMenuItem" />
<MenuItem Text="E_xit" Name="exitMenuItem" Click="OnExit"/>
</MenuItem>
</MainMenu>
</Window.Menu>
<VerticalStackPanel>
<Panel Name="levelEdit" UserPaint="true" Paint="OnLevelPaint" VerticalAlignment="Fill"/>
<VerticalStackPanel>
<local:LevelSettingsView Name="levelSettingsView" VerticalAlignment="Fill"/>
<Panel Name="levelTools">
<HorizontalStackPanel>
<Button Text="Select" Name="selectButton" Click="OnLevelSelect"/>
<Button Text="Eraser" Name="eraserButton" Click="OnLevelEraser"/>
<Button Text="Settings" Name="settingsButton" Click="OnLevelSettings"/>
</HorizontalStackPanel>
</Panel>
</VerticalStackPanel>
</VerticalStackPanel>
</Window>
I am closing this issue as it seems to be not the problem in Alternet.UI.
After reporting the issue about the window position not being saved I tried to implement this as a panel... But my panel stops receiving input after about the forth click on the settings button...