473,509 Members | 2,951 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Cannot implicitly convert type 'object' to. An explicit conversion exists (are you m

1 New Member
Hi guys I am working on a Project and i got into an issue i Cannot solve it by myself.So if anyone know what should i do To Fix that Please help me .

This is My problem




Severity Code Description Project File Line Suppression State
Error CS0266 Cannot implicitly convert type 'object' to 'Windows.UI.Xaml.Input.PointerEventHandler'. An explicit conversion exists (are you missing a cast?)










Expand|Select|Wrap|Line Numbers
  1. <Page
  2.     x:Class="App5.MainPage"
  3.     xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
  4.     xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
  5.     xmlns:local="using:App5"
  6.     xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
  7.     xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
  8.     mc:Ignorable="d" Height="789.943" Width="1358.686">
  9.  
  10.     <Grid x:Name="Background_Grid" Margin="0,0,10,0">
  11.         <Grid.Background>
  12.             <ImageBrush ImageSource="Assets/Blue_Background.jpg" Stretch="Fill"/>
  13.         </Grid.Background>
  14.         <Image x:Name="image" HorizontalAlignment="Left" Height="100" Margin="161,658,0,0" VerticalAlignment="Top" Width="100"/>
  15.         <Image x:Name="image_Copy" HorizontalAlignment="Left" Height="100" Margin="161,658,0,0" VerticalAlignment="Top" Width="100"/>
  16.         <Image x:Name="image_Copy1" HorizontalAlignment="Left" Height="100" Margin="190,658,0,0" VerticalAlignment="Top" Width="100"/>
  17.         <Image x:Name="Ane_Jpg1" HorizontalAlignment="Left" Height="100" Margin="261,658,0,0" VerticalAlignment="Top" Width="71" Source="Assets/Ao-no-Exorcist.jpg" PointerEntered="OnSelectPictureHandler"/>
  18.         <Image x:Name="Aot_Jpg" HorizontalAlignment="Left" Height="100" Margin="362,658,0,0" VerticalAlignment="Top" Width="71" RenderTransformOrigin="-2.217,-0.924" Source="Assets/Attack-On-Titan.jpg" PointerEntered="OnSelectPictureHandler"/>
  19.         <Image x:Name="Ane_Jpg" HorizontalAlignment="Left" Height="100" Margin="458,658,0,0" VerticalAlignment="Top" Width="71" Source="Assets/Ao-no-Exorcist.jpg" PointerEntered="OnSelectPictureHandler"/>
  20.         <Image x:Name="Bleach_Jpg" HorizontalAlignment="Left" Height="100" Margin="563,658,0,0" VerticalAlignment="Top" Width="71" RenderTransformOrigin="0.674,-0.558" Source="Assets/Bleach.jpg" PointerEntered="OnSelectPictureHandler"/>
  21.         <Image x:Name="Bnh_Jpg" HorizontalAlignment="Left" Height="100" Margin="678,658,0,0" VerticalAlignment="Top" Width="71" RenderTransformOrigin="1.496,0.858" Source="Assets/Boku-No-Hero.jpg" PointerEntered="OnSelectPictureHandler"/>
  22.         <TextBlock x:Name="Title" HorizontalAlignment="Left" Margin="413,32,0,0" TextWrapping="Wrap" VerticalAlignment="Top" Height="218" Width="637" FontSize="48" TextAlignment="Center">
  23.             <TextBlock.Foreground>
  24.                 <LinearGradientBrush EndPoint="0.5,1" StartPoint="0.5,0">
  25.                     <GradientStop Color="Black" Offset="0"/>
  26.                     <GradientStop Color="#FFECF0EC" Offset="1"/>
  27.                 </LinearGradientBrush>
  28.             </TextBlock.Foreground>
  29.             <Run Text="Enjoy the Presentation "/>
  30.             <LineBreak/>
  31.             <Run Text="And The Music As Well"/>
  32.             <LineBreak/>
  33.             <Run Text=":)"/>
  34.         </TextBlock>
  35.         <Image x:Name="Dbs_Jpg1" HorizontalAlignment="Left" Height="100" Margin="798,658,0,0" VerticalAlignment="Top" Width="71" Source="Assets/DBS.jpg" PointerEntered="OnSelectPictureHandler"/>
  36.         <Image x:Name="image1" HorizontalAlignment="Left" Height="100" Margin="908,658,0,0" VerticalAlignment="Top" Width="71" Source="Assets/Naruto.jpg" PointerEntered="OnSelectPictureHandler"/>
  37.         <Image x:Name="TG_Jpg" HorizontalAlignment="Left" Height="100" Margin="1011,658,0,0" VerticalAlignment="Top" Width="71" RenderTransformOrigin="-0.05,0.02" Source="Assets/Tokyo-Ghoul.jpg" PointerEntered="OnSelectPictureHandler"/>
  38.         <MediaElement x:Name="Song_1" HorizontalAlignment="Left" Height="100" Margin="1150,537,0,0" VerticalAlignment="Top" Width="100" Source="Assets/K - Project  -  Hope Of Mornin.mp3" RealTimePlayback="True" AutoPlay="False" PlayToPreferredSourceUri="Assets/U2 - Raised By Wolves (Official Fan Video).mp3" AreTransportControlsEnabled="True" PosterSource="Assets/Attack-On-Titan.jpg"/>
  39.         <MediaElement x:Name="mediaElement" HorizontalAlignment="Left" Height="100" Margin="1150,397,0,0" VerticalAlignment="Top" Width="100" Source="Assets/U2 - Raised By Wolves (Official Fan Video).mp3" AreTransportControlsEnabled="True" AutoPlay="False" PosterSource="Assets/Tokyo-Ghoul.jpg"/>
  40.  
  41.     </Grid>
  42. </Page>
Oct 20 '17 #1
1 3405
Frinavale
9,735 Recognized Expert Moderator Expert
Do you have a OnSelectPictureHandler implemented?
Have you considered using animations and tirggers for mouse over events instead?
Oct 27 '17 #2

Sign in to post your reply or Sign up for a free account.

Similar topics

3
14914
by: Anita C | last post by:
I have the foll. code to update the value of an attribute: xmlDocument.Load("abc.xml"); XmlAttribute xmlAttrib = xmlDocument.SelectSingleNode(root/web/theme/@desc); xmlAttrib.Value =...
1
4668
by: Svyatoslav | last post by:
Hi, I have a problem with XmlNodes and my stack. It looks something like this: //declarations XmlNode node, new_node; Stack MyStack = new Stack(); //code MyStack.Push(node);
3
51649
by: Michael Schindler | last post by:
frmHauptmenue.IntMandantID = (dataGridFiBuMandant); Why? What can I do? possible solution is, I convert this: Convert.tostring(frmHauptmenue.IntMandantID) = (dataGridFiBuMandant.tostring());...
22
27839
by: Christoph Boget | last post by:
I am getting an error (a few among many) for the following lines of code: retval.BrokerName = (( curRow == System.DBNull.Value ) ? SqlString.Null : (string)curRow ); retval.BrokerGroupId = ((...
2
6716
by: Patrick Olurotimi Ige | last post by:
When i convert:- this code from VB to C# Why do i get error "Cannot implicitly convert type 'object' to 'bool' VB --- If cmdcommand.Parameters("ReturnValue").Value = 1 Then lblStatus.Text =...
9
10510
by: Andy Sutorius | last post by:
Hi, I am receiving the error when compiling the project, "cannot implicitly convert type object to string". The error points to this line of code and underlines the dtrRecipient:...
3
6041
by: Patrick Olurotimi Ige | last post by:
compiling the code below i get the error:- Cannot implicitly convert type 'object'to 'System.Xml.XmlDocument' I'm getting the error on this line:- myXml.Document =...
1
8665
by: alex21 | last post by:
Ok i am trying to use a Linq query to access a dictionary. public static Dictionary<string, Client> Clients = new Dictionary<string, Client>();Using this Linq query: IEnumerable<Staff> loginquery...
4
25344
by: clflyer | last post by:
I have a small problem. I'm pretty much a newbie to C# coming out of VB.Net. I have a windows form that has a GroupBox named grpSoldTo. I want to be able to clear all the textboxes and comboxes...
3
3011
by: sappyjosh | last post by:
public void Update_Stock(Inseed Is) { if (con.State == ConnectionState.Open) { con.Close(); } try { ...
0
7237
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
7347
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
1
7073
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
7506
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
5656
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
4732
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
3207
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
1571
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
1
779
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.