Click here to Skip to main content
15,887,861 members
Home / Discussions / WPF
   

WPF

 
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 
GeneralRe: Items in listbox Pin
venugopalm10-Nov-10 3:58
venugopalm10-Nov-10 3:58 
QuestionMaintain TextBox selection despite window loosing focus? Pin
FocusedWolf23-Oct-10 11:49
FocusedWolf23-Oct-10 11:49 
AnswerRe: Maintain TextBox selection despite window loosing focus? Pin
Abhinav S23-Oct-10 17:28
Abhinav S23-Oct-10 17:28 
GeneralRe: Maintain TextBox selection despite window loosing focus? [modified] Pin
FocusedWolf23-Oct-10 19:45
FocusedWolf23-Oct-10 19:45 
GeneralRe: Maintain TextBox selection despite window loosing focus? Pin
Abhinav S23-Oct-10 22:32
Abhinav S23-Oct-10 22:32 
GeneralRe: Maintain TextBox selection despite window loosing focus? Pin
Pete O'Hanlon25-Oct-10 5:12
mvePete O'Hanlon25-Oct-10 5:12 
GeneralRe: Maintain TextBox selection despite window loosing focus? [modified] Pin
FocusedWolf26-Oct-10 11:26
FocusedWolf26-Oct-10 11:26 
QuestionWPF TreeView MultiBinding Pin
Valentine Vlasov23-Oct-10 6:47
Valentine Vlasov23-Oct-10 6:47 
QuestionHow can I load gridview using ria service in MVVM ? Pin
kimo code23-Oct-10 3:06
kimo code23-Oct-10 3:06 
QuestionOpion Poll: Pin
ProtoBytes22-Oct-10 11:05
ProtoBytes22-Oct-10 11:05 
QuestionHas any one seen a good video series on the complete proess of going from SketchFlow ProtoType -> Application? Pin
ProtoBytes22-Oct-10 11:02
ProtoBytes22-Oct-10 11:02 
QuestionI should know the answer to this question, how do you create writeablebitmap images in WPF / Silverlight 4 Pin
ProtoBytes22-Oct-10 10:57
ProtoBytes22-Oct-10 10:57 
QuestionI am using Blend Studio 4 - Designer, where is the GPU acceleration? Pin
ProtoBytes22-Oct-10 10:45
ProtoBytes22-Oct-10 10:45 
QuestionSilver Light / WPF .NET 4.0 Pin
ProtoBytes22-Oct-10 10:38
ProtoBytes22-Oct-10 10:38 
QuestionHow using dataform and WCF Pin
Coban_22-Oct-10 2:56
Coban_22-Oct-10 2:56 

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.