We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 951587b commit edd464aCopy full SHA for edd464a
src/CommunityToolkit.Maui.MediaElement/Primitives/CustomTransportControls.windows.cs
@@ -17,10 +17,9 @@ protected override void OnApplyTemplate()
17
{
18
base.OnApplyTemplate();
19
20
- var temp = GetTemplateChild("FullWindowButton") as AppBarButton;
21
- if (temp is not null)
+ if (GetTemplateChild("FullWindowButton") is AppBarButton appBarButton)
22
23
- FullScreenButton = temp;
+ FullScreenButton = appBarButton;
24
FullScreenButton.Visibility = Microsoft.UI.Xaml.Visibility.Visible;
25
OnTemplateLoaded?.Invoke(this, EventArgs.Empty);
26
FullScreenButton.Click += FullScreenButton_Click;
0 commit comments