How to show currency in a Numeric Textbox with a label?

Answer:

The currency can be displayed with the label by using a custom format. However, the currency format symbol in the custom format does not change based on culture. As a result, the currency sign must be changed according to the requirement. Please find the code snippet below .


Width="200px" TValue="double?" FloatLabelType="FloatLabelType.Auto" Placeholder='Currency TextBox' @bind-Value="@B" Format="$ ##.## Month"/>

@code {

public int ChangeCount;

public double? B { get; set; } = 50;

}



Loader.
Up arrow icon