Hi All
New here, kind of hoping someone can help me out figure out my problem.
I have a UI made by a colleague and I trying to get the coding part done myself.
But honestly I have never worked with WPF/XAML so I am reaching a bit high
The code is what i am trying to get added to my xaml.
<Image x:Name="alarmImage" Source="resources/image/logo.png" Visibility="Collapsed" />
<Window.Resources>
<MediaPlayer x:Key="alarmSound" Source="resources/audio/buzzer.wav"/>
</Window.Resources>
But wherever I put this code it will break the entire UI(canvas goes blank).
Can anybody perhaps shed some light on what to pay attention to, since it clear you're not just adding this somewhere at the end.
Thanks
I would post my XAML but it's a pretty big with 2000 lines.
Don't want to break any rules on my first post.
New here, kind of hoping someone can help me out figure out my problem.
I have a UI made by a colleague and I trying to get the coding part done myself.
But honestly I have never worked with WPF/XAML so I am reaching a bit high
The code is what i am trying to get added to my xaml.
<Image x:Name="alarmImage" Source="resources/image/logo.png" Visibility="Collapsed" />
<Window.Resources>
<MediaPlayer x:Key="alarmSound" Source="resources/audio/buzzer.wav"/>
</Window.Resources>
But wherever I put this code it will break the entire UI(canvas goes blank).
Can anybody perhaps shed some light on what to pay attention to, since it clear you're not just adding this somewhere at the end.
Thanks
I would post my XAML but it's a pretty big with 2000 lines.
Don't want to break any rules on my first post.