@itgood

При добавлении mediaelement не компилируется проект?

добавляю mediaelement и при сборке ошибка System.Reflection.TargetInvocationException: 'Exception has been thrown by the target of an invocation.'
без медиа элемента все ок
<?xml version="1.0" encoding="utf-8" ?>
<ContentPage xmlns="http://xamarin.com/schemas/2014/forms"
             xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
             xmlns:d="http://xamarin.com/schemas/2014/forms/design"
             xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
             mc:Ignorable="d"
             x:Class="App2.MainPage">
    <ContentPage.Resources>
        <StyleSheet Source="/Stylesheet1.css" />
    </ContentPage.Resources>

    <Grid >
      
        <Grid.ColumnDefinitions>
            <ColumnDefinition/>
            <ColumnDefinition/>
        </Grid.ColumnDefinitions>
        <Grid.RowDefinitions>
            <RowDefinition/>
            <RowDefinition Height="40"/>
        </Grid.RowDefinitions>
        




            <ListView ItemSelected="Menu_ItemSelected" Grid.Row="0" Grid.Column="0" StyleClass="ListView"  x:Name="lstv">

            </ListView>


        <MediaElement Grid.Column="1" Grid.Row="0" x:Name="mediaSource" AutoPlay="True" ShowsPlaybackControls="True"  VerticalOptions="FillAndExpand" />

        <Button Clicked="s_Clicked" Grid.Row="1" Grid.Column="1" BackgroundColor="Transparent" ImageSource="https://icon-icons.com/icons2/1509/PNG/32/search_104498.png"/>

            <Entry x:Name="search_output" Grid.Column="0" Grid.Row="1" VerticalOptions="End"   Text="" />

        

       
    </Grid>

</ContentPage>
  • Вопрос задан
  • 62 просмотра
Пригласить эксперта
Ваш ответ на вопрос

Войдите, чтобы написать ответ

Войти через центр авторизации
Похожие вопросы