UWP XAML TextBox customization - xaml

Please, I would like to customize a UWP XAML TextBox until it looks like the one on the screenshot below:
Please, any help?
Thanks in advance.

You can use borderthickness and textalingment to achieve what you have shown.
<TextBox BorderThickness="0,0,0,1" VerticalAlignment="Top" TextAlignment="Right" Text="Textbox with text on right"></TextBox>

Related

How do I make PivotItems in Pivot wrap around like a WrapPanel?

I would like to have the PivotItems in my Pivot to wrap around when the items exceed the App width much like a WrapPanel instead of the default scrolling. I tried setting up the Pivot.ItemTemplate as shown below but that didnt work. Thanks in advance.
<Pivot.ItemTemplate>
<DataTemplate>
<controls:WrapPanel />
</DataTemplate>
</Pivot.ItemTemplate>
There are many design mechanisms inside the HeaderTemplate of NavigationView and Pivot. It is very difficult to change it. But we could achieve a similar effect through layout. You could add a wrapPanel, then add controls inside the panel and use Frame to navigate to another page. As follows:
<StackPanel >
<wrap:WrapPanel x:Name="Itemgrid" Orientation="Horizontal" >
//add your control to show header
</wrap:WrapPanel >
<Frame x:Name="ContentFrame"/>
</StackPanel>

How to create marquee on text block in windows phone 8?

i'm trying to create marquee but i don't have proper idea how to create so any 1 knows then please help me.
<Grid x:Name="ContentPanel" Grid.Row="1" Margin="0,0,24,0">
<Canvas x:Name="myText" >
<TextBlock HorizontalAlignment="Left" TextWrapping="NoWrap" Text="TextBlock" VerticalAlignment="Top" Margin="293,156,0,0"/>
</Canvas>
now how to give marquee i dont know.
You can use Blend to do the animation. In blend, select the textblock, set start position. In timeline, record a new position and in code behind start the storyboard. The article at http://www.fantageek.com/66/wp7-how-to-create-marquee-textblock/ may help you.
Hope it helps.

Placing an element exactly below another one on WP8?

I would like to place a GRID element just below another GRID element using XAML just like Android's layout below. How can it be done, if possible?
Is this all you're looking for?
<StackPanel>
<Grid/>
<Grid/>
</StackPanel>

WinRT Bindable Highlight TextBlock control

I'm developing WinRT / windows store app.
Is there any way how i could highlight certain text in TextBlock?
something like that:
<controls:TextBlockHighlight Text="{Binding Text}" HighlightText="{Binding HighlightText}" />
I managed to get required output with
<TextBlock>
<TextBlock.Text>
<Run>......</Run>
</TextBlock.Text>
</Textblock>
But i need that control to be bindable, and i don't how to make it like that..
Filip,
Many thanks for addition in framework.
Highlight textblock behavior is now available in http://winrtxamltoolkit.codeplex.com/
Regards

Hide list item in Silverlight 4

I have a silverlight application in which I display items in a list box.
I want to hide some items based on a condition, like some value of a string.
My xaml looks like this:
<ListBox
ItemsSource="{Binding DashboardTypes}"
SelectedItem="{Binding SelectedDashboardCategory,Mode=TwoWay}"
ScrollViewer.HorizontalScrollBarVisibility="Disabled"
Style="{StaticResource ListBoxStyleAttribute}"
Margin="2"
ItemContainerStyle="{StaticResource ListBoxItemStyle}" />
You'll need to set up an ItemTemplate to describe your items and then add a binding on that for the Visibility property that controls when items are visible or not. I suspect that you'll need a converter to actually implement the rule for when an item should be visible.
There is a Stack Overflow question that covers something similar but in WPF. It should give you some pointers that will help you in implementing this.