Hallo
Sorry for my english. Hope you understand..
I'm inexpert in WPF-XBAP (vs2010 nf4.0). I would like to create a vertical news ticker by following spec :
- News should come from db table (my db is postgresql)
- Scrolling news will be shown as hyperlink
- Every news clicked will open a window where the new's text will be showed entirely
- Manage mouse_enter and mouse_leave events in order to pause, resume the scrolling animation when mouse pointer is
entering/ leaving the news area
I started from this code found in the web :
XAML:
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
mc:Ignorable="d" designHeight="700" designWidth="1000"
Title="ContentPage1" Background="PaleGoldenrod" ShowsNavigationUI="False">
VB:
Class IndexContentPage
Public Sub New()
InitializeComponent()
AddHandler Marquee.MouseLeave, New MouseEventHandler(AddressOf Marquee_MouseLeave)
AddHandler Marquee.MouseEnter, New MouseEventHandler(AddressOf Marquee_MouseEnter)
End Sub
Private Sub Marquee_MouseLeave(ByVal sender As Object, ByVal e As MouseEventArgs)
Me.marqueestory.Resume()
End Sub
Private Sub Marquee_MouseEnter(ByVal sender As Object, ByVal e As MouseEventArgs)
Me.marqueestory.Pause()
End Sub
End Class
I'm in trouble with :
- obtain the pause of the scrolling animation
- implementing data binding of the news (from db table toward textblock) and show them as hyperlink
Anybody may help me please ?
Thanx in advance
Sorry for my english. Hope you understand..
I'm inexpert in WPF-XBAP (vs2010 nf4.0). I would like to create a vertical news ticker by following spec :
- News should come from db table (my db is postgresql)
- Scrolling news will be shown as hyperlink
- Every news clicked will open a window where the new's text will be showed entirely
- Manage mouse_enter and mouse_leave events in order to pause, resume the scrolling animation when mouse pointer is
entering/ leaving the news area
I started from this code found in the web :
XAML:
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
mc:Ignorable="d" designHeight="700" designWidth="1000"
Title="ContentPage1" Background="PaleGoldenrod" ShowsNavigationUI="False">
VB:
Class IndexContentPage
Public Sub New()
InitializeComponent()
AddHandler Marquee.MouseLeave, New MouseEventHandler(AddressOf Marquee_MouseLeave)
AddHandler Marquee.MouseEnter, New MouseEventHandler(AddressOf Marquee_MouseEnter)
End Sub
Private Sub Marquee_MouseLeave(ByVal sender As Object, ByVal e As MouseEventArgs)
Me.marqueestory.Resume()
End Sub
Private Sub Marquee_MouseEnter(ByVal sender As Object, ByVal e As MouseEventArgs)
Me.marqueestory.Pause()
End Sub
End Class
I'm in trouble with :
- obtain the pause of the scrolling animation
- implementing data binding of the news (from db table toward textblock) and show them as hyperlink
Anybody may help me please ?
Thanx in advance
Sam HobbsPosted Nov 18, 2010, 1:30 PM