Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8568661
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 11, 20262026-06-11T18:09:40+00:00 2026-06-11T18:09:40+00:00

Is there XAML solution for this sample? I’m interested in part where fullname and

  • 0

Is there XAML solution for this sample? I’m interested in part where fullname and little dot are shown. Particularly, I can’t make little dot to be right after fullname if fullname has enough space (first item).

Now, I have this, but it’s not appropriate because the dot is always on the right:

    <Grid Grid.Row="0" Grid.Column="1">
        <Grid.ColumnDefinitions>
            <ColumnDefinition Width="*"/>
            <ColumnDefinition Width="Auto"/>
        </Grid.ColumnDefinitions>
        <TextBlock Text="{Binding Path=Title}" VerticalAlignment="Stretch" HorizontalAlignment="Stretch"
            Margin="0,-16,0,0"
            Style="{StaticResource PhoneTextExtraLargeStyle}" />
        <TextBlock Grid.Column="1" HorizontalAlignment="Right"
            Text="{Binding Path=IsOnline, Converter={StaticResource StatusFormatter}}" Opacity="0.6"
            Style="{StaticResource PhoneTextLargeStyle}"/>
    </Grid>

Sample

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-11T18:09:41+00:00Added an answer on June 11, 2026 at 6:09 pm

    Solved this question by writing Custom Panel:

    public class MyStackPanel : Panel
    {
        protected override Size MeasureOverride(Size availableSize)
        {
            Size newSize = new Size();
            UIElement firstChild = Children[0];
            UIElement secondChild = Children[1];
            secondChild.Measure(availableSize);
            firstChild.Measure(new Size(availableSize.Width - secondChild.DesiredSize.Width, availableSize.Height));
            newSize.Width = firstChild.DesiredSize.Width + secondChild.DesiredSize.Width;
            newSize.Height = firstChild.DesiredSize.Height;
            return newSize;
        }
    
        protected override Size ArrangeOverride(Size finalSize)
        {
            UIElement firstChild = Children[0];
            UIElement secondChild = Children[1];
            firstChild.Arrange(new Rect(0, 0, firstChild.DesiredSize.Width, firstChild.DesiredSize.Height));
            secondChild.Arrange(new Rect(firstChild.DesiredSize.Width, 0, secondChild.DesiredSize.Width,
                                         firstChild.DesiredSize.Height));
            return base.ArrangeOverride(finalSize);
        }
    }
    

    And XAML:

    <local:MyStackPanel Grid.Column="1">
        <TextBlock Text="{Binding Path=Title}"
                   Style="{StaticResource PhoneTextExtraLargeStyle}" />
        <TextBlock Text="{Binding Path=IsOnline, Converter={StaticResource StatusFormatter}}"
                   Opacity="0.6"
                   Style="{StaticResource PhoneTextLargeStyle}"/>
    </local:MyStackPanel>
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

How can I create an TextBox in WPF ( With XAML ) that there
Is there a way to convert HTML into XAML? I noticed that you can
There is this MSDN article about spcial characters in WPF/XAML : But those Things
I'm trying to make a simple Windows Phone 7 Silverlight app. There's the MainPage.xaml
In WPF XAML there is the convenient DesignHeight and DesignWidth , for instance in
There are two WinRT applications (C#/Xaml if it matters) on Windows 8. The first
Is there a way in XAML to determine if the ListBox has data? I
Is there any support for XAML on the Windows Mobile?
Is there anyway to extract the underlying xaml from a control. IE. I have
Is there a way to do 'using' in XAML i.e. declare a namespace and

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.