473,466 Members | 1,370 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

add control to a windows presentation foundation in csharp

1 New Member
I am trying to add some controls to a windows presentation foundation window in csharp.

the window opens and displays itself using the standard xaml declaration.

I then want to add controls using csharp directly, not using the associated xaml file.

which method in the window class do i use to add my new controls with and display them after the window is created and displayed.

I can only find methods such as addvisualchild

while this accepts my controls they do not display on the windows after issuing the show command

can anyone help me with this.

i dont want to use xaml to display the controls either.

many thanks
steve
Jun 11 '11 #1
0 977

Sign in to post your reply or Sign up for a free account.

Similar topics

1
by: rajani | last post by:
How to create control panel applet in CSharp. I know that a dll renamed as .cpl with cplapplet function exported has to be created which is not possible using csharp. Any help is appreciated. ...
1
by: Henrik Dahl | last post by:
Hello! I'm trying to propagate a ContextMenu using a HierarchicalDataTemplate. The rendering looks just fine but how do I assign the Command property and CommandParameter property of the...
2
by: nguyen1105 | last post by:
Hello, It seems that the .Net Framework 3.0 Microsoft Presentation Foundation has no UI DataGrid control. I've verified the package System.Windows.Controls in the .Net Framework 3.0 Microsoft...
0
by: Claudia Fong | last post by:
Hi, I'm quite new in C# programming and windows workflow foundation I have a problem regarding a Local Communication Service question and is like this: I have an interface in my workflow:
2
by: nivedita | last post by:
WPF Tutorial ========== http://wpftutorial.blogspot.com/
2
by: Speccy | last post by:
Is it possible to run Windows Workflow Foundation on .NET Framework 2.0? We do not want to go down the road of installing .NET 3.x framework, at least not for the foreseeable future. We want to...
0
by: Chris Ellis | last post by:
Hi, I just started playing with Windows Presentation Foundation stuff... fun stuff... and I just happened across what appears to be a cache of every executable that I build or something... and I...
2
by: =?Utf-8?B?QXJtaW4gR2FsbGlrZXI=?= | last post by:
Hi I've got an unexpected error in a unit test. I want to test a activity from Windows Workflow Foundation (WF). First, I executed the test outside of the activity just in the test-init...
1
by: Ryan Liu | last post by:
Hi, What is the relationship between WPF and ASP.NET ? Is that WPF going to replace WinForm based desktop applications? But for web application, it is a different story? I am going to...
2
by: sunny | last post by:
Hi All I am in a trival situation!!! I have to choose a technology for the business logic. I need to choose between Enterprise Library and Windows Workflow Foundation. Can someone please shed...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
1
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.