How do I display an ItemsControl clockwise in a Grid using UWP XAML?

I want to display a list's items clockwise in a rectangular grid; the list has constant size. I'm trying the below but the text of all items seems to overlap in the grid's first row and column. What am I doing wrong? <ItemsControl ItemsSource="{Binding Squares}" DisplayMemberPath="Value" > <ItemsControl.ItemContainerStyle> <Style TargetType="ContentPresenter"> <Setter Property="Grid.Row" Value="{Binding Row}"/> <Setter Property="Grid.Column" Valu...Read more

uwp xaml - UWP View Layout based on Navigation Path

I have a page that can be accessed by a button in two seperate views. My issue is that when I Navigate to the page from the first view I want to set the visibility of a button within that page to collapse. When I navigate to the page from the other view I need that particular button to be set to Visible. So pretty much I am wondering if there is a way to set the visibility property of a button in a view from outside that particular view?...Read more

uwp xaml - Can't set Scrollview Header, Can't scroll when using datatemplate in scrollview

I want to use a dynamic header in a scrollviwer (tried other things, the scroll viewer works best for my application) but when I set the header it crashes. I've tried to set the content and the only way it doesn't crash is using a datatemplate inside the contenttemplate, but if I do that the content won't scroll! I'm simply doing this just for testing:Simple Scrollviewer Test<ScrollViewer> <ScrollViewer.TopHeader> <Grid Width="800" Height="75" Background="Green"/> </ScrollViewer.TopHeader> <ScrollViewe...Read more

How to use Row and RowSpam in XAML Screens

The Code I will UsedThe Row and rowspan is using this page but i will expected row span in the the value start in Zero Index and End in rowspan="3"<Grid Grid.Row="3" Grid.Column="1"> <Grid.RowDefinitions> <RowDefinition Height="*"/> </Grid.RowDefinitions> <Image Source="/Resources//Others/5.png" Margin="2 2 0 0" Stretch="Fill"/> </Grid> <Grid Grid.RowSpan="3" Grid.Column="2"> <Grid.RowDefinitions> ...Read more

uwp xaml - Make Canvas/Grid with transparent area for underneath element

I am designing a tour view for my app, like below. In which, I place a canvas/grid, with a Ellipse element to focus underneath element of my page. The problem I am facing is, though I set the Opacity="0" for the ellipse, it does not get full transparency, I am able to understand the reason, but how to solve this issue.<Grid x:Name="RootGrid"><Stackpanel x:Name="AllElementsHere"> <TextBox/> <TextBox/> <TextBox/> <TextBox/></<Stackpanel><Canvas x:Name="TourView" Background="Black" Opacit...Read more

uwp xaml - How can I have a repeating elements in a UWP Border?

I want to create a XAML Border that looks like the highlighted whammy border - highlighted whammy. I have the basic Border written (code below) but am unsure how to change the BorderBrush so I can have the repeating lights around the border. Is there a way to do this with UWP XAML? Assuming I can't use a custom brush (and I haven't found an appropriate one), is there a way to use a Grid?<Border BorderBrush="Gold" BorderThickness="{Binding ElementName=slide0, Path=(behaviors:CustomAttributesBehavior.BorderThickness)}" CornerRadius="{...Read more

uwp xaml - UWP Navigation View Selection Indicator

I have an UWP application with a customn style for the selection indicator:<SolidColorBrush x:Key="NavigationViewSelectionIndicatorForeground" Color="{StaticResource FoxOrange}" />Now I wanted to switch to the Version in the Microsoft.UI.Xaml package. That works so far, unless that the sselection indicator is no longer orange but in the default accent color again and much smaller.How can I adjust that back?...Read more

uwp xaml - How to manage HorizontalTextAlignment of TextBlock in lower versions?

When I try to use HorizontalTextAlignment in Textblock text's content alignment to align it's text to center, (We can see the effect only when text is multiline), it warns me with "Not available in this min version", it needs 'Windows 10 Fall Creators Update (introduced v10.0.16299.0)'I want to know what workaround could be done to handle this. I tried with multiple textblocks in a stackpanel, but seems not an efficient way....Read more