Can anobody point me to where I might find one? Pref. free, I dont need to buy an entire control library for one control...
It should look like this (common on ribbon bars), and behave support toggle mode (like radio button, where only one button in the group can be depressed at a time).
I know this is older but I had the same question. In WPF .Net 4.0 you can set the RibbonSplitButton value IsCheckable to True and you get what you are looking for.
<ribbon:RibbonSplitButton Label="Disk" Name="RibbonToggleButtonDisk" LargeImageSource="/Images/drive_med.png" IsCheckable="True" >
<ribbon:RibbonToggleButton Label="Used" Name="RibbonToggleButtonDiskUsed" SmallImageSource="/Images/drive_med.png" IsEnabled="false" IsChecked="True" />
<ribbon:RibbonToggleButton Label="Free" Name="RibbonToggleButtonDiskFree" SmallImageSource="/Images/drive_med.png" IsEnabled="False" />
<ribbon:RibbonToggleButton Label="Total" Name="RibbonToggleButtonDiskTotal" SmallImageSource="/Images/drive_med.png" IsEnabled="False" IsChecked="True" />
</ribbon:RibbonSplitButton>
Related
When I saw the TabBar and the Flyout menu in .NET Maui I started wondering if its possible to create your own global object for your application.
does anyone know how to do this?
(I want to add a status icon at the corner of my screen without having to manually add it to all pages.)
You can create a simple Floating Button and add it to your pages.
You can create an image with a transparent background in your favorite editor and then assign it a location on the Page.
You can refer to the following code:
<AbsoluteLayout>
<!--Other components-->
<ImageButton Source="icon.png"
BackgroundColor="Green"
CornerRadius="80"
AbsoluteLayout.LayoutFlags="PositionProportional"
AbsoluteLayout.LayoutBounds=".95,.95,80,80" />
</AbsoluteLayout>
I'm developing a Roku application with SceneGraph and I would like to have a side menu with the search and other buttons on the channel's home screen.
I couldn't find how to implement this. Is it possible?
Thanks a lot
Yes it is possible by doing custom design. Left menu can be done using LabelList, proper tanslation should be given for other components in order to avoid overlapping of UI.
I have already done in 3 channels, so it's easy to keep if you have clear idea about the element placing.
Eg:
<Rectangle color="0x000000" width="230" height="440" translation="[-10,0]" >
<LabelList id = "categoriesLabelList" translation="[5,20]" textHorizAlign="left" itemSize="[200,40]">
</LabelList>
</Rectangle>
You can also hide the left menu when the indicator focus any other elements like RowList, MarkupList, Postergrid or any element. Showing and hiding should be handled in onkeyevent
function onKeyEvent(key as String, press as Boolean) as Boolean
end function
I added a new custom button to quote form ribbon. This button should only appear, if the statecode is active (Value: 1).
I created following CommandDefinition:
<CommandDefinition Id="mySolution.quote.Form.MyButton.Command">
<EnableRules />
<DisplayRules>
<DisplayRule Id="mySolution.QuoteIsActive" />
</DisplayRules>
<Actions>
<JavaScriptFunction FunctionName="myFunction" Library="$webresource:new_myLibrary" />
</Actions>
</CommandDefinition>
And following DisplayRule:
<DisplayRule Id="mySolution.QuoteIsActive">
<ValueRule Field="statecode" Value="1" Default="true" />
</DisplayRule>
But if I use this DisplayRule my button never appears. If I remove the rule from CommandDefinition the button is always visible.
I also tried to use 'Active' as value (as shown at the bottom of this post, with the same result.
What is the trick to define a rule depending on statecode? Or did I miss something?
Try using Status text values ("Open", "Draft", "Active", ect.) instead of number values. I have a similar case with Status Reasons. Hope it will help!
I couldn't find anything to verify this, but display rules seem to have issues in the command bar. I had better luck using enable rules, and those actually act like you would expect display rules to act in the command bar. In other words, if a button in the command bar is disabled then it's not displayed. You can read about it in the MSDN documentation.
I think your problem here is that your EnableRules is empty.
However, are you doing that modifications by hand?
If so, use CRM 2011 Visual Ribbon Editor, this tool will do almost all job for you.
I think that your problem is that Statecode should be 0, not 1. Do a sql query on statecode and statecodename (use FilteredView).
Just add simple .js script for updating ribbon. Ribbon updates only on page load. Thats why your button became always unvisible. Here is code sample:
function refreshRibbonOnChange()
{
Xrm.Page.ui.refreshRibbon();
}
Then add web resource and attach it to button click. Simple!
I am using flex's layout feature to avoid the coding to align/position. How ever, it looks like though I hide (visible = false) any object, flex treats it as exists and doesn't re-align or re-position the controls as I expected.
I think, I can achieve it if I can add/remove the controls dynamically but I dont want to do that.
Does flex has the feature to ignore the invisible control and align the visibile controls only?
Below is the scenario
I have a with two in it. Either "any one" or "both" the buttons will be visible depending on the logic. No problem if I have to show both the buttons because they will be properly aligned. But if I have to show only one, the positions remain same as if both are visible.
Is there any way exists to re-align the controls when I hide/show something dynamically? That without having to add/remove
<s:Group width="100%" id="pricesGroup">
<s:layout>
<s:HorizontalLayout gap="5"/>
</s:layout>
<s:Button id="btnCoins" label="{coins.toString()}" chromeColor="#94E749"/>
<s:Button id="btnFlux" label="{flux.toString()}" chromeColor="#3B8DC7"/>
</s:Group>
You need to also mark the component out of the layout
<s:Group includeInLayout="false" />
if not, the component will keep reserved some space in the layout.
Is it possible to extend the "Send to" menu in Office (not the Windows one; I know how to do that). I would like to launch my own application with the source document as the target.
Update: I am looking for a non-VSTO based solution.
In 2007, you can extend the ribbon, and should be able to place your control in the group FileSendMenu in the tab Office Menu. I don't think this is supported in the designer available in the last VSTO-addin for Visual Studio, so you may have to hand craft your xml.
<customUI xmlns="http://schemas.microsoft.com/office/2006/01/customui" onLoad="OnLoad" loadImage="OnGetImage">
<ribbon>
<officeMenu>
<menu idMso="FileSendMenu">
<button id="oButtonId"
insertAfterMso="FileInternetFax"
getDescription="GetDescription"
getLabel="GetLabel"
getScreentip="GetSuperTip"
getSupertip="GetSuperTip"
getVisible="GetVisible"
onAction="OnButtonPress"/>
</menu>
</officeMenu>
</ribbon>
</customUI>
You will need an event handler ("OnButtonPress") as well has handlers for description, iconst etc. You could do this with VBA, but I would rather go with a proper Add-In.