Click here to Skip to main content
15,914,905 members
Home / Discussions / WPF
   

WPF

 
AnswerRe: WPF ClickOnce eploy Question Pin
Wayne Gaylard7-Nov-13 20:05
professionalWayne Gaylard7-Nov-13 20:05 
QuestionHyperlink As TreeView Node Binding Problem Pin
Kevin Marois6-Nov-13 9:51
professionalKevin Marois6-Nov-13 9:51 
My TreeView:

<controls:TreeViewEx BorderThickness="0"
                        Margin="5" 
                        ItemsSource="{Binding Nodes}"
                        IsManipulationEnabled ="True"
                        Visibility="{Binding ShowTree, Converter={StaticResource visibilityConverter}}">

    <controls:TreeViewEx.Resources>
        <SolidColorBrush Color="Transparent" x:Key="{x:Static SystemColors.HighlightBrushKey}"/>
    </controls:TreeViewEx.Resources>

</controls:TreeViewEx>


and the HierarchicalDataTemplate:

<HierarchicalDataTemplate DataType="{x:Type models:JobSummaryModel}"
                            ItemsSource="{Binding Path=Nodes}">
    <Grid Margin="2">

        <Grid.ColumnDefinitions>
            <ColumnDefinition Width="Auto"/>
            <ColumnDefinition Width="Auto"/>
        </Grid.ColumnDefinitions>
                    
        <controls:TextBlockEx Grid.Column="1"
                                FontSize="12">
                        
            <Hyperlink Style="{StaticResource linkStyle}"
                        Command="{Binding SelectedNodeCommand}">
                <TextBlock Text="{Binding Caption}"/>
            </Hyperlink>
                        
        </controls:TextBlockEx>
                    
    </Grid>
</HierarchicalDataTemplate>


I'm getting a binding error in the outout window. The SelectedNodeCommand is on the ViewModel. How do I bind the hyperlink to it?

Thank you
If it's not broken, fix it until it is

AnswerRe: Hyperlink As TreeView Node Binding Problem Pin
SledgeHammer016-Nov-13 10:02
SledgeHammer016-Nov-13 10:02 
GeneralRe: Hyperlink As TreeView Node Binding Problem Pin
Kevin Marois6-Nov-13 10:03
professionalKevin Marois6-Nov-13 10:03 
GeneralRe: Hyperlink As TreeView Node Binding Problem Pin
Pete O'Hanlon6-Nov-13 10:30
mvePete O'Hanlon6-Nov-13 10:30 
GeneralRe: Hyperlink As TreeView Node Binding Problem Pin
SledgeHammer016-Nov-13 10:38
SledgeHammer016-Nov-13 10:38 
GeneralRe: Hyperlink As TreeView Node Binding Problem Pin
Kevin Marois6-Nov-13 11:18
professionalKevin Marois6-Nov-13 11:18 
GeneralRe: Hyperlink As TreeView Node Binding Problem Pin
SledgeHammer016-Nov-13 11:29
SledgeHammer016-Nov-13 11:29 
GeneralRe: Hyperlink As TreeView Node Binding Problem Pin
Kevin Marois6-Nov-13 11:36
professionalKevin Marois6-Nov-13 11:36 
QuestionHow to create dynamically textbox on UI in MVVVM Pin
Ashfaque Hussain4-Nov-13 4:56
Ashfaque Hussain4-Nov-13 4:56 
AnswerRe: How to creates dynamically textbox on UI in MVVVM Pin
Mycroft Holmes4-Nov-13 11:45
professionalMycroft Holmes4-Nov-13 11:45 
GeneralRe: How to creates dynamically textbox on UI in MVVVM Pin
Ashfaque Hussain6-Nov-13 23:32
Ashfaque Hussain6-Nov-13 23:32 
GeneralRe: How to creates dynamically textbox on UI in MVVVM Pin
Pete O'Hanlon6-Nov-13 23:56
mvePete O'Hanlon6-Nov-13 23:56 
GeneralRe: How to creates dynamically textbox on UI in MVVVM Pin
Ashfaque Hussain7-Nov-13 19:30
Ashfaque Hussain7-Nov-13 19:30 
GeneralRe: How to creates dynamically textbox on UI in MVVVM Pin
Pete O'Hanlon7-Nov-13 21:05
mvePete O'Hanlon7-Nov-13 21:05 
GeneralRe: How to creates dynamically textbox on UI in MVVVM Pin
Ashfaque Hussain7-Nov-13 23:16
Ashfaque Hussain7-Nov-13 23:16 
QuestionWPF inbuilt form Pin
shers30-Oct-13 22:44
shers30-Oct-13 22:44 
AnswerRe: WPF inbuilt form Pin
GuyThiebaut31-Oct-13 3:46
professionalGuyThiebaut31-Oct-13 3:46 
AnswerRe: WPF inbuilt form Pin
_Maxxx_31-Oct-13 23:52
professional_Maxxx_31-Oct-13 23:52 
QuestionHow to bind textboxes text to the ViewModel Pin
Ashfaque Hussain30-Oct-13 1:43
Ashfaque Hussain30-Oct-13 1:43 
AnswerRe: How to bind textboxes text to the ViewModel Pin
Ashfaque Hussain30-Oct-13 2:23
Ashfaque Hussain30-Oct-13 2:23 
GeneralRe: How to bind textboxes text to the ViewModel Pin
David C# Hobbyist.30-Oct-13 4:47
professionalDavid C# Hobbyist.30-Oct-13 4:47 
GeneralRe: How to bind textboxes text to the ViewModel Pin
Ashfaque Hussain30-Oct-13 4:53
Ashfaque Hussain30-Oct-13 4:53 
GeneralRe: How to bind textboxes text to the ViewModel Pin
David C# Hobbyist.30-Oct-13 5:03
professionalDavid C# Hobbyist.30-Oct-13 5:03 
GeneralRe: How to bind textboxes text to the ViewModel Pin
Ashfaque Hussain30-Oct-13 7:55
Ashfaque Hussain30-Oct-13 7:55 

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.