Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Window Command ItemSource Binding #2402

Closed
mtaulbee opened this issue Mar 7, 2016 · 3 comments
Closed

Window Command ItemSource Binding #2402

mtaulbee opened this issue Mar 7, 2016 · 3 comments
Assignees
Labels
Milestone

Comments

@mtaulbee
Copy link

mtaulbee commented Mar 7, 2016

What steps will reproduce this issue?

When I use the following code in Version 1.2.0 and up, it does not create the LeftWindowCommands buttons like it used to.

<controls:MetroWindow.Resources>
    <DataTemplate x:Key="ModuleCommandTemplate">
        <Button Content="{Binding ModuleDisplayName}"
                Command="{x:Static cmd:ApplicationCommands.NavigateCommand}"
                CommandParameter="{Binding}"
                Width="Auto"
                Height="50"
                HorizontalContentAlignment="Stretch"
                VerticalAlignment="Center"
                VerticalContentAlignment="Center"
                FontSize="16">
        </Button>
    </DataTemplate>
</controls:MetroWindow.Resources>
<controls:MetroWindow.LeftWindowCommands>
    <controls:WindowCommands ItemsSource="{Binding ModuleNames}"
                             ItemTemplate="{StaticResource ModuleCommandTemplate}">
    </controls:WindowCommands>
</controls:MetroWindow.LeftWindowCommands>

Environment

  • MahApps.Metro __v1.2 and up
  • Windows 10
  • Visual Studio __2015
  • .NET Framework 4.6
@punker76 punker76 added this to the 1.3.0 milestone Mar 7, 2016
@punker76 punker76 self-assigned this Mar 7, 2016
@punker76
Copy link
Member

punker76 commented Mar 7, 2016

@mtaulbee should be fixed now

@mtaulbee
Copy link
Author

mtaulbee commented Mar 8, 2016

Awesome, so this will be fixed with release 1.3.0 then?

@punker76
Copy link
Member

punker76 commented Mar 8, 2016

@mtaulbee Yes and you can even test it with the latest pre-release

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
Development

No branches or pull requests

2 participants