Click here to Skip to main content
       

Silverlight / WPF

 
QuestionCustom Control Template for beginners Pinmemberjeffdavis870329-Jan-13 10:12 
AnswerRe: Custom Control Template for beginners PinmemberSledgeHammer0129-Jan-13 12:32 
GeneralRe: Custom Control Template for beginners Pinmemberjeffdavis870329-Jan-13 13:10 
GeneralRe: Custom Control Template for beginners PinmemberSledgeHammer0129-Jan-13 13:46 
GeneralTreeview Selection Pinmembervijilvs11629-Jan-13 0:03 
QuestionProblem With TreeViewItem Tooltip [modified] PinmemberKevin Marois26-Jan-13 16:39 
GeneralRe: Problem With TreeViewItem Tooltip PinmemberThomas Duwe29-Jan-13 2:46 
QuestionHow to get a value from treeview. Pinmemberboryborawski26-Jan-13 13:06 
Hello!
I have a treeview:
<TreeView  
    BorderBrush="Black" 
    BorderThickness="2" 
    Cursor="Hand" 
    ItemsSource="{Binding Data, UpdateSourceTrigger=PropertyChanged}" >
    <TreeView.ItemContainerStyle>
	<Style TargetType="{x:Type TreeViewItem}">
		<Setter 
                    Property="IsSelected" 
                    Value="{Binding SelectedPath, Mode=TwoWay}" />
		</Style>
    </TreeView.ItemContainerStyle>
    <TreeView.ItemTemplate>
        <HierarchicalDataTemplate 
            ItemsSource="{
                            Binding Persons, 
                            UpdateSourceTrigger=PropertyChanged}" 
            DataType="{x:Type local:Data}" >
            <Grid>
		<StackPanel Orientation="Horizontal">
    		<TextBlock x:Name="dane" Text="{Binding ID}" Margin="0,0,5,0" />
                <Button 
                    Style="{StaticResource ButtonLikeTextBlock}" 
                    Content="{Binding DataOrName}" 
                    Command="
                            {Binding 
                                    Path=DataContext.DisplayInfoCommand, 
                                    RelativeSource = {RelativeSource FindAncestor, AncestorType={x:Type Window}}}" />
								
		</StackPanel>
            </Grid>
        </HierarchicalDataTemplate>
    </TreeView.ItemTemplate>
</TreeView>
 
How can i get the ID property which is in Persons list ? How can i bind it straight to viewmodel class? Can u show sample code?
 
Greetings, Boryborawski.
QuestionConstant header and footer Pinmembercolumbos1492726-Jan-13 0:11 
AnswerRe: Constant header and footer PinmvpRichard MacCutchan26-Jan-13 1:05 
QuestionWPF.MDI Pinmembercolumbos1492725-Jan-13 9:37 
AnswerRe: WPF.MDI PinmemberAbhishek Pant25-Jan-13 10:29 
GeneralRe: WPF.MDI Pinmembercolumbos1492725-Jan-13 23:11 
GeneralRe: WPF.MDI PinmemberAbhishek Pant25-Jan-13 23:33 
AnswerRe: WPF.MDI Pinmembertram730-Nov-13 6:54 
QuestionSilverlight Dispatcher.BeginInvoke not allow thread to run more then one time [modified] PinmemberSteve Holdorf24-Jan-13 13:13 
AnswerRe: Silverlight Dispatcher.BeginInvoke not allow thread to run more then one time Pinmemberdb7uk26-Jan-13 14:11 
GeneralRe: Silverlight Dispatcher.BeginInvoke not allow thread to run more then one time [modified] PinmemberSteve Holdorf27-Jan-13 4:19 
GeneralRe: Silverlight Dispatcher.BeginInvoke not allow thread to run more then one time Pinmemberdb7uk27-Jan-13 13:44 
GeneralRe: Silverlight Dispatcher.BeginInvoke not allow thread to run more then one time [modified] PinmemberSteve Holdorf27-Jan-13 14:16 
QuestionSilverlight OOB access in Online PinmemberSugumaran s24-Jan-13 0:09 
AnswerRe: Silverlight OOB access in Online PinmvpRichard MacCutchan24-Jan-13 2:50 
GeneralRe: Silverlight OOB access in Online PinmemberSugumaran s24-Jan-13 18:31 
GeneralRe: Silverlight OOB access in Online PinmvpRichard MacCutchan24-Jan-13 23:41 
GeneralRe: Silverlight OOB access in Online PinmemberSugumaran s25-Jan-13 1:36 

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

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


Advertise | Privacy | Mobile
Web03 | 2.8.141220.1 | Last Updated 18 Dec 2014
Copyright © CodeProject, 1999-2014
All Rights Reserved. Terms of Service
Layout: fixed | fluid