Click here to Skip to main content
15,881,204 members
Home / Discussions / WPF
   

WPF

 
AnswerRe: Customize Scrollbar in wpf Pin
Richard Deeming7-Dec-17 8:30
mveRichard Deeming7-Dec-17 8:30 
GeneralIterating the cells of a gridview Pin
Member 83993636-Dec-17 12:49
Member 83993636-Dec-17 12:49 
GeneralRe: Iterating the cells of a gridview Pin
Gerry Schmitz6-Dec-17 16:53
mveGerry Schmitz6-Dec-17 16:53 
GeneralRe: Iterating the cells of a gridview Pin
Member 83993636-Dec-17 17:14
Member 83993636-Dec-17 17:14 
GeneralRe: Iterating the cells of a gridview Pin
Gerry Schmitz6-Dec-17 17:52
mveGerry Schmitz6-Dec-17 17:52 
GeneralRe: Iterating the cells of a gridview Pin
Member 83993636-Dec-17 18:01
Member 83993636-Dec-17 18:01 
GeneralRe: Iterating the cells of a gridview Pin
Gerry Schmitz6-Dec-17 18:13
mveGerry Schmitz6-Dec-17 18:13 
QuestionHow To Create This UI Pin
Kevin Marois1-Dec-17 5:17
professionalKevin Marois1-Dec-17 5:17 
I'm trying to create a navigation bar like this.

Yesterday I posted on this, and I was unable to get it to work right.

So, what I'm thinking is that each blue bar would be an Expander. Each Expander could then have either another Expander, or a list of hyperlinks.

I want to make it flexible enough so that by simply adding data to a group in the model, they appear as a group in the nav bar.

Here's what I got so far:
Model
public class NavigationItem : BindableBase // Implements INPC
{
    public int ItemId { get; set; }
    public string Caption { get; set; }
    public NavigationItemType ItemType { get; set; }
    public ObservableCollection<NavigationItem> NavigationItems { get; set; }
}
XAML
<pre><ListBox Grid.Row="1" 
            Grid.Column="0"
            ItemsSource="{Binding NavigationBarItems}">

<pre>
<ListBox.ItemTemplate>
    <DataTemplate>
        <Expander Header="{Binding Caption}">
            <ListBox ItemsSource="{Binding NavigationItems}">
                <ListBox.ItemTemplate>
                    <DataTemplate>
                        <TextBlock Text="{Binding Caption}"/>
                    </DataTemplate>
                </ListBox.ItemTemplate>
            </ListBox>
        </Expander>
    </DataTemplate>
</ListBox.ItemTemplate>




This it what I have now.
https://1drv.ms/i/s!AjBmoYAYz_v2ggqcuk5OS5YW1KDO

You can see that the first group doesn't have the subgroups.

How do I make these subgroups in the XAML?

Thanks
If it's not broken, fix it until it is.
Everything makes sense in someone's mind.
Ya can't fix stupid.


modified 1-Dec-17 12:46pm.

AnswerRe: How To Create This UI Pin
Mycroft Holmes2-Dec-17 12:38
professionalMycroft Holmes2-Dec-17 12:38 
QuestionWPF TreeView - Some Nodes Not Showing Pin
Kevin Marois30-Nov-17 11:56
professionalKevin Marois30-Nov-17 11:56 
AnswerRe: WPF TreeView - Some Nodes Not Showing Pin
Mycroft Holmes30-Nov-17 12:14
professionalMycroft Holmes30-Nov-17 12:14 
GeneralRe: WPF TreeView - Some Nodes Not Showing Pin
Kevin Marois30-Nov-17 12:15
professionalKevin Marois30-Nov-17 12:15 
GeneralRe: WPF TreeView - Some Nodes Not Showing Pin
Mycroft Holmes30-Nov-17 12:41
professionalMycroft Holmes30-Nov-17 12:41 
GeneralRe: WPF TreeView - Some Nodes Not Showing Pin
Kevin Marois30-Nov-17 12:43
professionalKevin Marois30-Nov-17 12:43 
GeneralRe: WPF TreeView - Some Nodes Not Showing Pin
Mycroft Holmes30-Nov-17 19:41
professionalMycroft Holmes30-Nov-17 19:41 
GeneralRe: WPF TreeView - Some Nodes Not Showing Pin
Kevin Marois30-Nov-17 13:00
professionalKevin Marois30-Nov-17 13:00 
GeneralRe: WPF TreeView - Some Nodes Not Showing Pin
Kevin Marois30-Nov-17 12:38
professionalKevin Marois30-Nov-17 12:38 
QuestionMahApps Pin
Kevin Marois14-Nov-17 7:54
professionalKevin Marois14-Nov-17 7:54 
AnswerRe: MahApps Pin
Pete O'Hanlon14-Nov-17 10:32
mvePete O'Hanlon14-Nov-17 10:32 
QuestionMEF ImportingConstructor - How do we pass different concrete class if accepting parameter is interface type Pin
Ashfaque Hussain6-Nov-17 2:40
Ashfaque Hussain6-Nov-17 2:40 
AnswerRe: MEF ImportingConstructor - How do we pass different concrete class if accepting parameter is interface type Pin
Richard Deeming6-Nov-17 3:20
mveRichard Deeming6-Nov-17 3:20 
QuestionWPF, DevExpress: Stop dxn:NavBarControl recreates it's children Pin
Member 1347601722-Oct-17 21:18
Member 1347601722-Oct-17 21:18 
AnswerRe: WPF, DevExpress: Stop dxn:NavBarControl recreates it's children Pin
Gerry Schmitz23-Oct-17 19:13
mveGerry Schmitz23-Oct-17 19:13 
GeneralRe: WPF, DevExpress: Stop dxn:NavBarControl recreates it's children Pin
Antoon Verroken26-Oct-17 1:26
Antoon Verroken26-Oct-17 1:26 
GeneralRe: WPF, DevExpress: Stop dxn:NavBarControl recreates it's children Pin
Gerry Schmitz26-Oct-17 4:09
mveGerry Schmitz26-Oct-17 4:09 

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.