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

WPF

 
AnswerRe: Accessing function on Usercontrol hosted from Window in MVVM and C# Pin
SledgeHammer0112-Aug-11 6:52
SledgeHammer0112-Aug-11 6:52 
GeneralRe: Accessing function on Usercontrol hosted from Window in MVVM and C# [modified] Pin
Alisaunder12-Aug-11 7:25
Alisaunder12-Aug-11 7:25 
GeneralRe: Accessing function on Usercontrol hosted from Window in MVVM and C# Pin
SledgeHammer0112-Aug-11 7:42
SledgeHammer0112-Aug-11 7:42 
GeneralRe: Accessing function on Usercontrol hosted from Window in MVVM and C# Pin
Alisaunder12-Aug-11 8:12
Alisaunder12-Aug-11 8:12 
GeneralRe: Accessing function on Usercontrol hosted from Window in MVVM and C# Pin
SledgeHammer0112-Aug-11 8:38
SledgeHammer0112-Aug-11 8:38 
GeneralRe: Accessing function on Usercontrol hosted from Window in MVVM and C# [modified] Pin
Alisaunder12-Aug-11 10:26
Alisaunder12-Aug-11 10:26 
GeneralRe: Accessing function on Usercontrol hosted from Window in MVVM and C# Pin
SledgeHammer0112-Aug-11 11:01
SledgeHammer0112-Aug-11 11:01 
GeneralRe: Accessing function on Usercontrol hosted from Window in MVVM and C# [modified] Pin
Alisaunder12-Aug-11 13:32
Alisaunder12-Aug-11 13:32 
One last problem I think. How do I get tv.ItemsSource = dict;
to work. I get, An object reference is required for the non-static field, method, or property 'Manufactured_Housing_Manager.Outlookbar.MyTreeView'

I tried adding this to the tope of this class

using tv = Manufactured_Housing_Manager.Outlookbar;

also this is my xaml for binding

it's inside Outlookbar.xaml

HTML
<HierarchicalDataTemplate x:Key="ChildTemplate">
    <StackPanel Orientation="Horizontal">
        <Image x:Name="img2" Width="16"  Height="16" Stretch="Fill" Source="Images\closedfolder16.png" />
        <TextBlock Text="{Binding Path=Name}" Margin="5,0" ToolTip="{Binding Path=Name}"/>
    </StackPanel>
</HierarchicalDataTemplate>
<HierarchicalDataTemplate x:Key="MyTreeViewStyle"
                          ItemsSource="{Binding Path=Contact}"
                          ItemTemplate="{StaticResource ChildTemplate}">
    <!-- Display the Index by showing it's Index string -->
    <StackPanel Orientation="Horizontal">
        <Image x:Name="img" Width="16" Height="16" Stretch="Fill" Source="Images\closedfolder16.png" />
        <TextBlock Text="{Binding Path=Index}" Margin="5,0" ToolTip="{Binding Path=Index}"/>
    </StackPanel>
</HierarchicalDataTemplate>


modified on Friday, August 12, 2011 7:49 PM

GeneralRe: Accessing function on Usercontrol hosted from Window in MVVM and C# Pin
Alisaunder13-Aug-11 11:25
Alisaunder13-Aug-11 11:25 
GeneralRe: Accessing function on Usercontrol hosted from Window in MVVM and C# Pin
SledgeHammer0113-Aug-11 11:49
SledgeHammer0113-Aug-11 11:49 
GeneralRe: Accessing function on Usercontrol hosted from Window in MVVM and C# Pin
Alisaunder13-Aug-11 15:09
Alisaunder13-Aug-11 15:09 
GeneralRe: Accessing function on Usercontrol hosted from Window in MVVM and C# Pin
SledgeHammer0113-Aug-11 15:35
SledgeHammer0113-Aug-11 15:35 
GeneralRe: Accessing function on Usercontrol hosted from Window in MVVM and C# Pin
Alisaunder14-Aug-11 14:36
Alisaunder14-Aug-11 14:36 
GeneralRe: Accessing function on Usercontrol hosted from Window in MVVM and C# Pin
SledgeHammer0114-Aug-11 15:04
SledgeHammer0114-Aug-11 15:04 
GeneralRe: Accessing function on Usercontrol hosted from Window in MVVM and C# Pin
Alisaunder15-Aug-11 22:01
Alisaunder15-Aug-11 22:01 
Questionsiilverlight 4 - listbox to have Tag Pin
arkiboys12-Aug-11 4:32
arkiboys12-Aug-11 4:32 
AnswerRe: siilverlight 4 - listbox to have Tag Pin
#realJSOP12-Aug-11 6:32
mve#realJSOP12-Aug-11 6:32 
Questionsilverlight listbox - fill colour Pin
arkiboys12-Aug-11 4:24
arkiboys12-Aug-11 4:24 
AnswerRe: silverlight listbox - fill colour Pin
Mycroft Holmes12-Aug-11 23:44
professionalMycroft Holmes12-Aug-11 23:44 
GeneralRe: silverlight listbox - fill colour Pin
arkiboys13-Aug-11 22:10
arkiboys13-Aug-11 22:10 
QuestionWPF Webbrowser bot releasing PDF file -- Help Needed Pin
pal2ashish12-Aug-11 0:36
pal2ashish12-Aug-11 0:36 
AnswerRe: WPF Webbrowser bot releasing PDF file -- Help Needed Pin
Alisaunder12-Aug-11 14:14
Alisaunder12-Aug-11 14:14 
GeneralRe: WPF Webbrowser bot releasing PDF file -- Help Needed Pin
pal2ashish14-Aug-11 4:19
pal2ashish14-Aug-11 4:19 
AnswerRe: WPF Webbrowser bot releasing PDF file -- Help Needed Pin
Oludayo Alli15-Aug-11 23:58
Oludayo Alli15-Aug-11 23:58 
GeneralRe: WPF Webbrowser bot releasing PDF file -- Help Needed Pin
pal2ashish28-Aug-11 22:44
pal2ashish28-Aug-11 22:44 

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.