Quantcast
Channel: Windows Presentation Foundation (WPF) forum
Viewing all articles
Browse latest Browse all 18858

MS Ribbon: Binding to the IsMinimized and Expanded help...

$
0
0

Hi,

Having no success in binding to the IsMinimized and Expanded properties.

    xmlns:Properties="clr-namespace:StockTraderRI.Properties"

<ribbon:Ribbon x:Name="Ribbon" 
                       Title="Ribbon Title" 
                       IsMinimized="{Binding Path=IsRibbonMinimized, Source={x:Static Properties:Settings.Default}, UpdateSourceTrigger=PropertyChanged}">

I want to save the value to my Resource Property Settings.  Here I can successfully do it with a RibbonCheckBox:

<ribbon:RibbonCheckBox x:Name="XmlFilePart"
                                           Command="{Binding CoreFilePropertiesPart, UpdateSourceTrigger=PropertyChanged}"
                                           SmallImageSource="Resources\SmallIcon.png"
                                           Label="Show xml only"
                                           IsChecked="{Binding Path=IsXmlFilePart, Source={x:Static Properties:Settings.Default}}"/>

But, can't get it to work for the Ribbon root property?


Code is like a box of chocolates!...



Viewing all articles
Browse latest Browse all 18858

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>