wpf - How to use a TextBlock that allows the left-most characters to be dropped -


i have following scenario thought have simple solution, i'm stumped...

i have constructed wpf user control set of numeric buttons , textblock record buttons have been selected. when user control opens, textblock empty. button selected, digit represents appended right-hand-side of displayed text.

what need solution digits keep getting appended on right-hand-side , if results in exceeding fixed displayable size of textblock dropping left-most character. in effect after one-character-at-a-time marque effect.

i can not use scroll bars. thoughts welcome

databindings friend here.

suppose got viewmodel. , in viewmodel got property of string binded textblock text propetry.

now need manipulate string inside viewmodel using regular c# string methods display correctly. hth

ariel


Comments

Popular posts from this blog

linux - Mailx and Gmail nss config dir -

c# - Is it possible to remove an existing registration from Autofac container builder? -

php - Mysql PK and FK char(36) vs int(10) -