|
Wooo!
I love it when things are clear cut!
Thanks Pete.
|
|
|
|
|
Dear All,
I just want to redesign one of our unmanaged VC++ apps.
I have drilled WPF for several weeks,but no solution has been found.
Because I can not play video stream from our unmanaged VC++ apps in UI.(I want to use CCW for communication between the managed WPF UI and unmanaged VC++ apps)
I am a beginner in programe, and thirsty for a solution.
Any hint and suggestion will be appreciated!
|
|
|
|
|
I don't know what the best solution for you is, but in my opinion
WPF isn't the best solution if you stay with C++.
First, WPF is managed. Second, you'll get no designer support in
Visual Studio or Expression for C++.
If WPF's features and programming model suit your needs, I would use
C# for the UI, keep your existing native C++ in DLLs if necessary, and
use C++/CLI to bridge between the managed and native code.
In fact, that's what I did/do
Mark Salsbery
Microsoft MVP - Visual C++
|
|
|
|
|
I appreciated your answer deeply.
Our native C++ app is such a big system based on document/view framework of MFC,including 10 dlls at least,that UI is only one of those.Replacing the UI with a new one with friendly outlook and usage is my task.
I will research C++/CLI at right.
Any solution else, other than WPF?
modified on Wednesday, January 7, 2009 10:02 PM
|
|
|
|
|
Hi all.
How can we simulate DragMove() method for the other elements in a WPF window ?
It means we could move an element with mouse points
|
|
|
|
|
|
Nice response. Thanks Karl
|
|
|
|
|
Pleasure, glad to help.
modified 27-Feb-21 21:01pm.
|
|
|
|
|
Hi,
I have a xbap(browser based) wpf application.
I have a htmlhelp file(.chm) which has to be integrated with the application ie on pressing F1 instead of internet explorer help opening up,the htmlhelp file should open.
I am struggling with this for the past one week.
Please help.
|
|
|
|
|
I need to figure out how to customize cut&paste built in command on a context menu to do multiple functions. I need to highlight text from a text box then click on the context menu which shows up after right click, which needs to take me to a new form and automatically paste the text in another Text Box on the new form. I'm wondering if this is possible???
Any help would be appreciated..
Thank You!!
|
|
|
|
|
|
I have JSON string as a out put of some http://localhost:1586/Versentia.Web.UI/DataHandler.ashx
where requestAction = GetAll and requestType: ObjectInstances.
When I see the response using firebug, I can see the data returned by GetAll method,
But when I write follwing code, I don't get data;
var url = new Uri("http://localhost:1586/Versentia.Web.UI/DataHandler.ashx/");
WebRequest request = WebRequest.Create(url);
var response = (HttpWebResponse)request.GetResponse();
Stream dataStream = response.GetResponseStream();
var reader = new StreamReader(dataStream);
string responseFromServer = reader.ReadToEnd();
var metaData =responseFromServer.Deserialize<dictionary><string,object>>();
I don't know how to access the GetAll method to retrieve the ObjectInstances object. I want to create WPF based on the retrived object. I am very new to programming and need to achieve this asap.
Please help.
Veena
|
|
|
|
|
In my WPF browser based application, I want to display a page with tab control. Each tab item in the tab control will display data for a single object in a collection in the application. The number of objects in the collection is known only at run time (so I don't know how many tabs the application will display at design time).
How can I create the content (edit boxes, labels, etc. for various data values of the object) on tab items that are dynamically created by the application based on the number of objects in the collection?
Any suggestions?
Thank you
|
|
|
|
|
Use a datatemplate to create your tabitems.
Use a ContentControl to display your collection, with this new datatemplate.
|
|
|
|
|
Hello,
I used this MSDN guide (http://msdn.microsoft.com/en-us/library/aa581779.aspx[^]) to build BLL for my application. The DAL behind that BLL is a TypedDataSet.
To explain what i'm trying to achive i'll use two tables from the database:
Authors Table
-------------
AuthorID
Name
RankID
Authors Table
-------------
RankID
RankTitle
In the database i have a relation between these tables.
Following the mentioned MSDN guide i created BL objects for each table that return typed data tables, for example:
AuthorsBL.GetAuthors() returns AuthorsDataTable, AuthorRanksBL.GetAuthorRanks() reutrn AuthorRanksDataTable.
What i'm trying to figure out is how to create a window in WPF with a list box that lists all authors, a text box to edit the author's name and a combobox to edit/select the author's rank.
I can bind the listbox to the authors object and it shows the records, i can bind the combobox to the AuthorRanks table and it shows all records but i can't find a way to do so that when the selection in the listbox changes the combobox's selection will update too. I'm trying to do this the "right" way, as i see it, by using the XAML properties like DataContext, ItemSource, SelectedValue and SelectedValue path.
In the end i need to have a "Save" button to save all the changes so correct data binding is very important for me.
I'm not sure how to approach this, maybe the BLL should be built in a different way for WPF or i need some extra configuration in XAML.
Any help, explanation or a link to a guide will be most appriciated!
Thanks,
darthBug
Join the dark side of the code
|
|
|
|
|
Hi.
I'm going to create a layer above of any elements !
In HTML we could do it with a something like this :
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Untitled Document</title>
<style type="text/css">
</style>
</head>
<body>
<div id="apDiv1"></div>
</body>
</html>
Now I wanna know, we could do it in XAML ?
Is it possible ?
|
|
|
|
|
If you want to bring things to the front in WPF, then you really need to take a look at the 3D features of WPF. Welcome to the thing that really sets WPF apart from Win Forms.
|
|
|
|
|
Pete O'Hanlon wrote: the 3D features of WPF
Could you say how I can do it with 3D features ? or do you have a sampel
I'm very new on 3D in WPF .
|
|
|
|
|
You might like to look at this[^] article for some ideas.
|
|
|
|
|
|
I would probably use an Adorner or Popup (if it needed to be outside the window boundaries). If you override GetVisualChild and VisualChildrenCount you can create an adorner that displays any element easily. There are some articles on this site which use adorners and probably have everything you need.
|
|
|
|
|
Can I build silverlight applications with Visual Studio 2005 Professional without installing or upgrading to Visual Studio 2008?
I mean, are there any tools available for Visual Studio 2005 like "Silverlight tools for Visual Studio 2008"?
I am waiting.... please tell me...
I shall be highly thankful to you from core of my heart for this...
Software Development & Web Development is my addiction. I am a Visual C# 2.0 and ASP.NET 2.0 Developer and working in Visual Studio 2005 using Dot Net Framework 2.0.
Email: bottomless.wisdom@hotmail.com
Web: http://bottomless-wisdom.spaces.live.com
|
|
|
|
|
|
no, vs 2005 does not support silverlight.
|
|
|
|
|
Bottomless Wisdom wrote: Can I build silverlight applications with Visual Studio 2005 Professional without installing or upgrading to Visual Studio 2008?
I don't think so
|
|
|
|