Skip to content
New issue

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

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

Already on GitHub? Sign in to your account

MenuItem: IsSplited="True" gray line issue #115

Closed
vdrasutis opened this issue May 21, 2015 · 5 comments
Closed

MenuItem: IsSplited="True" gray line issue #115

vdrasutis opened this issue May 21, 2015 · 5 comments
Labels
Milestone

Comments

@vdrasutis
Copy link
Contributor

Hello. I created MenuItem with atribute IsSplited="True". The main button is fine, but in sub menu there is gray line. And menu icons has to be big. How I can remove/hide this line in sub menu?

issplited gray line issue

@batzen batzen added the Styles label May 21, 2015
@batzen
Copy link
Member

batzen commented May 21, 2015

Will have a look at this next week.

@vdrasutis
Copy link
Contributor Author

My XML code:

 <fluent:MenuItem x:Name="SaveAsDocumentButton"
                             Command="ApplicationCommands.SaveAs"
                             Header="{Binding RelativeSource={RelativeSource Self}, Path=Command.Text}"
                               Icon="/Arieso.Gui.Wpf.Resources;Component/Images/SaveAsDocument_32x32.png"
                             IsSplited="true">
                    <StackPanel >
                        <TextBlock Text="Save a copy of the document" Padding="8,4" Background="Gainsboro" FontWeight="Bold"></TextBlock>
                        <fluent:MenuItem Header="Document" Description="The default file format."                                              
                                         Command="ApplicationCommands.SaveAs" CommandParameter="Document"
                                         ToolTip="{x:Null}"
                                         Size="Large"
                                         Icon="Images/Document32.png" />

                        <fluent:MenuItem Header="Template" Description="A template that can be used to format future documents." 
                                         SnapsToDevicePixels="True"
                                         Command="ApplicationCommands.SaveAs" CommandParameter="Template"
                                         Icon="Images/Template32.png" />

                        <fluent:MenuItem Header="Report" Description="A read-only report when you want to publish results." 
                                         SnapsToDevicePixels="True"
                                         Command="ApplicationCommands.SaveAs" CommandParameter="Report"
                                         Icon="Images/Report32.png" />
                    </StackPanel>
                </fluent:MenuItem>

@vdrasutis
Copy link
Contributor Author

This line is in SplitedApplicationMenuItemTemplate template, commenting "<Path Fill="{x:Null}" ..." node solves the problem, the line is not shown.

<ControlTemplate x:Key="SplitedApplicationMenuItemTemplate"
                 TargetType="{x:Type fluent:MenuItem}">
...
    <Popup x:Name="PART_Popup"
...
        <Path Fill="{x:Null}"
                                  Stretch="Fill"
                                  Stroke="#FFE2E4E7"
                                  HorizontalAlignment="Left"
                                  Margin="24,0,0,0"
                                  Width="1"
                                  Height="Auto"
                                  Data="M0,0L0,1"
                                  Grid.RowSpan="2"
                                  Visibility="Visible" />

@batzen
Copy link
Member

batzen commented May 25, 2015

Could you create a PR for this fix?

@vdrasutis
Copy link
Contributor Author

Created. It is my first time (with Git Hub...), so I hope everything done right.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants