Quantcast
Channel: Active questions tagged blazor - Stack Overflow
Viewing all articles
Browse latest Browse all 4839

how to change page direction to RTL in radzen blazor studio app

$
0
0

I have a web application with radzen blazor studio. I added localization to the application. So it added CulturePicker.Razor page and CulturePicker.cs class.

This was the CulturePicker.cs class

<RadzenDropDown @bind-Value="@culture" TValue="string" Data="@(new [] { new { Text = "العربية (المملكةالعربيةالسعودية)", Value = "ar-SA"}, new { Text = "English", Value = "en" } })"    TextProperty="Text" ValueProperty="Value" Change="@ChangeCulture" />

and this is the [Change="@ChangeCulture"] method

protected void ChangeCulture(){    var redirect = new Uri(NavigationManager.Uri).GetComponents(UriComponents.PathAndQuery | UriComponents.Fragment, UriFormat.UriEscaped);    var query = $"?culture={Uri.EscapeDataString(culture)}&redirectUri={redirect}";    NavigationManager.NavigateTo("Culture/SetCulture" + query, forceLoad: true);}

What I need is when the user changes the culture (language) the layout of the page (direction) change from RTL and LTR


Viewing all articles
Browse latest Browse all 4839

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>