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 7019479
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T23:11:20+00:00 2026-05-27T23:11:20+00:00

I am experimenting with WPF/XAML and i have a basic understanding of the available

  • 0

I am experimenting with WPF/XAML and i have a basic understanding of the available controls. What i still dont understand is how to combine them.
To practice this, i tried to copy the following controls:
enter image description here

The components i designed look like this:

enter image description here

And this is the coding:

<Window x:Class="Uranus.View.MainWindow"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    Title="MainWindow" Height="469" Width="750">
<Window.Resources>
    <Style x:Key="Flat">
        <Setter Property="Control.Background" Value="{x:Null}" />
        <Setter Property="Control.BorderBrush" Value="{x:Null}" />
        <Style.Triggers>
            <Trigger Property="Control.IsMouseOver" Value="True">
                <Setter Property="Control.Background" Value="{x:Null}" />
                <Setter Property="Control.BorderBrush" Value="{x:Null}" />
                <Setter Property="Control.FontWeight" Value="Bold" />
            </Trigger>
            <Trigger Property="Control.IsFocused" Value="True">
                <Setter Property="Control.FontWeight" Value="Bold" />
            </Trigger>
        </Style.Triggers>
    </Style>
</Window.Resources>
<Grid>
    <!-- -->
    <Rectangle Fill="LightBlue" Margin="277,21,160,346"/>

    <!-- -->
    <TextBox Height="30" HorizontalAlignment="Left" Margin="277,113,0,0" Name="textBox1" VerticalAlignment="Top" Width="272" />

    <!-- -->
    <Image Source="..\Pictures\Suchlupe.jpg" Margin="309,171,391,231" ></Image>

    <!-- -->
    <TextBox Height="23" HorizontalAlignment="Left" Margin="374,176,0,0" Name="textBoxSucheTabelle" VerticalAlignment="Top" Width="120" Foreground ="LightGray" Text="Nachricht suchen"/>

    <!-- -->
    <Button Name="buttonSuchpfeil" Style="{StaticResource Flat}" Margin="509,171,197,232">
        <StackPanel>
            <Image Source="..\Pictures\Suchpfeil.jpg"></Image>
        </StackPanel>
    </Button>
  </Grid>
</Window>

My question is: How can i combine my controls to look like in the example? I really want to learn more about WPF!

Thanks for any help!

  • 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-27T23:11:21+00:00Added an answer on May 27, 2026 at 11:11 pm

    There are a lot of resources out there to understanding XAML, especially for WPF. I’d suggest the following to learn more:

    1. Purchase and read WPF/XAML books.
    2. Lookup examples online on styling controls.
    3. Understand the controls that are shipped with the .NET Framework, as well as any third party control libraries you plan to use.
    4. Use Expression Blend to play around with user control design. It is extremely powerful and has a Photoshopesque feel to it.
    5. Look at the XAML generated by designers and tweek things to see how certain changes affect the control layout and behavior.
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Hello: I have been experimenting with WPF this afternoon, Im wondering does anyone know
I'm experimenting with databinding in WPF I have this datagrid that is bound to
I have been experimenting with WPF and rendering strict XAML markup in a web
Can someone explain this WPF behaviour? <Page xmlns=http://schemas.microsoft.com/winfx/2006/xaml/presentation xmlns:x=http://schemas.microsoft.com/winfx/2006/xaml> <Grid> <!-- Rounded mask -->
I'm currently experimenting with the WPF NHibernate toolkit and I have to say: it's
I have some WinForms controls that I need to use in a WPF window.
Experimenting with Cocos2D collection detection and have some questions. First, some background: This is
I have been experimenting with WPF and using a CustomControl have made my own
I'm experimenting with MVVM in the context of a simple WPF app. I have
I have a simple WPF application I'm using for experimenting. I have two themes

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.