WPF HierarchicalDataTemplate Questions:
-
I have 2 questions... I created a HierarchicalDataTemplate which is bound to a NodeModel
[Serializable]
public class NodeModel : ViewModelBase
{
public Guid Id { get; set; }
public string Caption { get; set; }
public string Description { get; set; }
public bool IsActive { get; set; }
public ImageSource Image { get; set; }
public bool IsExpanded { get; set; }
public string FileName { get; set; }
public NodeType Type { get; set; }
public List Children { get; set; }
}the template:
<Style.Triggers> <Trigger Property="IsMouseOver" Value="False"> <Setter Property="TextDecorations" Value="{x:Null}" /> </Trigger> </Style.Triggers>
-
I have 2 questions... I created a HierarchicalDataTemplate which is bound to a NodeModel
[Serializable]
public class NodeModel : ViewModelBase
{
public Guid Id { get; set; }
public string Caption { get; set; }
public string Description { get; set; }
public bool IsActive { get; set; }
public ImageSource Image { get; set; }
public bool IsExpanded { get; set; }
public string FileName { get; set; }
public NodeType Type { get; set; }
public List Children { get; set; }
}the template:
<Style.Triggers> <Trigger Property="IsMouseOver" Value="False"> <Setter Property="TextDecorations" Value="{x:Null}" /> </Trigger> </Style.Triggers>
This can be achieved by using the style template and DataTriggers (will give you the sample code). Before that, I am not sure why you want to use the Hyperlinks inside the TreeNode. Could you please help me to understand its need. This will help me to give you the answer! Happy Coding :)
-
I have 2 questions... I created a HierarchicalDataTemplate which is bound to a NodeModel
[Serializable]
public class NodeModel : ViewModelBase
{
public Guid Id { get; set; }
public string Caption { get; set; }
public string Description { get; set; }
public bool IsActive { get; set; }
public ImageSource Image { get; set; }
public bool IsExpanded { get; set; }
public string FileName { get; set; }
public NodeType Type { get; set; }
public List Children { get; set; }
}the template:
<Style.Triggers> <Trigger Property="IsMouseOver" Value="False"> <Setter Property="TextDecorations" Value="{x:Null}" /> </Trigger> </Style.Triggers>
You should not disrespect the other people, Or you should not ask the questions if you don not want to get the answer... Happy Coding :)
-
You should not disrespect the other people, Or you should not ask the questions if you don not want to get the answer... Happy Coding :)
Amardeep Deshmukh wrote:
You should not disrespect the other people
What? What the hell are you talking about?
Amardeep Deshmukh wrote:
Or you should not ask the questions if you don not want to get the answer...
Where did this come from???
If it's not broken, fix it until it is
-
Amardeep Deshmukh wrote:
You should not disrespect the other people
What? What the hell are you talking about?
Amardeep Deshmukh wrote:
Or you should not ask the questions if you don not want to get the answer...
Where did this come from???
If it's not broken, fix it until it is
Kevin, I was trying to help you out and asked couple of questions to understand the problem statement better. I worked a lot on Hierarchical data and thought could help you. But, instead of replying and clarifying the problem you down voted my reply... Also, I noticed that in one of the question from the C# forum (licensing related question) without understanding the answer provided you directly replied to it saying this will not work. That's why I replied to you post... Sorry if I hurt you sentiments Happy Coding :)
-
Kevin, I was trying to help you out and asked couple of questions to understand the problem statement better. I worked a lot on Hierarchical data and thought could help you. But, instead of replying and clarifying the problem you down voted my reply... Also, I noticed that in one of the question from the C# forum (licensing related question) without understanding the answer provided you directly replied to it saying this will not work. That's why I replied to you post... Sorry if I hurt you sentiments Happy Coding :)
Amardeep Deshmukh wrote:
But, instead of replying and clarifying the problem you down voted my reply
How do you know it was Kevin? Never assume that you know who downvoted you. Currently only Code Project staff can identify that information. This is one of the reasons that revenge univoting is never a good idea.
*pre-emptive celebratory nipple tassle jiggle* - Sean Ewington
"Mind bleach! Send me mind bleach!" - Nagy Vilmos
CodeStash - Online Snippet Management | My blog | MoXAML PowerToys | Mole 2010 - debugging made easier