﻿<?xml version="1.0" encoding="UTF-8"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/"><channel><title>StrataFrame Forum » .NET Forums » General .NET Discussion  » Generic property</title><generator>InstantForum 2017-1 Final</generator><description>StrataFrame Forum</description><link>http://forum.strataframe.net/</link><webMaster>StrataFrame Forum</webMaster><lastBuildDate>Tue, 09 Jun 2026 18:26:39 GMT</lastBuildDate><ttl>20</ttl><item><title>Generic property</title><link>http://forum.strataframe.net/FindPost9542.aspx</link><description>Hi,&lt;br&gt;
I am using DevExpress ribbon control as my form toolbar. I want to implement the behavour like SF maintenance toolstrip to it. In order to reuse my code in casde i want to use other control as my maintenance toolbar in the future, I planned to write an controller/behavour class to control the logic.&lt;br&gt;
&lt;br&gt;
My current problem is, I need some way to access those button (ribbon control bar item/maintenance toolstrip button) in order to disable/enable them. I was thinking to have property to store object reference of each button accordingly. I used "control" as my property type. However, I might not able to access certain property that exist in toolbar button such as tooltiptext if I do so.&lt;br&gt;
&lt;br&gt;
Anyway I can "set" tyoe to property during runtime? I tried to take a look at generic, but I only see it work for List&lt;T&gt;. Is it?&lt;br&gt;
&lt;br&gt;
Ady ideas?&lt;br&gt;
&lt;br&gt;
Thank you</description><pubDate>Wed, 13 Jun 2007 17:45:04 GMT</pubDate><dc:creator>Chan</dc:creator></item><item><title>RE: Generic property</title><link>http://forum.strataframe.net/FindPost9551.aspx</link><description>Well, I am not totally sure I understand what you are trying to do, but I would think that handling form events would be the way to go rather than storing off an object reference.&amp;nbsp; This will ensure encapsulation as well as reusability.&amp;nbsp; If you look, you will see that the SF forms have many of the same events as the BOs....they just cover all of the BOs on the form.&amp;nbsp; Also, you will want to call the Save(), Add(), etc. on the SF form to get the same behaviour as the MaintenanceFormToolstrip.&amp;nbsp; Just a few ideas.</description><pubDate>Wed, 13 Jun 2007 17:45:04 GMT</pubDate><dc:creator>Trent L. Taylor</dc:creator></item></channel></rss>