Expose internal property which has correct reference, as was done for WinForms.
This commit is contained in:
Родитель
c3572efe75
Коммит
4e8c9e09f3
|
@ -153,7 +153,7 @@ namespace Microsoft.Toolkit.Forms.UI.Controls
|
|||
[DesignerSerializationVisibility(DesignerSerializationVisibility.Hidden)]
|
||||
public MediaPlayer MediaPlayer
|
||||
{
|
||||
get => UwpControl.MediaPlayer;
|
||||
get => UwpControl?.MediaPlayer;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -179,7 +179,7 @@ namespace Microsoft.Toolkit.Wpf.UI.Controls
|
|||
/// </summary>
|
||||
public MediaPlayer MediaPlayer
|
||||
{
|
||||
get => (MediaPlayer)GetValue(MediaPlayerProperty);
|
||||
get => UwpControl?.MediaPlayer;
|
||||
}
|
||||
}
|
||||
}
|
Загрузка…
Ссылка в новой задаче