Group: StrataFrame Users
Posts: 70,
Visits: 3.5K
|
I have synthesized this problem to a very simple example, but I am seeing this same problem everywhere when using my base subclass of an SF Textbox and a standard SF RadioButtonGroup control on the same form. Here is the complete C# class definition for MyBaseTextbox:
using System;
using System.Collections.Generic;
using System.Text;
namespace RadioButtonGroupProblem
{
public class MyBaseTextbox : MicroFour.StrataFrame.UI.Windows.Forms.Textbox
{}
}
To duplicate the problem, just create an SF StandardForm and drop an instance of MyBaseTextbox on the form. You don't even need to bind anything to the textbox or configure it any way. Then drop an instance of a standard SF RadioButtonGroup control on the form. Again no binding is necessary. Notice the property named RadioButtonCount on the RadioButtonGroup control defaults to 2. Now build the solution and notice that the RadioButtonCount has changed to 4. And from then on, attempting to change the Text property of either of the 2 visible radio buttons gets all mixed up.
This problem seems to happen on various types of forms and with or without binding to data etc. This sample is just to simplify testing. My real application requires that I create my own base subclasses of most of the controls but this problem prohibits using them with a RadioButtonGroup control.
Sam Tenney
|