Click here to Skip to main content
15,920,508 members
Home / Discussions / WPF
   

WPF

 
GeneralRe: WPF perfomance Pin
afsal qureshi28-Oct-10 5:09
afsal qureshi28-Oct-10 5:09 
GeneralRe: WPF perfomance Pin
Simon_Whale28-Oct-10 5:15
Simon_Whale28-Oct-10 5:15 
GeneralRe: WPF perfomance Pin
RugbyLeague28-Oct-10 5:23
RugbyLeague28-Oct-10 5:23 
GeneralRe: WPF perfomance Pin
afsal qureshi28-Oct-10 5:44
afsal qureshi28-Oct-10 5:44 
GeneralRe: WPF perfomance Pin
AspDotNetDev3-Nov-10 7:03
protectorAspDotNetDev3-Nov-10 7:03 
AnswerRe: WPF perfomance Pin
Pete O'Hanlon28-Oct-10 7:13
mvePete O'Hanlon28-Oct-10 7:13 
AnswerRe: WPF perfomance Pin
venugopalm1-Nov-10 18:46
venugopalm1-Nov-10 18:46 
AnswerRe: WPF perfomance Pin
Nish Nishant3-Nov-10 9:38
sitebuilderNish Nishant3-Nov-10 9:38 
QuestionAccordion won't access theme Pin
tronix0126-Oct-10 22:08
tronix0126-Oct-10 22:08 
AnswerRe: Accordion won't access theme Pin
tronix0128-Oct-10 5:08
tronix0128-Oct-10 5:08 
QuestionIValueConverter, xaml problem Pin
marca29226-Oct-10 22:06
marca29226-Oct-10 22:06 
AnswerRe: IValueConverter, xaml problem Pin
Pete O'Hanlon26-Oct-10 22:14
mvePete O'Hanlon26-Oct-10 22:14 
GeneralRe: IValueConverter, xaml problem Pin
Abhinav S27-Oct-10 0:06
Abhinav S27-Oct-10 0:06 
GeneralRe: IValueConverter, xaml problem Pin
Pete O'Hanlon27-Oct-10 0:32
mvePete O'Hanlon27-Oct-10 0:32 
GeneralRe: IValueConverter, xaml problem Pin
Abhinav S27-Oct-10 0:39
Abhinav S27-Oct-10 0:39 
AnswerRe: IValueConverter, xaml problem Pin
venugopalm1-Nov-10 18:51
venugopalm1-Nov-10 18:51 
AnswerRe: IValueConverter, xaml problem Pin
AspDotNetDev3-Nov-10 7:05
protectorAspDotNetDev3-Nov-10 7:05 
QuestionItems in listbox Pin
CrafterIt26-Oct-10 3:16
CrafterIt26-Oct-10 3:16 
AnswerRe: Items in listbox Pin
Amar Chaudhary26-Oct-10 3:55
Amar Chaudhary26-Oct-10 3:55 
AnswerRe: Items in listbox Pin
Abhinav S26-Oct-10 5:50
Abhinav S26-Oct-10 5:50 
GeneralRe: Items in listbox Pin
Amar Chaudhary26-Oct-10 6:25
Amar Chaudhary26-Oct-10 6:25 
AnswerRe: Items in listbox Pin
venugopalm1-Nov-10 18:55
venugopalm1-Nov-10 18:55 
GeneralRe: Items in listbox Pin
CrafterIt9-Nov-10 22:57
CrafterIt9-Nov-10 22:57 
Thanks for the answer, i'm new to silverlight so could you help me out to get the hiddenID value?

this is my listbox with the datatemplate

The listbox is loaded with many different items, the header=hyperlink does not have unique contents.

What i want is to pass the current HiddenID that correspons to the hyperlink

Ex:
hiddenID = 34
Hyperlink = "Recent events"
Content = "short description"

when i press "Recent events" and trigger the hyperlinkbutton event i want to be able to get the value from hiddenID

<ListBox x:Name="ListboxNews" ItemTemplate="{StaticResource NewsTemplate}" ItemsSource="{Binding _News}" Margin="8,38,8,8" Opacity="1" BorderThickness="0" Background="White" />

<DataTemplate x:Key="NewsTemplate">
			<Grid Background="White" HorizontalAlignment="Left" Height="59" VerticalAlignment="Top" Width="265">
				<HyperlinkButton x:Name="NewsHyperLink" Content="{Binding Header}" FontSize="18.667" FontWeight="Bold" FontFamily="/StartPage;component/Fonts/Fonts.zip#Calibri" Click="HyperlinkButton_Click" Background="{x:Null}" HorizontalAlignment="Left" VerticalAlignment="Top" d:LayoutOverrides="HorizontalAlignment, VerticalAlignment" Margin="10,0,0,0"/>		
				<TextBlock x:Name="Content" Text="{Binding Content}" TextWrapping="Wrap" Width="265" FontFamily="/StartPage;component/Fonts/Fonts.zip#Calibri" FontSize="16" Foreground="Black" HorizontalAlignment="Left" VerticalAlignment="Top" Margin="12,23,0,0" />
				<TextBlock x:Name="HiddenID" Text="{Binding NewsID}" Width="20" VerticalAlignment="Top" d:LayoutOverrides="VerticalAlignment" FontSize="16" HorizontalAlignment="Left" Margin="-2,0,0,0" />                         
			</Grid>
		</DataTemplate>	

GeneralRe: Items in listbox Pin
venugopalm10-Nov-10 1:33
venugopalm10-Nov-10 1:33 
GeneralRe: Items in listbox Pin
CrafterIt10-Nov-10 2:20
CrafterIt10-Nov-10 2:20 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.