I have a MainWindow with various tabs. One of them is a Contextual Tab. I want to set the Contextual Tab's IsActive to the boolean IsFormAgentVisible value which is a public property in my MainWindow.xaml.cs
I'm entirely new to WPF so I'm not sure a normal public property is the best way to go here. When I click on a ribbon button to launch a specific Window I set the IsFormAgentVisible to true. At this point I want to the contextualGroupFormAgents ContextualGroup below to be updated so that IsActive is now true. Hopefully this is a pretty simple task to perform. Thanks.
Contextual Tab code from the MainWindow.xaml:
<telerik:RadRibbonView.ContextualGroups>
<telerik:RadRibbonContextualGroup x:Name="contextualGroupFormAgents" />
</telerik:RadRibbonView.ContextualGroups>
<telerik:RadRibbonTab Header="Form Agents" ContextualGroupName="contextualGroupFormAgents">
<telerik:RadRibbonGroup Header="Primary Details">
<telerik:RadRibbonDropDownButton Content="Change Primary Details" Click="ChangePrimaryDetailsDropDown_Click" />
<telerik:RadRibbonButton Content="Obsolete Forms"/>
</telerik:RadRibbonGroup>
<telerik:RadRibbonGroup Header="Process Status">
<telerik:RadRibbonDropDownButton Content="Update Process Status" Click="UpdateProcessStatusDropDown_Click" />
</telerik:RadRibbonGroup>
<telerik:RadRibbonGroup Header="Memos">
<telerik:RadRibbonButton Content="Add Memos"/>
</telerik:RadRibbonGroup>
<telerik:RadRibbonGroup Header="Submittal Details">
<telerik:RadRibbonDropDownButton Content="Change Submittals" Click="ChangeSubmittalsDropDown_Click"/>
</telerik:RadRibbonGroup>
</telerik:RadRibbonTab>
MainWindow.xaml.cs public property:
public bool IsFormAgentVisible { get; set; }
I'm entirely new to WPF so I'm not sure a normal public property is the best way to go here. When I click on a ribbon button to launch a specific Window I set the IsFormAgentVisible to true. At this point I want to the contextualGroupFormAgents ContextualGroup below to be updated so that IsActive is now true. Hopefully this is a pretty simple task to perform. Thanks.
Contextual Tab code from the MainWindow.xaml:
<telerik:RadRibbonView.ContextualGroups>
<telerik:RadRibbonContextualGroup x:Name="contextualGroupFormAgents" />
</telerik:RadRibbonView.ContextualGroups>
<telerik:RadRibbonTab Header="Form Agents" ContextualGroupName="contextualGroupFormAgents">
<telerik:RadRibbonGroup Header="Primary Details">
<telerik:RadRibbonDropDownButton Content="Change Primary Details" Click="ChangePrimaryDetailsDropDown_Click" />
<telerik:RadRibbonButton Content="Obsolete Forms"/>
</telerik:RadRibbonGroup>
<telerik:RadRibbonGroup Header="Process Status">
<telerik:RadRibbonDropDownButton Content="Update Process Status" Click="UpdateProcessStatusDropDown_Click" />
</telerik:RadRibbonGroup>
<telerik:RadRibbonGroup Header="Memos">
<telerik:RadRibbonButton Content="Add Memos"/>
</telerik:RadRibbonGroup>
<telerik:RadRibbonGroup Header="Submittal Details">
<telerik:RadRibbonDropDownButton Content="Change Submittals" Click="ChangeSubmittalsDropDown_Click"/>
</telerik:RadRibbonGroup>
</telerik:RadRibbonTab>
MainWindow.xaml.cs public property:
public bool IsFormAgentVisible { get; set; }