@@ -41,17 +41,17 @@ public class BackstageTabControl : Selector, ILogicalChildSupport
41
41
/// </summary>
42
42
public string ? BackButtonUid
43
43
{
44
- get { return ( string ? ) this . GetValue ( BackButtonUidProperty ) ; }
45
- set { this . SetValue ( BackButtonUidProperty , value ) ; }
44
+ get => ( string ? ) this . GetValue ( BackButtonUidProperty ) ;
45
+ set => this . SetValue ( BackButtonUidProperty , value ) ;
46
46
}
47
47
48
48
/// <summary>
49
49
/// Gets or sets the margin which is used to render selected content.
50
50
/// </summary>
51
51
public Thickness SelectedContentMargin
52
52
{
53
- get { return ( Thickness ) this . GetValue ( SelectedContentMarginProperty ) ; }
54
- set { this . SetValue ( SelectedContentMarginProperty , value ) ; }
53
+ get => ( Thickness ) this . GetValue ( SelectedContentMarginProperty ) ;
54
+ set => this . SetValue ( SelectedContentMarginProperty , value ) ;
55
55
}
56
56
57
57
/// <summary>Identifies the <see cref="SelectedContentMargin"/> dependency property.</summary>
@@ -70,8 +70,8 @@ public Thickness SelectedContentMargin
70
70
[ DesignerSerializationVisibility ( DesignerSerializationVisibility . Hidden ) ]
71
71
public object ? SelectedContent
72
72
{
73
- get { return this . GetValue ( SelectedContentProperty ) ; }
74
- internal set { this . SetValue ( SelectedContentPropertyKey , value ) ; }
73
+ get => this . GetValue ( SelectedContentProperty ) ;
74
+ internal set => this . SetValue ( SelectedContentPropertyKey , value ) ;
75
75
}
76
76
77
77
/// <summary>Identifies the <see cref="ContentStringFormat"/> dependency property.</summary>
@@ -103,63 +103,39 @@ public object? SelectedContent
103
103
/// </summary>
104
104
public string ? ContentStringFormat
105
105
{
106
- get
107
- {
108
- return ( string ? ) this . GetValue ( ContentStringFormatProperty ) ;
109
- }
106
+ get => ( string ? ) this . GetValue ( ContentStringFormatProperty ) ;
110
107
111
- set
112
- {
113
- this . SetValue ( ContentStringFormatProperty , value ) ;
114
- }
108
+ set => this . SetValue ( ContentStringFormatProperty , value ) ;
115
109
}
116
110
117
111
/// <summary>
118
112
/// Gets or sets the <see cref="DataTemplate"/> which should be used for the content
119
113
/// </summary>
120
114
public DataTemplate ? ContentTemplate
121
115
{
122
- get
123
- {
124
- return ( DataTemplate ? ) this . GetValue ( ContentTemplateProperty ) ;
125
- }
116
+ get => ( DataTemplate ? ) this . GetValue ( ContentTemplateProperty ) ;
126
117
127
- set
128
- {
129
- this . SetValue ( ContentTemplateProperty , value ) ;
130
- }
118
+ set => this . SetValue ( ContentTemplateProperty , value ) ;
131
119
}
132
120
133
121
/// <summary>
134
122
/// Gets or sets the <see cref="ContentTemplateSelector"/> which should be used for the content
135
123
/// </summary>
136
124
public DataTemplateSelector ? ContentTemplateSelector
137
125
{
138
- get
139
- {
140
- return ( DataTemplateSelector ? ) this . GetValue ( ContentTemplateSelectorProperty ) ;
141
- }
126
+ get => ( DataTemplateSelector ? ) this . GetValue ( ContentTemplateSelectorProperty ) ;
142
127
143
- set
144
- {
145
- this . SetValue ( ContentTemplateSelectorProperty , value ) ;
146
- }
128
+ set => this . SetValue ( ContentTemplateSelectorProperty , value ) ;
147
129
}
148
130
149
131
/// <summary>
150
132
/// Get or sets the string format for the selected content.
151
133
/// </summary>
152
134
public string ? SelectedContentStringFormat
153
135
{
154
- get
155
- {
156
- return ( string ? ) this . GetValue ( SelectedContentStringFormatProperty ) ;
157
- }
136
+ get => ( string ? ) this . GetValue ( SelectedContentStringFormatProperty ) ;
158
137
159
- internal set
160
- {
161
- this . SetValue ( SelectedContentStringFormatPropertyKey , value ) ;
162
- }
138
+ internal set => this . SetValue ( SelectedContentStringFormatPropertyKey , value ) ;
163
139
}
164
140
165
141
/// <summary>
@@ -168,15 +144,9 @@ internal set
168
144
[ DesignerSerializationVisibility ( DesignerSerializationVisibility . Hidden ) ]
169
145
public DataTemplate ? SelectedContentTemplate
170
146
{
171
- get
172
- {
173
- return ( DataTemplate ? ) this . GetValue ( SelectedContentTemplateProperty ) ;
174
- }
147
+ get => ( DataTemplate ? ) this . GetValue ( SelectedContentTemplateProperty ) ;
175
148
176
- internal set
177
- {
178
- this . SetValue ( SelectedContentTemplatePropertyKey , value ) ;
179
- }
149
+ internal set => this . SetValue ( SelectedContentTemplatePropertyKey , value ) ;
180
150
}
181
151
182
152
/// <summary>
@@ -185,15 +155,9 @@ internal set
185
155
[ DesignerSerializationVisibility ( DesignerSerializationVisibility . Hidden ) ]
186
156
public DataTemplateSelector ? SelectedContentTemplateSelector
187
157
{
188
- get
189
- {
190
- return ( DataTemplateSelector ? ) this . GetValue ( SelectedContentTemplateSelectorProperty ) ;
191
- }
158
+ get => ( DataTemplateSelector ? ) this . GetValue ( SelectedContentTemplateSelectorProperty ) ;
192
159
193
- internal set
194
- {
195
- this . SetValue ( SelectedContentTemplateSelectorPropertyKey , value ) ;
196
- }
160
+ internal set => this . SetValue ( SelectedContentTemplateSelectorPropertyKey , value ) ;
197
161
}
198
162
199
163
#region ItemsPanelMinWidth
@@ -206,8 +170,8 @@ internal set
206
170
/// </summary>
207
171
public double ItemsPanelMinWidth
208
172
{
209
- get { return ( double ) this . GetValue ( ItemsPanelMinWidthProperty ) ; }
210
- set { this . SetValue ( ItemsPanelMinWidthProperty , value ) ; }
173
+ get => ( double ) this . GetValue ( ItemsPanelMinWidthProperty ) ;
174
+ set => this . SetValue ( ItemsPanelMinWidthProperty , value ) ;
211
175
}
212
176
213
177
#endregion
@@ -219,8 +183,8 @@ public double ItemsPanelMinWidth
219
183
/// </summary>
220
184
public Brush ? ItemsPanelBackground
221
185
{
222
- get { return ( Brush ? ) this . GetValue ( ItemsPanelBackgroundProperty ) ; }
223
- set { this . SetValue ( ItemsPanelBackgroundProperty , value ) ; }
186
+ get => ( Brush ? ) this . GetValue ( ItemsPanelBackgroundProperty ) ;
187
+ set => this . SetValue ( ItemsPanelBackgroundProperty , value ) ;
224
188
}
225
189
226
190
/// <summary>Identifies the <see cref="ItemsPanelBackground"/> dependency property.</summary>
@@ -235,8 +199,8 @@ public Brush? ItemsPanelBackground
235
199
[ DesignerSerializationVisibility ( DesignerSerializationVisibility . Hidden ) ]
236
200
public Backstage ? ParentBackstage
237
201
{
238
- get { return ( Backstage ? ) this . GetValue ( ParentBackstageProperty ) ; }
239
- set { this . SetValue ( ParentBackstageProperty , value ) ; }
202
+ get => ( Backstage ? ) this . GetValue ( ParentBackstageProperty ) ;
203
+ set => this . SetValue ( ParentBackstageProperty , value ) ;
240
204
}
241
205
242
206
/// <summary>Identifies the <see cref="ParentBackstage"/> dependency property.</summary>
@@ -248,8 +212,8 @@ public Backstage? ParentBackstage
248
212
/// </summary>
249
213
public bool IsWindowSteeringHelperEnabled
250
214
{
251
- get { return ( bool ) this . GetValue ( IsWindowSteeringHelperEnabledProperty ) ; }
252
- set { this . SetValue ( IsWindowSteeringHelperEnabledProperty , BooleanBoxes . Box ( value ) ) ; }
215
+ get => ( bool ) this . GetValue ( IsWindowSteeringHelperEnabledProperty ) ;
216
+ set => this . SetValue ( IsWindowSteeringHelperEnabledProperty , BooleanBoxes . Box ( value ) ) ;
253
217
}
254
218
255
219
/// <summary>Identifies the <see cref="IsWindowSteeringHelperEnabled"/> dependency property.</summary>
@@ -261,8 +225,8 @@ public bool IsWindowSteeringHelperEnabled
261
225
/// </summary>
262
226
public bool IsBackButtonVisible
263
227
{
264
- get { return ( bool ) this . GetValue ( IsBackButtonVisibleProperty ) ; }
265
- set { this . SetValue ( IsBackButtonVisibleProperty , BooleanBoxes . Box ( value ) ) ; }
228
+ get => ( bool ) this . GetValue ( IsBackButtonVisibleProperty ) ;
229
+ set => this . SetValue ( IsBackButtonVisibleProperty , BooleanBoxes . Box ( value ) ) ;
266
230
}
267
231
268
232
/// <summary>Identifies the <see cref="IsBackButtonVisible"/> dependency property.</summary>
0 commit comments