Click here to Skip to main content
       

Silverlight / WPF

 
AnswerRe: Can anyone suggest any good books or tutorials on WPF-MVVM please? PinmvpAbhinav S13-Nov-12 21:19 
GeneralRe: Can anyone suggest any good books or tutorials on WPF-MVVM please? PinmemberVijay Kanda13-Nov-12 21:59 
GeneralRe: Can anyone suggest any good books or tutorials on WPF-MVVM please? PinmvpAbhinav S13-Nov-12 23:09 
QuestionDatabinding ICollectionView to DataGrid WPF C# [modified] Pinmembermaycockt8-Nov-12 5:57 
AnswerRe: Databinding ICollectionView to DataGrid WPF C# Pinmembermaycockt8-Nov-12 22:42 
QuestionPrinting with more than 96 dpi in WPF [modified] PinmemberMember 45210688-Nov-12 2:22 
AnswerRe: Printing with more than 96 dpi in WPF PinmemberSuper Lloyd14-Nov-12 16:16 
GeneralRe: Printing with more than 96 dpi in WPF [modified] PinmemberMember 452106819-Nov-12 22:26 
QuestionI have issues with the C# WPF WebBrowser class PinmemberXarzu6-Nov-12 20:14 
AnswerRe: I have issues with the C# WPF WebBrowser class PinmemberGerry Schmitz7-Nov-12 11:04 
QuestionBlurry Borderline In FlowDocument PinmemberFocusedWolf6-Nov-12 10:46 
AnswerRe: Blurry Borderline In FlowDocument PinmemberGerry Schmitz7-Nov-12 13:13 
AnswerRe: Blurry Borderline In FlowDocument [modified] PinmemberFocusedWolf7-Nov-12 16:00 
QuestionBinding in a WPF TreeViewItem PinmvpJohn Simmons / outlaw programmer6-Nov-12 8:16 
I want my treeview items to change their appearance based on other properties within the object being represented by the treeview item. I've done the following within the treeview zaml:
 
<TreeView.Resources>
    <Style TargetType="{x:Type TreeViewItem}">
        <Setter Property="Foreground" Value="{Binding Path=IsValid, Converter={StaticResource StatusInvalidConverter}}" />
        <Setter Property="HeaderTemplate">
            <Setter.Value>
                <DataTemplate>
                    <Grid>
                        <Border Grid.Column="0" x:Name="PART_ItemBorder" ... >
                            <StackPanel Orientation="Horizontal">
                                <Label Content="{Binding}"  />
 
                                /// my custom stuff is here
                                <Label Content="(NOT USED)" 
                                       Visibility="{Binding Path=IsReferenced, Converter={StaticResource MyConverter}}" 
                                       Foreground="Red" />
                        
                            </StackPanel>
                        </Border>
                    </Grid>
                </DataTemplate>
            </Setter.Value>
        </Setter>
    </Style>
</TreeView.Resources>
 
I'm getting the following notification in the output window when I run the app in debug mode:
 
System.Windows.Data Error: 40 : BindingExpression path error: 'IsReferenced' property not found on 'object' ''String' (HashCode=1540110492)'. BindingExpression:Path=IsReferenced; DataItem='String' (HashCode=1540110492); target element is 'Label' (Name=''); target property is 'Visibility' (type 'Visibility')

".45 ACP - because shooting twice is just silly" - JSOP, 2010
-----
You can never have too much ammo - unless you're swimming, or on fire. - JSOP, 2010
-----
"Why don't you tie a kerosene-soaked rag around your ankles so the ants won't climb up and eat your candy ass." - Dale Earnhardt, 1997

