My first app with Windows Phone

ilan

Expert
Licensed User
Longtime User
thanx filippo, changing the background image worked for me although i had to change:

imageBrush.ImageSource = New BitmapImage(uri)

to:

imageBrush.ImageSource = New System.Windows.Media.Imaging.BitmapImage(uri)

but playing audio doesnot work, stream is not decleaired it says, maybe need to import something

but i also would like to play a mp3 file because it is background music and wav would be to big. if i choose mediaelemt from the toolbox
i can add the file to it and then auto play and it is playing but only once, i will need to find a way to loop it..
 

ilan

Expert
Licensed User
Longtime User
ok this worked for me

i am adding an media element in designer

<MediaElement x:Name="mp1" HorizontalAlignment="Right" Height="40" VerticalAlignment="Top" Width="37" RenderTransformOrigin="2.535,1.2" Margin="0,-66,-181,0" Source="/Audio/backm.mp3" Volume="1"/>


then on app start i add this:

B4X:
    Public Sub New()
        InitializeComponent()
        SupportedOrientations = SupportedPageOrientation.Portrait Or SupportedPageOrientation.Landscape
        AddHandler mp1.MediaEnded, AddressOf mp1_ended

        ' Sample code to localize the ApplicationBar
        'BuildLocalizedApplicationBar()

    End Sub
    Sub mp1_ended()
        mp1.Position = TimeSpan.Zero
        mp1.Play()
    End Sub

thank you filippo now i am one step forwoard, i hope i will finish this app before windows 20.1 comes out :D

and also sorry for asking to many questions.
 
D

Deleted member 103

Guest
Now it goes on ... :)

Windows-Phone-App: Crono-Mille-Miglia-Lite

cmm-lite.JPG
 
D

Deleted member 103

Guest
What do I have to lose?
My investment:
1) Developer-Account: 14,00 Euro
2) Windows-Phone: 80,00 Euro

The programming time I do not expect the expenses to, because one of learning time.
 
D

Deleted member 103

Guest
Sale Status in Windows Store.
Is not much but I look forward nevertheless very. :)
windows-store.JPG
 
D

Deleted member 103

Guest
Hi,

Today I got the first money from Microsoft. :)

I have already thought they had forgotten me. :rolleyes:

microsoft.JPG
 
Top