-
Notifications
You must be signed in to change notification settings - Fork 69
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Updated Avalonia to 0.10.0-preview1 (#146)
* Updated Avalonia to 0.10.0-preview1. * Update default font size * replace ComboBox with RadioButtons to avoid crash * change VerticalContentAlignment Co-authored-by: Hadrian Tang <[email protected]> Co-authored-by: FoggyFinder <[email protected]>
- Loading branch information
1 parent
f75643d
commit d835e93
Showing
11 changed files
with
69 additions
and
165 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,40 +1,44 @@ | ||
<UserControl xmlns="https://github.com/avaloniaui" | ||
xmlns:pages="clr-namespace:CSharpMath.Avalonia.Example.Pages" | ||
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" | ||
x:Class="CSharpMath.Avalonia.Example.MainView" | ||
Background="{DynamicResource ThemeBackgroundBrush}" | ||
Foreground="{DynamicResource ThemeForegroundBrush}" | ||
FontSize="{DynamicResource FontSizeNormal}"> | ||
|
||
<TabControl x:Name="Sidebar" | ||
Classes="sidebar"> | ||
|
||
<TabControl.Tag> | ||
|
||
<ComboBox x:Name="Themes" | ||
DockPanel.Dock="Bottom" | ||
SelectedIndex="0" | ||
Width="100" | ||
Margin="8"> | ||
|
||
<ComboBoxItem>Light</ComboBoxItem> | ||
<ComboBoxItem>Dark</ComboBoxItem> | ||
|
||
</ComboBox> | ||
|
||
</TabControl.Tag> | ||
|
||
<TabItem Header="MathView"> | ||
<pages:MathViewPage/> | ||
</TabItem> | ||
|
||
<TabItem Header="TextView"> | ||
<pages:TextViewPage/> | ||
</TabItem> | ||
<TabItem Header="MathButton"> | ||
<pages:MathButtonPage/> | ||
</TabItem> | ||
|
||
</TabControl> | ||
<UserControl | ||
x:Class="CSharpMath.Avalonia.Example.MainView" | ||
xmlns="https://github.com/avaloniaui" | ||
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" | ||
xmlns:pages="clr-namespace:CSharpMath.Avalonia.Example.Pages" | ||
Background="{DynamicResource ThemeBackgroundBrush}" | ||
FontSize="{DynamicResource FontSizeNormal}" | ||
Foreground="{DynamicResource ThemeForegroundBrush}"> | ||
|
||
<DockPanel> | ||
|
||
<StackPanel | ||
HorizontalAlignment="Right" | ||
DockPanel.Dock="Bottom" | ||
Orientation="Horizontal"> | ||
<RadioButton | ||
x:Name="lightThemeRbn" | ||
Margin="2,8" | ||
Padding="8,0" | ||
VerticalContentAlignment="Center" | ||
Content="Light" | ||
IsChecked="true" /> | ||
<RadioButton | ||
Margin="2,8" | ||
Padding="8,0" | ||
VerticalContentAlignment="Center" | ||
Content="Dark" /> | ||
</StackPanel> | ||
|
||
<TabControl x:Name="Sidebar" Padding="16"> | ||
<TabItem Header="MathView"> | ||
<pages:MathViewPage /> | ||
</TabItem> | ||
<TabItem Header="TextView"> | ||
<pages:TextViewPage /> | ||
</TabItem> | ||
<TabItem Header="MathButton"> | ||
<pages:MathButtonPage /> | ||
</TabItem> | ||
</TabControl> | ||
|
||
</DockPanel> | ||
|
||
</UserControl> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters