File tree Expand file tree Collapse file tree 2 files changed +31
-4
lines changed Expand file tree Collapse file tree 2 files changed +31
-4
lines changed Original file line number Diff line number Diff line change
1
+ <Styles xmlns =" https://github.com/avaloniaui" xmlns : x =" http://schemas.microsoft.com/winfx/2006/xaml" >
2
+ <Design .PreviewWith>
3
+ <Border Padding =" 20" >
4
+ <!-- Add Controls for Previewer Here -->
5
+ </Border >
6
+ </Design .PreviewWith>
7
+
8
+ <Style Selector =" TabControl > TabItem:nth-child(1)" >
9
+ <Setter Property =" Margin" Value =" 30 0 0 0" />
10
+ </Style >
11
+ </Styles >
Original file line number Diff line number Diff line change 12
12
<Design .DataContext>
13
13
<vm : DataPageViewModel />
14
14
</Design .DataContext>
15
+ <UserControl .Styles>
16
+ <StyleInclude Source =" /Styles/TabControlWithSpace.axaml" />
17
+ </UserControl .Styles>
15
18
<Grid >
16
19
<TabControl ItemsSource =" {Binding TabList}" SelectedIndex =" {Binding SelectedTabIndex}" >
17
20
<TabControl .ItemTemplate>
47
50
</TabControl >
48
51
49
52
<Button
50
- HorizontalAlignment =" Stretch"
51
- VerticalAlignment =" Bottom"
52
- Command =" {Binding AddTabItemCommand}"
53
- Content =" ADD" />
53
+ Width =" 30"
54
+ Height =" 30"
55
+ MinWidth =" 0"
56
+ MinHeight =" 0"
57
+ Padding =" 0"
58
+ HorizontalAlignment =" Left"
59
+ VerticalAlignment =" Top" >
60
+ <Button .Flyout>
61
+ <Flyout Placement =" Bottom" >
62
+ <StackPanel Width =" 200" Height =" 200" >
63
+ <TextBlock Text =" 1213123" />
64
+ <Button Command =" {Binding AddTabItemCommand}" Content =" add" />
65
+ </StackPanel >
66
+ </Flyout >
67
+ </Button .Flyout>
68
+ <TextBlock FontFamily =" {DynamicResource Phosphor}" Text ="  " />
69
+ </Button >
54
70
</Grid >
55
71
</UserControl >
You can’t perform that action at this time.
0 commit comments