Coder Social home page Coder Social logo

Comments (10)

batzen avatar batzen commented on May 17, 2024

Could you send me a sample which demonstrates your usage?
Then i can include it in the showcase application to avoid such issues in the future.

from fluent.ribbon.

jonferreira avatar jonferreira commented on May 17, 2024

The following is enough to create a fancy window merging MahApps and Fluent

<Metro:MetroWindow x:Class="XPTO.Views.MainWindowView"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:Fluent="clr-namespace:Fluent;assembly=Fluent"
    xmlns:Metro="clr-namespace:MahApps.Metro.Controls;assembly=MahApps.Metro"
    xmlns:Dialog="clr-namespace:MahApps.Metro.Controls.Dialogs;assembly=MahApps.Metro"
    xmlns:i="clr-namespace:System.Windows.Interactivity;assembly=System.Windows.Interactivity"
    xmlns:cal="http://www.caliburnproject.org"
    Fluent:RibbonProperties.TitleBarHeight="0"
    Style="{DynamicResource CleanWindowStyleKey}"
    GlowBrush="{DynamicResource AccentColorBrush}"
    ShowIconOnTitleBar="False"
    ShowTitleBar="True"
    WindowStartupLocation="CenterScreen"
    Title="{Binding Path=NomeAplicacao}" 
    Height="506" 
    Width="828" 
    x:Name="MainWindow"
    TitleCaps="False" 
    cal:Message.Attach="[Event Closing] = [Action Close($eventArgs,$view)]" 
    WindowState="Maximized"
    >

However i now have 2 title bars (one from MahApps and other from Fluent)

Image of Bug

I can create a sample project if required

Thanks

from fluent.ribbon.

jonferreira avatar jonferreira commented on May 17, 2024

hi batzen.

any news? can i help on something to speed things up?

from fluent.ribbon.

batzen avatar batzen commented on May 17, 2024

No news so far other than i'm too busy to work on this project currently. Maybe i can find some time this weekend.

from fluent.ribbon.

jonferreira avatar jonferreira commented on May 17, 2024

sure, totally understandable. thanks for the update

from fluent.ribbon.

batzen avatar batzen commented on May 17, 2024

I just noticed that you got the office user dropdown in your application, would you mind sharing the code for that? Someone else asked for that feature a while back.

from fluent.ribbon.

jonferreira avatar jonferreira commented on May 17, 2024

pretty sure it was me who asked that :P

https://fluent.codeplex.com/discussions/546793

here is my code although all the issues i had to begin with are still there

<Fluent:DropDownButton 
                        Header="{Binding HeaderUtilizadorNome}"
                        IsEnabled="True"
                        Fluent:RibbonProperties.Size="Middle"

                        VerticalAlignment="Top" Margin="0,0,10,0">

                    <Grid>
                        <Grid.ColumnDefinitions>
                            <ColumnDefinition Width="*"/>
                            <ColumnDefinition Width="2*"/>
                        </Grid.ColumnDefinitions>
                        <Grid.RowDefinitions>
                            <RowDefinition Height="*" />
                            <RowDefinition Height="*" />
                            <RowDefinition Height="*" />
                        </Grid.RowDefinitions>

                        <!--<Rectangle Width="75" Height="75" Margin="10,10,10,5" Grid.Column="0" Fill="Gray"  />-->
                        <!--<Image Width="75" Height="75" Margin="10,10,10,5" Grid.Column="0" Source="/Resources/user_blank.png" Stretch="Fill" Cursor="Cross"/>-->
                        <Rectangle Width="65" 
                                   Grid.Column="0"
                                   Grid.Row="0"
                                   Height="65"
                                   Margin="5,5,5,5"
                            >
                            <Rectangle.Fill>
                                <VisualBrush Stretch="Fill" Visual="{DynamicResource appbar_user}" />
                            </Rectangle.Fill>
                        </Rectangle>

                        <StackPanel Grid.Column="1" Grid.Row="0">

                            <Label Content="{Binding HeaderUtilizadorNome}" FontWeight="Bold" FontSize="18" Margin="0,10,0,0" ></Label>
                            <Label Content="{Binding HeaderUtilizadorEmail}" FontSize="12" ></Label>

                        </StackPanel>

                        <StackPanel  Grid.Column="0" Grid.Row="1" Grid.ColumnSpan="2" >
                            <Separator/>
                            <Label Content="Definições da Conta" 
                                   Margin="10,0,0,0" 
                                   Cursor="Hand" 
                                   Foreground="Gray"
                                   Style="{StaticResource HoverUnderlineLabelStyle}"
                                   />
                        </StackPanel>

                        <StackPanel  Grid.Column="0" Grid.Row="2" Grid.ColumnSpan="2">
                            <Separator  />
                            <Label Content="Mudar de Conta" 
                                   Margin="10,0,0,5" 
                                   Cursor="Hand" 
                                   Foreground="Gray"
                                   Style="{StaticResource HoverUnderlineLabelStyle}"
                                   >
                                <i:Interaction.Triggers>
                                    <i:EventTrigger EventName="MouseDown">
                                        <cal:ActionMessage MethodName="SistemaReentrarComo">
                                            <cal:Parameter Value="{Binding ElementName=MainWindow}" />
                                        </cal:ActionMessage>
                                    </i:EventTrigger>
                                </i:Interaction.Triggers>
                            </Label>

                        </StackPanel>

                    </Grid>

                </Fluent:DropDownButton>

from fluent.ribbon.

batzen avatar batzen commented on May 17, 2024

Nice it was you. Couldn't connect your usernames ;-)
This issue was fixed a few minutes ago. Will close this one as soon as i made sure that package restore works correctly, as i am now using the MahMetro nuget package to implement the compatibility test window in the showcase application.

from fluent.ribbon.

jonferreira avatar jonferreira commented on May 17, 2024

thanks batzen.
i can test it as soon as 3.3.0 is released :)

from fluent.ribbon.

batzen avatar batzen commented on May 17, 2024

Will close this as i integrated the MahMetro sample and it looks good.
Feel free to open this issue again after you tested 3.3.0 and found any remaining issues regarding the integration with MahMetro.

from fluent.ribbon.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.