Skip to content

Commit dd88696

Browse files
author
prabakaran-sangameswaran
authored
Update MainWindow.xaml
1 parent fcee713 commit dd88696

File tree

1 file changed

+17
-7
lines changed

1 file changed

+17
-7
lines changed

Samples/Pin-UnPin/MainWindow.xaml

Lines changed: 17 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
<Window x:Class="Pin_UnPin.MainWindow"
1+
<Window x:Class="Pin_UnPin.MainWindow"
22
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
33
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
44
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
@@ -39,6 +39,7 @@
3939
<Setter Property="CanClose" Value="{Binding CanClose, Mode=TwoWay}"/>
4040
<Setter Property="ShowPin" Value="{Binding ShowPin, Mode=TwoWay}"/>
4141
<Setter Property="AllowPin" Value="{Binding AllowPin, Mode=TwoWay}"/>
42+
<Setter Property="IsPinned" Value="{Binding IsPinned, Mode=TwoWay}"/>
4243
<Setter Property="CloseButtonState" Value="{Binding CloseButtonState, Mode=TwoWay}"/>
4344
</Style>
4445
</syncfusion:TabControlExt.ItemContainerStyle>
@@ -71,14 +72,15 @@
7172
<RowDefinition Height="Auto"></RowDefinition>
7273
<RowDefinition Height="Auto"></RowDefinition>
7374
<RowDefinition Height="Auto"></RowDefinition>
75+
<RowDefinition Height="Auto"></RowDefinition>
7476
</Grid.RowDefinitions>
7577
<Grid.ColumnDefinitions>
7678
<ColumnDefinition Width="*"></ColumnDefinition>
7779
<ColumnDefinition Width="*" ></ColumnDefinition>
7880
</Grid.ColumnDefinitions>
7981

8082
<TextBlock Margin="3"
81-
Text ="Enable Pin"
83+
Text ="Allow Pin"
8284
Grid.Row="0"
8385
Grid.Column="0"/>
8486
<CheckBox IsChecked="{Binding AllowPin, Mode=TwoWay}"
@@ -96,21 +98,30 @@
9698
Margin="3"/>
9799

98100
<TextBlock Margin="3"
99-
Text ="Enable Close"
101+
Text ="IsPinned "
100102
Grid.Row="2"
101103
Grid.Column="0"/>
102-
<CheckBox IsChecked="{Binding CanClose, Mode=TwoWay}"
104+
<CheckBox IsChecked="{Binding IsPinned, Mode=TwoWay}"
103105
Grid.Row="2"
104106
Grid.Column="1"
105107
Margin="3"/>
106108

107109
<TextBlock Margin="3"
108-
Text ="CloseButton visibility"
110+
Text ="Enable Close"
109111
Grid.Row="3"
110112
Grid.Column="0"/>
111-
<ComboBox SelectedItem="{Binding CloseButtonState, Mode=TwoWay}"
113+
<CheckBox IsChecked="{Binding CanClose, Mode=TwoWay}"
112114
Grid.Row="3"
113115
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"
114125
Margin="3">
115126
<Visibility>Visible</Visibility>
116127
<Visibility>Collapsed</Visibility>
@@ -119,4 +130,3 @@
119130
</GroupBox>
120131
</Grid>
121132
</Window>
122-

0 commit comments

Comments
 (0)