Oblic text as tile XAML - xaml

I would like to display a text over other component in XAML. This text is used to display "DEMO VERSION" over all the elements on my application.
How can I display oblic text in tile mode?
Like this image:
The container size can change, I want the text to repeat to fill the container.
Any idea?

Related

Set Text Controls align center in wix toolset

I'm writing my Wix installer and encountered some UI issue.
I have a Dialog with a Text Control inside that attached to a Property and can contains different length of text in that Property.
The issue is that I set this Property with large width and height and depends on the text length it could be aligned correctly to the Width and Height of the Dialog or it could be on the top of the Dialog because it's only 2 words.
Medium text length:
Long text length
Same dialog but look funny at first image and not very clear and second image.
How can I align the text to be center whenever the text is not filling the whole Control?

How can I place descriptive text next to each image in Colorbox?

I would like to display descriptive text, next to each image in a Colorbox gallery. I can give sufficient width to get me space around the image using the colorbox parameter 'width' and change some CSS to get the space to the left of the image. Now, I want to place text in the white space. All the content is generated dynamically but that does not matter for this question as the colorbox code itself is generated using PhP.
Any ideas of doing this without changing the colorbox JS code?

Placing images in textBox

How can I place images in a XAML TEXTBOX?
I am looking for a control that I could place an image and a text next to it and it have to be
scrollable.
Use a RichTextBox. It provides functionality to display Text and Images.

live tiles in Windows Phone and Grids

I'm trying to create a live tile for my application, using a user control.
The user control contains a grid, an image and a rectangle filled with color.
Now here comes the funny part.
I want the rectangle to act as a background for the tile's title, and the image to fill the rest of the tile. And i said to myself, well, lets put some rows in that grid and set the like you usually set them in a WPF/SL application.
I then write the entire thing in a WBM and save it to isostore.
The problem is, the parser seems to ignore the presence of grid's rows. regardless of what I try, the rectangle is not shown, and the image covers the full tile, when it should only cover the first row. It is as if the grid didn't even existed.
Another funny aspect is that it doesn't matter if I use rows or columns, the result is the same.
Any ideas?
Are you using the following method?
Dynamic LiveTile - adding background image?
I recently implemented a Live Tile using a Grid with Rows and Columns for layout of some TextBlocks. I encountered similar challenges, so I placed the control that I was using for my Live Tile on a blank page in my app to better see what was happening. Does the control render correctly when displayed on a page (versus being rendered to a WriteableBitmap)?
Another idea. Instead of trying to position the Rectangle relative to the tile's Title, why not leave the Title property blank and put the same text in a TextBlock within the user control?
If you are careful about the font and positioning of the TextBlock, the text on the resulting background image can appear indistinguishable from text displayed from the Title property. I decided to follow this strategy myself. I found the font information in the following answer:
Font size and family for a tile's title
Otherwise, could you post an example of the XAML you are using?

Vb.net - Centering Text inside my label!

I am trying to make my first program in vb.net 2010, and I have a question.
You know how when you have a button, the text centers itself within the frame of the button?
I have a label in my application, that displays a different text (through the label) everyday.
How can I limit the text area, like the frame in the button, and center the text in this text area? Or if it's easier to use the button, how can I remove the frame?
Change the property AutoSize to false and set the TextAlign property to the center.