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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 13, 20262026-05-13T15:39:59+00:00 2026-05-13T15:39:59+00:00

When I worked on web pages I used these a lot. While building a

  • 0

When I worked on web pages I used these a lot. While building a page out for WPF project the other day I ended up building a page that looked like it had an in-page dialog on it but it was the only thing on the page.

My question here is. Has any one created such component that allows for easy creation of these kinds of dialogs.

  • 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-13T15:39:59+00:00Added an answer on May 13, 2026 at 3:39 pm
    using System;
    using System.Collections.Generic;
    using System.Linq;
    using System.Text;
    using System.Windows;
    using System.Windows.Controls;
    using System.Windows.Data;
    using System.Windows.Documents;
    using System.Windows.Input;
    using System.Windows.Media;
    using System.Windows.Media.Imaging;
    using System.Windows.Navigation;
    using System.Windows.Shapes;
    using System.ComponentModel;
    
    namespace xxx.Wpf
    {
        /// <summary>
        /// Interaction logic for InPageDialog.xaml
        /// </summary>
        public partial class InPageDialog : UserControl, INotifyPropertyChanged 
        {
            public InPageDialog()
            {
                InitializeComponent();
            }
            public void Show(IDialog ucContent)
            {                        
            }
    
            void ucContent_OnClose(object obj)
            {
    
            }
            protected virtual void Changed(string propertyName)
            {
                PropertyChangedEventHandler handler = PropertyChanged;
                if (handler != null)
                {
                    handler(this, new PropertyChangedEventArgs(propertyName));
                }
            }
    
            public static readonly DependencyProperty ContentBackgroundProperty = DependencyProperty.Register("ContentBackground", typeof(Brush), typeof(InPageDialog), new UIPropertyMetadata(Brushes.White));
            public Brush ContentBackground 
            {
                get { return (Brush)GetValue(ContentBackgroundProperty); }
                set { SetValue(ContentBackgroundProperty, value); }
            }
    
            public static readonly DependencyProperty ContentBorderBrushProperty = DependencyProperty.Register("ContentBorderBrush", typeof(Brush), typeof(InPageDialog), new UIPropertyMetadata(Brushes.White));
            public Brush ContentBorderBrush 
            {
                get { return (Brush)GetValue(ContentBorderBrushProperty); }
                set { SetValue(ContentBorderBrushProperty, value); }
            }
    
            public static readonly DependencyProperty ContentActiveBackgroundProperty = DependencyProperty.Register("ContentActiveBackground", typeof(Brush), typeof(InPageDialog), new UIPropertyMetadata(Brushes.White));
            public Brush ContentActiveBackground 
            {
                get { return (Brush)GetValue(ContentActiveBackgroundProperty); }
                set { SetValue(ContentActiveBackgroundProperty, value); }
            }
    
            public static readonly DependencyProperty ContentBorderThicknessProperty = DependencyProperty.Register("ContentBorderThickness", typeof(Thickness), typeof(InPageDialog));
            public Thickness ContentBorderThickness 
            {
                get { return (Thickness)GetValue(ContentBorderThicknessProperty); }
                set { SetValue(ContentBorderThicknessProperty, value); }
            }
    
            public static readonly DependencyProperty ContentBlurRadiusProperty = DependencyProperty.Register("ContentBlurRadius", typeof(double), typeof(InPageDialog));
            public double ContentBlurRadius 
            {
                get { return (double)GetValue(ContentBlurRadiusProperty); }
                set { SetValue(ContentBlurRadiusProperty, value); }
            }
    
            public event PropertyChangedEventHandler PropertyChanged;
        }
    
        public interface IDialog
        {
            event Action<object> OnClose;
        }
    }
    
        <UserControl x:Class="xxx.Wpf.InPageDialog"
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        xmlns:me="clr-namespace:xxx.Wpf"
        Visibility="Collapsed" DataContext="{Binding}">
        <UserControl.Resources>
            <Style TargetType="{x:Type Button}">
                <Setter Property="Margin" Value="4"/>
                <Setter Property="Width" Value="60"/>
            </Style>
        </UserControl.Resources>
        <UserControl.Template>
            <ControlTemplate TargetType="{x:Type me:InPageDialog}">
            <Grid HorizontalAlignment="Stretch"  VerticalAlignment="Stretch" DataContext="{TemplateBinding DataContext}">
                <Rectangle HorizontalAlignment="Stretch" 
                           VerticalAlignment="Stretch" 
                           Opacity="0.765" 
                           Fill="{TemplateBinding ContentBackground}" />
    
                <Border VerticalAlignment="Center" 
                        HorizontalAlignment="Center" 
                        CornerRadius="5" 
                        BorderBrush="{TemplateBinding ContentBorderBrush}" 
                        BorderThickness="{TemplateBinding ContentBorderThickness}" 
                        Background="{TemplateBinding ContentActiveBackground}" >
                    <ContentPresenter Margin="0" Width="Auto" Height="Auto" Content="{TemplateBinding Content}" />
                </Border>
    
            </Grid>
            </ControlTemplate>
        </UserControl.Template>
    </UserControl>
    

    Is a start to the project and works for what we do at my work.

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

Sidebar

Related Questions

I have never worked with web services and rails, and obviously this is something
My web application worked very well in a Windows Server 2003 with .NET Framework
I've worked with Cruise Control as the CI framework in my last project. Any
I have a web application, which was designed and always worked under root context
I'm having problems with my ASP.NET web forms system. It worked on our test
Having worked with Classic ASP for about 2 years now by creating a few
I worked on an embedded system this summer written in straight C. It was
I worked for a company that had both Java and .NET implementations of an
I have worked for 5 years mainly in java desktop applications accessing Oracle databases
I've worked on a number of database systems in the past where moving entries

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.