|
1 |
| -<UserControl xmlns="https://github.com/avaloniaui" |
2 |
| - xmlns:pages="clr-namespace:CSharpMath.Avalonia.Example.Pages" |
3 |
| - xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" |
4 |
| - x:Class="CSharpMath.Avalonia.Example.MainView" |
5 |
| - Background="{DynamicResource ThemeBackgroundBrush}" |
6 |
| - Foreground="{DynamicResource ThemeForegroundBrush}" |
7 |
| - FontSize="{DynamicResource FontSizeNormal}"> |
8 |
| - |
9 |
| - <TabControl x:Name="Sidebar" |
10 |
| - Classes="sidebar"> |
11 |
| - |
12 |
| - <TabControl.Tag> |
13 |
| - |
14 |
| - <ComboBox x:Name="Themes" |
15 |
| - DockPanel.Dock="Bottom" |
16 |
| - SelectedIndex="0" |
17 |
| - Width="100" |
18 |
| - Margin="8"> |
19 |
| - |
20 |
| - <ComboBoxItem>Light</ComboBoxItem> |
21 |
| - <ComboBoxItem>Dark</ComboBoxItem> |
22 |
| - |
23 |
| - </ComboBox> |
24 |
| - |
25 |
| - </TabControl.Tag> |
26 |
| - |
27 |
| - <TabItem Header="MathView"> |
28 |
| - <pages:MathViewPage/> |
29 |
| - </TabItem> |
30 |
| - |
31 |
| - <TabItem Header="TextView"> |
32 |
| - <pages:TextViewPage/> |
33 |
| - </TabItem> |
34 |
| - <TabItem Header="MathButton"> |
35 |
| - <pages:MathButtonPage/> |
36 |
| - </TabItem> |
37 |
| - |
38 |
| - </TabControl> |
| 1 | +<UserControl |
| 2 | + x:Class="CSharpMath.Avalonia.Example.MainView" |
| 3 | + xmlns="https://github.com/avaloniaui" |
| 4 | + xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" |
| 5 | + xmlns:pages="clr-namespace:CSharpMath.Avalonia.Example.Pages" |
| 6 | + Background="{DynamicResource ThemeBackgroundBrush}" |
| 7 | + FontSize="{DynamicResource FontSizeNormal}" |
| 8 | + Foreground="{DynamicResource ThemeForegroundBrush}"> |
| 9 | + |
| 10 | + <DockPanel> |
| 11 | + |
| 12 | + <StackPanel |
| 13 | + HorizontalAlignment="Right" |
| 14 | + DockPanel.Dock="Bottom" |
| 15 | + Orientation="Horizontal"> |
| 16 | + <RadioButton |
| 17 | + x:Name="lightThemeRbn" |
| 18 | + Margin="2,8" |
| 19 | + Padding="8,0" |
| 20 | + VerticalContentAlignment="Center" |
| 21 | + Content="Light" |
| 22 | + IsChecked="true" /> |
| 23 | + <RadioButton |
| 24 | + Margin="2,8" |
| 25 | + Padding="8,0" |
| 26 | + VerticalContentAlignment="Center" |
| 27 | + Content="Dark" /> |
| 28 | + </StackPanel> |
| 29 | + |
| 30 | + <TabControl x:Name="Sidebar" Padding="16"> |
| 31 | + <TabItem Header="MathView"> |
| 32 | + <pages:MathViewPage /> |
| 33 | + </TabItem> |
| 34 | + <TabItem Header="TextView"> |
| 35 | + <pages:TextViewPage /> |
| 36 | + </TabItem> |
| 37 | + <TabItem Header="MathButton"> |
| 38 | + <pages:MathButtonPage /> |
| 39 | + </TabItem> |
| 40 | + </TabControl> |
| 41 | + |
| 42 | + </DockPanel> |
39 | 43 |
|
40 | 44 | </UserControl>
|
0 commit comments