<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Create drop down list button in the ribbon like the views? in .NET Forum</title>
    <link>https://forums.autodesk.com/t5/net-forum/create-drop-down-list-button-in-the-ribbon-like-the-views/m-p/11477933#M11399</link>
    <description>&lt;P&gt;I can get the large button to work with the following code:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="jholdawayUKBGN_0-1665587289227.png" style="width: 600px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/1126486i9772B85713D9EC67/image-size/medium?v=v2&amp;amp;px=400" role="button" title="jholdawayUKBGN_0-1665587289227.png" alt="jholdawayUKBGN_0-1665587289227.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;LI-CODE lang="csharp"&gt;				var galleryButton = new RibbonGallery();
				galleryButton.Id = "testcombo";
				galleryButton.Name = "Views";
				galleryButton.DisplayMode = GalleryDisplayMode.LargeButton;
				galleryButton.Text = "Views";

				galleryButton.LargeImage = (ImageSource)Theme.Instance.ActiveResourceDictionary["SimulateImage"];
				galleryButton.Image = (ImageSource)Theme.Instance.ActiveResourceDictionary["SimulateScenariosImage"];
				rowPanel.Items.Add(galleryButton);

				var buttonGallery = new RibbonButton()
				{
					Name = "Button2",
					Text = "My Button2",
					Id = "ID_Button2",
					ShowText = true,
					ShowImage = false,
					Size = RibbonItemSize.Standard,
					Orientation = System.Windows.Controls.Orientation.Horizontal
				};
				galleryButton.Items.Add(buttonGallery);

				buttonGallery = new RibbonButton()
				{
					Name = "Button3",
					Text = "My Button3",
					Id = "ID_Button3",
					ShowText = true,
					ShowImage = false,
					Size = RibbonItemSize.Standard,
					Orientation = System.Windows.Controls.Orientation.Horizontal
				};
				galleryButton.Items.Add(buttonGallery);
				
				//add menu buttons
				RibbonButton button1 = new RibbonButton();
				button1.Name = "MyButton";
				button1.Text = "My Button";
				button1.Id = "MyButtonId";
				galleryButton.MenuItems.Add(button1);
				RibbonButton button2 = new RibbonButton();
				button2.Name = "MyOtherButton";
				button2.Text = "My Other Button";
				button2.Id = "MyOtherButtonId";
				galleryButton.MenuItems.Add(button2);&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;However, the gallery items is still the large icon and text.&amp;nbsp; I'm trying to figure out how to be a single row like the Views in the first picture I posted.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Second, I would like to use a small button dropdown instead of the large one.&amp;nbsp; When I change the DisplayMode on the RibbonGallery, this is what I get:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="jholdawayUKBGN_1-1665587731486.png" style="width: 600px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/1126491i9DB68144F533D7A8/image-size/medium?v=v2&amp;amp;px=400" role="button" title="jholdawayUKBGN_1-1665587731486.png" alt="jholdawayUKBGN_1-1665587731486.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="jholdawayUKBGN_2-1665588113810.png" style="width: 600px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/1126494iBEAE1E80A048BCFF/image-size/medium?v=v2&amp;amp;px=400" role="button" title="jholdawayUKBGN_2-1665588113810.png" alt="jholdawayUKBGN_2-1665588113810.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any help would be greatly appreciated!&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;</description>
    <pubDate>Wed, 12 Oct 2022 15:22:16 GMT</pubDate>
    <dc:creator>jholdawayUKBGN</dc:creator>
    <dc:date>2022-10-12T15:22:16Z</dc:date>
    <item>
      <title>Create drop down list button in the ribbon like the views?</title>
      <link>https://forums.autodesk.com/t5/net-forum/create-drop-down-list-button-in-the-ribbon-like-the-views/m-p/11477624#M11397</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm trying to create a button in the ribbon that acts like the views or the insert button in AutoCAD.&lt;/P&gt;&lt;P&gt;The button should look and feel like the insert button, and the dropdown list should act like a list as in the views.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="list button.png" style="width: 600px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/1126431iBA595327B194C62B/image-size/medium?v=v2&amp;amp;px=400" role="button" title="list button.png" alt="list button.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any help to get started?&amp;nbsp; I've started to play around with the RibbonListButton but I'm struggling.&lt;/P&gt;&lt;P&gt;Any advice would be greatly appreciated.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 12 Oct 2022 13:35:10 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/create-drop-down-list-button-in-the-ribbon-like-the-views/m-p/11477624#M11397</guid>
      <dc:creator>jholdawayUKBGN</dc:creator>
      <dc:date>2022-10-12T13:35:10Z</dc:date>
    </item>
    <item>
      <title>Re: Create drop down list button in the ribbon like the views?</title>
      <link>https://forums.autodesk.com/t5/net-forum/create-drop-down-list-button-in-the-ribbon-like-the-views/m-p/11477871#M11398</link>
      <description>&lt;P&gt;I'm not really familiar with working with the ribbon through the API, but I know you can do this easily with CUI controls from within autocad?&lt;/P&gt;</description>
      <pubDate>Wed, 12 Oct 2022 15:00:31 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/create-drop-down-list-button-in-the-ribbon-like-the-views/m-p/11477871#M11398</guid>
      <dc:creator>nshupeFMPE3</dc:creator>
      <dc:date>2022-10-12T15:00:31Z</dc:date>
    </item>
    <item>
      <title>Re: Create drop down list button in the ribbon like the views?</title>
      <link>https://forums.autodesk.com/t5/net-forum/create-drop-down-list-button-in-the-ribbon-like-the-views/m-p/11477933#M11399</link>
      <description>&lt;P&gt;I can get the large button to work with the following code:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="jholdawayUKBGN_0-1665587289227.png" style="width: 600px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/1126486i9772B85713D9EC67/image-size/medium?v=v2&amp;amp;px=400" role="button" title="jholdawayUKBGN_0-1665587289227.png" alt="jholdawayUKBGN_0-1665587289227.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;LI-CODE lang="csharp"&gt;				var galleryButton = new RibbonGallery();
				galleryButton.Id = "testcombo";
				galleryButton.Name = "Views";
				galleryButton.DisplayMode = GalleryDisplayMode.LargeButton;
				galleryButton.Text = "Views";

				galleryButton.LargeImage = (ImageSource)Theme.Instance.ActiveResourceDictionary["SimulateImage"];
				galleryButton.Image = (ImageSource)Theme.Instance.ActiveResourceDictionary["SimulateScenariosImage"];
				rowPanel.Items.Add(galleryButton);

				var buttonGallery = new RibbonButton()
				{
					Name = "Button2",
					Text = "My Button2",
					Id = "ID_Button2",
					ShowText = true,
					ShowImage = false,
					Size = RibbonItemSize.Standard,
					Orientation = System.Windows.Controls.Orientation.Horizontal
				};
				galleryButton.Items.Add(buttonGallery);

				buttonGallery = new RibbonButton()
				{
					Name = "Button3",
					Text = "My Button3",
					Id = "ID_Button3",
					ShowText = true,
					ShowImage = false,
					Size = RibbonItemSize.Standard,
					Orientation = System.Windows.Controls.Orientation.Horizontal
				};
				galleryButton.Items.Add(buttonGallery);
				
				//add menu buttons
				RibbonButton button1 = new RibbonButton();
				button1.Name = "MyButton";
				button1.Text = "My Button";
				button1.Id = "MyButtonId";
				galleryButton.MenuItems.Add(button1);
				RibbonButton button2 = new RibbonButton();
				button2.Name = "MyOtherButton";
				button2.Text = "My Other Button";
				button2.Id = "MyOtherButtonId";
				galleryButton.MenuItems.Add(button2);&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;However, the gallery items is still the large icon and text.&amp;nbsp; I'm trying to figure out how to be a single row like the Views in the first picture I posted.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Second, I would like to use a small button dropdown instead of the large one.&amp;nbsp; When I change the DisplayMode on the RibbonGallery, this is what I get:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="jholdawayUKBGN_1-1665587731486.png" style="width: 600px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/1126491i9DB68144F533D7A8/image-size/medium?v=v2&amp;amp;px=400" role="button" title="jholdawayUKBGN_1-1665587731486.png" alt="jholdawayUKBGN_1-1665587731486.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="jholdawayUKBGN_2-1665588113810.png" style="width: 600px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/1126494iBEAE1E80A048BCFF/image-size/medium?v=v2&amp;amp;px=400" role="button" title="jholdawayUKBGN_2-1665588113810.png" alt="jholdawayUKBGN_2-1665588113810.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any help would be greatly appreciated!&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;</description>
      <pubDate>Wed, 12 Oct 2022 15:22:16 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/create-drop-down-list-button-in-the-ribbon-like-the-views/m-p/11477933#M11399</guid>
      <dc:creator>jholdawayUKBGN</dc:creator>
      <dc:date>2022-10-12T15:22:16Z</dc:date>
    </item>
    <item>
      <title>Re: Create drop down list button in the ribbon like the views?</title>
      <link>https://forums.autodesk.com/t5/net-forum/create-drop-down-list-button-in-the-ribbon-like-the-views/m-p/11478619#M11400</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;/P&gt;&lt;P&gt;May this help you&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A href="https://adndevblog.typepad.com/autocad/2012/06/ribbonsplitbutton-with-icons-images.html" target="_blank"&gt;https://adndevblog.typepad.com/autocad/2012/06/ribbonsplitbutton-with-icons-images.html&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 12 Oct 2022 20:18:15 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/create-drop-down-list-button-in-the-ribbon-like-the-views/m-p/11478619#M11400</guid>
      <dc:creator>hosneyalaa</dc:creator>
      <dc:date>2022-10-12T20:18:15Z</dc:date>
    </item>
  </channel>
</rss>

