textbox validations based on selection of radio buttons in wpf mvvm [closed] - c#

Closed. This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed 6 days ago.
Improve this question
enter image description hereenter image description here
I have two radio button decimal and hexadecimal and a textbox
When selecting decimal radio button textbox input restrict to decimal when selecting radio button of hexadecimal then textbox restricting to hexadecimal and when switching between radio button the input in textbox should convert decimal to hexadecimal and wise versa
attached the pictures

Related

Is it possible to set focus to the text end on readonly textbox? [closed]

Closed. This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed 7 days ago.
This post was edited and submitted for review 6 days ago.
Improve this question
In a simple analogy example, I have two textboxes. One is writable, the other one is read only and is just a mirror of the first. I have this to change the text from the second :
private void TextBox_TextChanged(object sender, TextChangedEventArgs e)
{
txtbox2.Text = txtbox1.Text;
}
Now when I input some text there is a follow up on the first textbox but not on the other one.
This is what happen when i input text
I tried many things from others posts to put the caret at the end, select the end, scroll to the end,etc... but nothing really work because it needs to call Focus() on the second textbox which stop the input on the first textbox.
Is it possible to do it ?

split combo box click and toggle button click in wpf [closed]

Closed. This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed 4 years ago.
Improve this question
Currently,I am using MahApps.Metro Combo Box and Can i split event of Combo box click event and toggle button click? Like this=>
Please Check Image Here
My requirement is when i click Click 1,I don't want to show drop down list and just do click event.
But when i click Click 2,I just want to show drop down list and not trigger click event.
How can i achieve this? Thanks.

How to create Numeric UpDown in UWP? [closed]

Closed. This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed 7 years ago.
Improve this question
I am creating a derived class of TextBox for numeric data entry. I would like to add 2 buttons at the right side, like the X button in some TextBox controls to increment or decrement the value.
How can I do it?
What you are looking for is a Numeric Updown. See this question for how to implement your own
Where is the WPF Numeric UpDown control?

Textbox readonly but editable on add new, SQL bound windows form C# [closed]

Closed. This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed 8 years ago.
Improve this question
I want to see a TextBox value only for a TextBox when moving through the sql table items
But when I click on the Add new button the TextBox must be editable for the new item
Just change the TextBox property ReadOnly to false in the click button.
I think that if you add a event to add on the bindingnavigator you can change ReadOnly property of the textbox
In the button OnClick action change the TextBox property ReadOnly into false. And return it back to true when another condition is satisfied (of your choice).

iTextSharp check RadioGroup field [closed]

Closed. This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed 6 years ago.
Improve this question
I have a PDF with radiogroup field and I want to select programmatically a radio within that radiogroup.
Ayone can help please.
Thanks
In Java: http://itextpdf.com/examples/iia.php?id=122
In C#: http://kuujinbo.info/iTextInAction2Ed/index.aspx?ch=Chapter06&ex=FillDataSheet
It's as simple as this:
form.SetField(key, value);
Where key is the name of your radio field, and value one of the possible values of your radio group. If you don't know which values are possible, take a look at the following example:
Java: http://itextpdf.com/examples/iia.php?id=121
C#: http://kuujinbo.info/iTextInAction2Ed/index.aspx?ch=Chapter06&ex=FormInformation
string[] states = form.GetAppearanceStates(key);

Categories

Resources