AnswerRe: Binding in a WPF TreeViewItem PinprotectorPete O'Hanlon6-Nov-12 8:29 
GeneralRe: Binding in a WPF TreeViewItem PinmvpJohn Simmons / outlaw programmer6-Nov-12 8:54 
GeneralRe: Binding in a WPF TreeViewItem PinprotectorPete O'Hanlon6-Nov-12 9:00 
GeneralRe: Binding in a WPF TreeViewItem PinmvpJohn Simmons / outlaw programmer6-Nov-12 9:22 
GeneralRe: Binding in a WPF TreeViewItem PinprotectorPete O'Hanlon6-Nov-12 9:29 
GeneralRe: Binding in a WPF TreeViewItem PinmvpJohn Simmons / outlaw programmer6-Nov-12 9:37 
GeneralRe: Binding in a WPF TreeViewItem PinprotectorPete O'Hanlon6-Nov-12 9:44 
GeneralRe: Binding in a WPF TreeViewItem PinmvpJohn Simmons / outlaw programmer6-Nov-12 10:02 
GeneralRe: Binding in a WPF TreeViewItem PinmvpJohn Simmons / outlaw programmer6-Nov-12 10:13 
GeneralRe: Binding in a WPF TreeViewItem PinprotectorPete O'Hanlon6-Nov-12 10:22 
GeneralRe: Binding in a WPF TreeViewItem PinmvpJohn Simmons / outlaw programmer6-Nov-12 10:27 
GeneralRe: Binding in a WPF TreeViewItem PinprotectorPete O'Hanlon6-Nov-12 10:28 
GeneralRe: Binding in a WPF TreeViewItem PinmvpJohn Simmons / outlaw programmer7-Nov-12 3:53 
GeneralRe: Binding in a WPF TreeViewItem PinprotectorPete O'Hanlon7-Nov-12 4:01 
GeneralRe: Binding in a WPF TreeViewItem PinmvpJohn Simmons / outlaw programmer7-Nov-12 5:24 
GeneralRe: Binding in a WPF TreeViewItem PinmvpJohn Simmons / outlaw programmer8-Nov-12 4:30 
GeneralRe: Binding in a WPF TreeViewItem PinmvpJohn Simmons / outlaw programmer8-Nov-12 5:53 
GeneralRe: Binding in a WPF TreeViewItem PinmvpJohn Simmons / outlaw programmer8-Nov-12 10:13 
Questionslide menu PinmemberHimmelDeveloper2-Nov-12 6:51 
AnswerRe: slide menu PinmvpRichard MacCutchan2-Nov-12 10:27 
QuestionCustomized Scrollbar not working properly PinmemberAnil_S.Kamble2-Nov-12 5:11 
QuestionCustom TreeViewItems PinmvpJohn Simmons / outlaw programmer2-Nov-12 4:06 
AnswerRe: Custom TreeViewItems PinmemberSledgeHammer012-Nov-12 6:47 
QuestionHow to detect if the users pressed Ctrl and V at the same time? Pinmembergmf1-Nov-12 11:26 
AnswerRe: How to detect if the users pressed Ctrl and V at the same time? PinprotectorPete O'Hanlon1-Nov-12 11:49 
GeneralRe: How to detect if the users pressed Ctrl and V at the same time? Pinmembergmf1-Nov-12 13:28 
GeneralRe: How to detect if the users pressed Ctrl and V at the same time? PinprotectorPete O'Hanlon1-Nov-12 13:34 
QuestionXAML Diff Source Compare Pinmember_Maxxx_30-Oct-12 15:04 
AnswerRe: XAML Diff Source Compare PinmemberMycroft Holmes30-Oct-12 17:42 
GeneralRe: XAML Diff Source Compare Pinmember_Maxxx_30-Oct-12 23:19 
AnswerRe: XAML Diff Source Compare PinmvpAbhinav S30-Oct-12 21:22 
GeneralRe: XAML Diff Source Compare Pinmember_Maxxx_30-Oct-12 23:20 
AnswerRe: XAML Diff Source Compare PinprotectorPete O'Hanlon30-Oct-12 22:32 
GeneralRe: XAML Diff Source Compare Pinmember_Maxxx_30-Oct-12 23:24 
QuestionHow to set the wcf ria service time out. PinmemberSaurabh_0829-Oct-12 11:32 
AnswerRe: How to set the wcf ria service time out. PinmentorKeith Barrow29-Oct-12 23:18 

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
Web04 | 2.8.140916.1 | Last Updated 16 Sep 2014
Copyright © CodeProject, 1999-2014
All Rights Reserved. Terms of Service
Layout: fixed | fluid