|
1 | | -<Window x:Class="Pin_UnPin.MainWindow" |
| 1 | +<Window x:Class="Pin_UnPin.MainWindow" |
2 | 2 | xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" |
3 | 3 | xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" |
4 | 4 | xmlns:d="http://schemas.microsoft.com/expression/blend/2008" |
|
39 | 39 | <Setter Property="CanClose" Value="{Binding CanClose, Mode=TwoWay}"/> |
40 | 40 | <Setter Property="ShowPin" Value="{Binding ShowPin, Mode=TwoWay}"/> |
41 | 41 | <Setter Property="AllowPin" Value="{Binding AllowPin, Mode=TwoWay}"/> |
| 42 | + <Setter Property="IsPinned" Value="{Binding IsPinned, Mode=TwoWay}"/> |
42 | 43 | <Setter Property="CloseButtonState" Value="{Binding CloseButtonState, Mode=TwoWay}"/> |
43 | 44 | </Style> |
44 | 45 | </syncfusion:TabControlExt.ItemContainerStyle> |
|
71 | 72 | <RowDefinition Height="Auto"></RowDefinition> |
72 | 73 | <RowDefinition Height="Auto"></RowDefinition> |
73 | 74 | <RowDefinition Height="Auto"></RowDefinition> |
| 75 | + <RowDefinition Height="Auto"></RowDefinition> |
74 | 76 | </Grid.RowDefinitions> |
75 | 77 | <Grid.ColumnDefinitions> |
76 | 78 | <ColumnDefinition Width="*"></ColumnDefinition> |
77 | 79 | <ColumnDefinition Width="*" ></ColumnDefinition> |
78 | 80 | </Grid.ColumnDefinitions> |
79 | 81 |
|
80 | 82 | <TextBlock Margin="3" |
81 | | - Text ="Enable Pin" |
| 83 | + Text ="Allow Pin" |
82 | 84 | Grid.Row="0" |
83 | 85 | Grid.Column="0"/> |
84 | 86 | <CheckBox IsChecked="{Binding AllowPin, Mode=TwoWay}" |
|
96 | 98 | Margin="3"/> |
97 | 99 |
|
98 | 100 | <TextBlock Margin="3" |
99 | | - Text ="Enable Close" |
| 101 | + Text ="IsPinned " |
100 | 102 | Grid.Row="2" |
101 | 103 | Grid.Column="0"/> |
102 | | - <CheckBox IsChecked="{Binding CanClose, Mode=TwoWay}" |
| 104 | + <CheckBox IsChecked="{Binding IsPinned, Mode=TwoWay}" |
103 | 105 | Grid.Row="2" |
104 | 106 | Grid.Column="1" |
105 | 107 | Margin="3"/> |
106 | 108 |
|
107 | 109 | <TextBlock Margin="3" |
108 | | - Text ="CloseButton visibility" |
| 110 | + Text ="Enable Close" |
109 | 111 | Grid.Row="3" |
110 | 112 | Grid.Column="0"/> |
111 | | - <ComboBox SelectedItem="{Binding CloseButtonState, Mode=TwoWay}" |
| 113 | + <CheckBox IsChecked="{Binding CanClose, Mode=TwoWay}" |
112 | 114 | Grid.Row="3" |
113 | 115 | Grid.Column="1" |
| 116 | + Margin="3"/> |
| 117 | + |
| 118 | + <TextBlock Margin="3" |
| 119 | + Text ="CloseButton visibility" |
| 120 | + Grid.Row="4" |
| 121 | + Grid.Column="0"/> |
| 122 | + <ComboBox SelectedItem="{Binding CloseButtonState, Mode=TwoWay}" |
| 123 | + Grid.Row="4" |
| 124 | + Grid.Column="1" |
114 | 125 | Margin="3"> |
115 | 126 | <Visibility>Visible</Visibility> |
116 | 127 | <Visibility>Collapsed</Visibility> |
|
119 | 130 | </GroupBox> |
120 | 131 | </Grid> |
121 | 132 | </Window> |
122 | | - |
|
0 commit comments