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

  • SEARCH
  • Home
  • 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 5986077
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 22, 20262026-05-22T22:37:18+00:00 2026-05-22T22:37:18+00:00

silverlight 4 <ControlTemplate x:Key=MyTabItemContentTemplate> <StackPanel> <TextBlock Text={Binding Path=name} /> <Popup x:Name=contextMenu IsOpen=False> <Border Background=#A5FBFBFB

  • 0

silverlight 4

              <ControlTemplate x:Key="MyTabItemContentTemplate">
    <StackPanel>
        <TextBlock Text="{Binding Path=name}" />
            <Popup x:Name="contextMenu" IsOpen="False">
                <Border Background="#A5FBFBFB" CornerRadius="6" BorderThickness="1" >
                    <StackPanel>
                        <Button x:Name="txbBusy" Content="isBusy"
                           Margin="5" Style="{StaticResource ButtonStyle1}">
                            <Button.Background>
                                <LinearGradientBrush EndPoint="0.5,1" StartPoint="0.5,0">
                                    <GradientStop Color="Black" Offset="0"/>
                                    <GradientStop Color="White" Offset="1"/>
                                </LinearGradientBrush>
                            </Button.Background>
                        </Button>
                        <Button x:Name="txbFree" Content="isFree"
                           Margin="5" Style="{StaticResource ButtonStyle1}"/>
                    </StackPanel>
                </Border>
            </Popup>
            <ItemsControl ItemsSource="{Binding Table}">
                <ItemsControl.ItemsPanel>
                    <ItemsPanelTemplate>
                        <Canvas Margin="10" 
    Background="AliceBlue"   Width="300" Height="300" />
                    </ItemsPanelTemplate>
                </ItemsControl.ItemsPanel>
                <ItemsControl.ItemTemplate>
                    <DataTemplate>
                        <Border Canvas.Left="{Binding x, Converter={StaticResource KeyIntToDoubleConverter}}" Canvas.Top="{Binding y, Converter={StaticResource KeyIntToDoubleConverter}}" MouseLeftButtonDown="Border_MouseLeftButtonDown">
                            <StackPanel>
                                <TextBox Text="{Binding x}"/>
                            </StackPanel>
                        </Border>
                    </DataTemplate>
                </ItemsControl.ItemTemplate>
            </ItemsControl>
        <Button x:Name="btnSave" Content="Save" Click="btnSave_Click"/>
    </StackPanel>
</ControlTemplate>

TextBox – show number, but Canvas.Left="{Binding x}" – not worked

  • 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-05-22T22:37:19+00:00Added an answer on May 22, 2026 at 10:37 pm
      <ItemsControl ItemsSource="{Binding SomeItems}">
                    <ItemsControl.ItemTemplate>
                        <DataTemplate>
                            <TextBlock Text="{Binding Name}">
                                <TextBlock.RenderTransform>
                                    <TranslateTransform X="{Binding X}" Y="{Binding Y}"/>
                                </TextBlock.RenderTransform>
                            </TextBlock>
                        </DataTemplate>
                    </ItemsControl.ItemTemplate>
                </ItemsControl>
    

    binding-canvas

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

<DataTemplate x:Key=dirtSimple> <TextBlock Margin=10,0,0,0 Text={Binding Path=CurrentBook.Published, StringFormat=d}></TextBlock> </DataTemplate> <ControlTemplate x:Key=lbWrapPanelTemplate> <StackPanel Orientation=Horizontal Margin=2 Background=Aqua>
In MainPage.xaml.cs (Silverlight Application) I can do something like this: StackPanel myStackPanel = new
I am playing with templates in Silverlight 2.0. I copied this... <Style x:Key=RoundButton> <Setter
I am creating a Control Template for the Button control in Silverlight 2. I
Silverlight works on client side so putting any sensitive data like connection strings, passwords
Silverlight v2.0 is getting closer and closer to RTM but I have yet to
Silverlight has been available since quite some time, and Silverlight 2 allows .Net programming
Silverlight filter/class for cloud generation? Some HLSL or just C# class for generating clouds?
Silverlight is awesome, most of my application users are giving positive feedback about silverlight.
Silverlight newbie question: I've got a small Silverlight application with the following XAML snippet:

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.