Instagram like RichEditBox in uwp
There is no such control in uwp platform, currently there is a workaround that insert Textbox into ViewBox that will set the text fontsize automatically. Then make new TextBlock with text and insert it into the root layout.
private string resault;
private int count = 0;
private void TextBox_TextChanged(object sender, TextChangedEventArgs e)
{
var tb = sender as TextBox;
resault = tb.Text;
}
private void TextBox_KeyDown(object sender, KeyRoutedEventArgs e)
{
if(e.Key== VirtualKey.Enter)
{
var textbox = new TextBlock() {
VerticalAlignment = VerticalAlignment.Center,
HorizontalAlignment = HorizontalAlignment.Center,
Text= resault
};
RootLayout.Children.Insert(count++, textbox);
Tbox.Text = string.Empty;
}
}