locked
Merge Ribbon title with RibbonWindow Title RRS feed

  • Question

  • How do I merge the RibbonWindow title with the Ribbon title? I want the RibbonWindow's ApplicationMenu to be on top of the window (kinda like Firefox). I'd also like to change the text on the ApplicationMenu, the Label property doesn't seem to work.

    Hameer Abbasi


    Monday, November 26, 2012 3:10 AM

Answers

  • Hi Hameer Abbasi,

    First question:

    we could not merge the Window border part(win32) with the WPF ribbon part(WPF part), if you have to achieve this behavior, you have to remove the Window border, change RibbonWindow to normal Window, and then set the WindowStyle="None".

    Second question:

    you could use DrawingImage:

    <ribbon:RibbonApplicationMenu.SmallImageSource>
        <DrawingImage>
            <DrawingImage.Drawing>
                <GlyphRunDrawing ForegroundBrush="White">
                    <GlyphRunDrawing.GlyphRun>
                        <GlyphRun
            CaretStops="{x:Null}" 
            ClusterMap="{x:Null}" 
            IsSideways="False" 
            GlyphOffsets="{x:Null}" 
            GlyphIndices="41 76 79 72" 
            FontRenderingEmSize="12" 
            DeviceFontName="{x:Null}" 
            AdvanceWidths="5.859375 2.90625 2.90625 6.275390625">
                            <GlyphRun.GlyphTypeface>
                                <GlyphTypeface FontUri="C:\WINDOWS\Fonts\SEGOEUI.TTF"/>
                            </GlyphRun.GlyphTypeface>
                        </GlyphRun>
                    </GlyphRunDrawing.GlyphRun>
                </GlyphRunDrawing>
            </DrawingImage.Drawing>
        </DrawingImage>
    </ribbon:RibbonApplicationMenu.SmallImageSource>

    Best regards,


    Sheldon _Xiao[MSFT]
    MSDN Community Support | Feedback to us
    Microsoft
    Please remember to mark the replies as answers if they help and unmark them if they provide no help.

    • Marked as answer by Sheldon _Xiao Monday, December 10, 2012 8:32 AM
    Wednesday, November 28, 2012 7:43 AM

All replies

  • Hi Hameer Abbasi,

    First question:

    we could not merge the Window border part(win32) with the WPF ribbon part(WPF part), if you have to achieve this behavior, you have to remove the Window border, change RibbonWindow to normal Window, and then set the WindowStyle="None".

    Second question:

    you could use DrawingImage:

    <ribbon:RibbonApplicationMenu.SmallImageSource>
        <DrawingImage>
            <DrawingImage.Drawing>
                <GlyphRunDrawing ForegroundBrush="White">
                    <GlyphRunDrawing.GlyphRun>
                        <GlyphRun
            CaretStops="{x:Null}" 
            ClusterMap="{x:Null}" 
            IsSideways="False" 
            GlyphOffsets="{x:Null}" 
            GlyphIndices="41 76 79 72" 
            FontRenderingEmSize="12" 
            DeviceFontName="{x:Null}" 
            AdvanceWidths="5.859375 2.90625 2.90625 6.275390625">
                            <GlyphRun.GlyphTypeface>
                                <GlyphTypeface FontUri="C:\WINDOWS\Fonts\SEGOEUI.TTF"/>
                            </GlyphRun.GlyphTypeface>
                        </GlyphRun>
                    </GlyphRunDrawing.GlyphRun>
                </GlyphRunDrawing>
            </DrawingImage.Drawing>
        </DrawingImage>
    </ribbon:RibbonApplicationMenu.SmallImageSource>

    Best regards,


    Sheldon _Xiao[MSFT]
    MSDN Community Support | Feedback to us
    Microsoft
    Please remember to mark the replies as answers if they help and unmark them if they provide no help.

    • Marked as answer by Sheldon _Xiao Monday, December 10, 2012 8:32 AM
    Wednesday, November 28, 2012 7:43 AM
  • Hi Hameer Abbasi,
     
    I am marking your issue as "Answered", if you have new findings about your issue, please let me know.


    Best regards,


    Sheldon _Xiao
    MSDN Community Support | Feedback to us
    Develop and promote your apps in Windows Store
    Please remember to mark the replies as answers if they help and unmark them if they provide no help.

    Monday, December 10, 2012 8:32 AM