Click here to Skip to main content
15,867,865 members
Home / Discussions / WPF
   

WPF

 
GeneralRe: Custom Navigation Control Pin
Pete O'Hanlon16-Apr-23 21:54
subeditorPete O'Hanlon16-Apr-23 21:54 
GeneralRe: Custom Navigation Control Pin
Kevin Marois17-Apr-23 5:10
professionalKevin Marois17-Apr-23 5:10 
GeneralRe: Custom Navigation Control Pin
Pete O'Hanlon17-Apr-23 10:52
subeditorPete O'Hanlon17-Apr-23 10:52 
GeneralRe: Custom Navigation Control Pin
Kevin Marois22-Apr-23 17:54
professionalKevin Marois22-Apr-23 17:54 
GeneralRe: Custom Navigation Control Pin
Pete O'Hanlon23-Apr-23 21:09
subeditorPete O'Hanlon23-Apr-23 21:09 
GeneralRe: Custom Navigation Control Pin
Richard Deeming23-Apr-23 23:07
mveRichard Deeming23-Apr-23 23:07 
GeneralRe: Custom Navigation Control Pin
Kevin Marois25-Apr-23 19:02
professionalKevin Marois25-Apr-23 19:02 
GeneralRe: Custom Navigation Control Pin
Kevin Marois27-Apr-23 7:21
professionalKevin Marois27-Apr-23 7:21 
QuestionPath in Style Question Pin
Kevin Marois10-Apr-23 13:43
professionalKevin Marois10-Apr-23 13:43 
AnswerRe: Path in Style Question Pin
Gerry Schmitz12-Apr-23 6:18
mveGerry Schmitz12-Apr-23 6:18 
GeneralRe: Path in Style Question Pin
Kevin Marois12-Apr-23 6:33
professionalKevin Marois12-Apr-23 6:33 
GeneralRe: Path in Style Question Pin
Gerry Schmitz12-Apr-23 7:01
mveGerry Schmitz12-Apr-23 7:01 
GeneralRe: Path in Style Question Pin
Kevin Marois12-Apr-23 7:06
professionalKevin Marois12-Apr-23 7:06 
GeneralRe: Path in Style Question Pin
Kevin Marois18-Apr-23 14:45
professionalKevin Marois18-Apr-23 14:45 
QuestionDraw Images Pin
Kevin Marois4-Apr-23 14:24
professionalKevin Marois4-Apr-23 14:24 
AnswerRe: Draw Images Pin
Andy_L_J5-Apr-23 1:41
Andy_L_J5-Apr-23 1:41 
AnswerRe: Draw Images Pin
Pete O'Hanlon5-Apr-23 2:27
subeditorPete O'Hanlon5-Apr-23 2:27 
GeneralRe: Draw Images Pin
Kevin Marois7-Apr-23 6:31
professionalKevin Marois7-Apr-23 6:31 
GeneralRe: Draw Images Pin
Pete O'Hanlon13-Apr-23 21:41
subeditorPete O'Hanlon13-Apr-23 21:41 
QuestionJson Based Themes Pin
Kevin Marois6-Mar-23 6:39
professionalKevin Marois6-Mar-23 6:39 
QuestionDropDown TreeView Pin
Kevin Marois22-Feb-23 18:34
professionalKevin Marois22-Feb-23 18:34 
I'm trying to create a Custom Control that will be a DropDown TreeView.

Basically I want to replace a comboboxe's control template with a treeview. I've tried different things, but here's what I have so far:
<Style TargetType="{x:Type local:MaroisDropDownTree}">

<pre>
<Setter Property="Template">

    <Setter.Value>

        <ControlTemplate TargetType="{x:Type ComboBox}">

            <Border Margin="2" 
                    Background="{TemplateBinding Background}" 
                    BorderBrush="{TemplateBinding BorderBrush}" 
                    BorderThickness="{TemplateBinding BorderThickness}" 
                    CornerRadius="{TemplateBinding BorderThickness}">

                <TreeView ItemsSource="{Binding TreeData, RelativeSource ={RelativeSource TemplatedParent}}"/>

            </Border>

        </ControlTemplate>

    </Setter.Value>

</Setter>



When I run it and drop it down, there's nothing there.

Can someone please point me in the right direction?
If it's not broken, fix it until it is.
Everything makes sense in someone's mind.
Ya can't fix stupid.

AnswerRe: DropDown TreeView Pin
Gerry Schmitz24-Feb-23 9:08
mveGerry Schmitz24-Feb-23 9:08 
GeneralRe: DropDown TreeView Pin
Kevin Marois2-Mar-23 11:30
professionalKevin Marois2-Mar-23 11:30 
GeneralRe: DropDown TreeView Pin
Gerry Schmitz3-Mar-23 5:25
mveGerry Schmitz3-Mar-23 5:25 
QuestionStyles aren't apply on Window element in Design Mode when they are coming from a Resource Dictionary included into a .dll reference Pin
Simos Sigma22-Feb-23 1:50
Simos Sigma22-Feb-23 1:50 

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.