|
thanks...
I am using system.net namespace.even its not comming..
Raaj
|
|
|
|
|
|
actually that is .Xaml file(WpfBrowserApplication)..system.net.httpwebrequest is not comming..
Raaj
|
|
|
|
|
r aa j wrote: that is .Xaml file(WpfBrowserApplication).
Steps:
1) Go to the solution explorer of your project.
2) Right-click on reference node.
3) Select "Add Reference"
4) Find "System.Net" assembly and add it.
5) Go to your code
6) Type "System.Net.HttpWebRequest" (then, you will get it.)
The steps work in WPF, Xbap, Silverlight 2 beta1/2.
Note: This forum is dedicated for Silverlight question only. If you want to ask any question related to Xbap (WPF Browser Applcation), please ask in WPF/WCF/WF forum of Codeproject.
|
|
|
|
|
|
hi Michael you Know what is the solution for this error like
1 Error:The name 'InitializeComponent' does not exist in the current context in silverlight
Raaj
|
|
|
|
|
Hello,
I am new to WPF and I want to learn it as fast as I can :P I can't wait to give these new 3D effects to the applications I want to create. I found this cool 3d flip feature in this site
http://www.interact-sw.co.uk/iangblog/2007/05/17/wpf-flippable-3D-list[^]
Its purely made in XAML, but i know we can use Visual Studio 2008 and VB.NET to create effects like these... i tried to look for any kind of a tutorial on the net but i didn't get any which could teach me flipping controls in WPF windows in this manner.
If anyone could help me out I would be grateful
thank you
|
|
|
|
|
Why don't you just download the source for that page and work through it?
|
|
|
|
|
yes i have downloaded the xaml source code of that page... and am also trying to understand it... its pure XAML and i have no experience at all about it... but we can implement that using programming code in vb.net 2008 wpf if i am not wrong? so i was wondering if there is any proper tutorial which can guide me in what i want to achieve
|
|
|
|
|
No one is going to give you a complete translation of this project (I am having problems even downloading it). If you are just starting with XAML/WPF then I would suggest that you try something that is a bit more simpler, and perhaps buy a book on the subject. To answer one of your questions, all XAML can be converted to a C# or VB alternative (give or take amounts of code to accomplish the same thing), however XAML was meant to streamline the process. Also, if you are a student at a university or high school, you can get the Expression Studio for free from the DreamSpark program in my signature. Expression Blend will definitely help you with starting to write XAML.
Regards,
Thomas Stockwell
Programming today is a race between software engineers striving to build bigger and better idiot-proof programs, and the Universe trying to produce bigger and better idiots. So far, the Universe is winning.
Visit my homepage Oracle Studios
Discounted or Free Software for Students:
DreamSpark - downloads.channel8.msdn.com
MSDN Academic Alliance - www.msdnaa.com
|
|
|
|
|
Thank you.
Yes I am a student. But I already have Microsoft Expression Studio 2, I got it yesterday only from a friend of mine. Its just awesome. Using blend I created effects which I could never possibly dream of making using VB.Net alone. That too without knowing anything about XAML. I think I can use blend to get that effect displayed on that site.
I tried out some effects on my own for the first time :P . I imported a picture in the blend window and I made it 3D image from the option given in the tool's menu. After that the viewport3d was added and I could animate the picture in 3D motions. onMouseDown event it would zoom out, rotate on the Y axis and then again rotate back and zoom back in. Here is the application file of the first demo i made using blend
http://rapidshare.com/files/133404008/UntitledProject5.rar.html[^]
But I can't figure out how to include the viewport 3d in system controls like group box, rectangles etc. I googled for it too, but no luck.
If you could help me out a bit here, I can try creating that effect
|
|
|
|
|
I am not familiar with the viewport3d control, but I did notice it in a few of my WPF books (so look into getting a good book). You may also want to search the CodeProject, because I have seen some articles about it here.
Regards,
Thomas Stockwell
Programming today is a race between software engineers striving to build bigger and better idiot-proof programs, and the Universe trying to produce bigger and better idiots. So far, the Universe is winning.
Visit my homepage Oracle Studios
Discounted or Free Software for Students:
DreamSpark - downloads.channel8.msdn.com
MSDN Academic Alliance - www.msdnaa.com
|
|
|
|
|
yes, I think I should get hold of a good book first thank you
|
|
|
|
|
Some book suggestions:
Windows Presentation Foundation Unleashed: Adam Nathan
Pro WPF: Windows Presentation Foundation in .NET 3.0: MacDonald
Pro WPF in C# 2008: MacDonald
I own these three WPF books and they are excellent resources (I also own many more on VS2008, but these are specific to WPF).
Regards,
Thomas Stockwell
Programming today is a race between software engineers striving to build bigger and better idiot-proof programs, and the Universe trying to produce bigger and better idiots. So far, the Universe is winning.
Visit my homepage Oracle Studios
Discounted or Free Software for Students:
DreamSpark - downloads.channel8.msdn.com
MSDN Academic Alliance - www.msdnaa.com
|
|
|
|
|
Do you also provide a student's version of Zam 3D?
|
|
|
|
|
You would have to look into that yourself. You might even be able to google a student version of Zam 3D (I have never heard of it).
Regards,
Thomas Stockwell
Programming today is a race between software engineers striving to build bigger and better idiot-proof programs, and the Universe trying to produce bigger and better idiots. So far, the Universe is winning.
Visit my homepage Oracle Studios
Discounted or Free Software for Students:
DreamSpark - downloads.channel8.msdn.com
MSDN Academic Alliance - www.msdnaa.com
|
|
|
|
|
Do you also provide a student's version of Zam 3D on your site??
|
|
|
|
|
hey can anyone tell me where can I get a CTP version of ZAM 3D. It's not available on their original site anymore
|
|
|
|
|
Like in .NET FW 2.0, there is Anchor property to set the controls Auto arrange. It will be much helpful if anyone could share info about similar property in WPF
|
|
|
|
|
For objects that are placed inside a grid a combination of HorizontalAlignment, VerticalAlignment and Margin can be used to control the position in a similar way to "Anhor".
Anchor right & bottom <=> HorizontalAlignment="Right" VerticalAlignment="Bottom" Margin="<not used="">,<not used="">,<distance from="" right="" edge="">,<distance from="" bottom="" edge="">"
Anchor left & right <=> HorizontalAlignment="Stretch".
As I said the controls must be placed inside a grid;
Mihai,
|
|
|
|
|
|
Don't think in terms of anchors ... WPF is a different beast.
As well as using Layout Grids you need to think about putting stack panels and so forth inside grids in order to get the layout of things working properly.
Simply using grids and then margins and so on will yield a UI that doesn't always scale well. Grids are good for deviding up UI but not the best way to actually position things ...
|
|
|
|
|
Ok,
I've defined a simple class called NonDataNode that has two members, Name (string) and ContainedItems (object) which will hold whatever type of object is contained by that node in the tree (couldn't be more specific because it could be just about anything). I also created another class called NonDataNodeList, which inherits from List<NonDataNode>. There are no changes in implementation, I just wanted a name that was easier to work with in XAML. ImageOutputType is a business object in my application. lib and local are namespaces defined with xmlns elements at the top of the XAML. The Window.Resources section is before the tree control.
So, the XAML for my treeview looks like this:
<TreeView Grid.Column="0" Grid.Row="2" HorizontalAlignment="Stretch" Background="Transparent" Foreground="{StaticResource TreeViewItemText}"
BorderBrush="DarkRed" BorderThickness="1" x:Name="trvNavigate" ItemTemplate="{StaticResource NonDataNodeTemplate}" >
</TreeView>
In my Window.Resources section, I've defined the following:
<HierarchicalDataTemplate DataType="local:NonDataNode" ItemsSource="{Binding Path=ContainedItems}" x:Key="NonDataNodeTemplate">
<TextBlock Text="{Binding Name}" Style="{StaticResource TreeViewNodeText}"/>
</HierarchicalDataTemplate>
<HierarchicalDataTemplate DataType="lib:ImageOutputType">
<TextBlock Text="{Binding Name}" Style="{StaticResource TreeViewNodeText}"/>
</HierarchicalDataTemplate>
You can see that the key for the heirarchical data template is NonDataNodeTemplate and that the treeview uses that as the item template. However, when I try to run this thing, I get the following error:
Cannot find resource named '{NonDataNodeTemplate}'. Resource names are case sensitive. Error at object 'trvNavigate' in markup file 'WGAdminPanel;component/mainwindow.xaml' Line 76 Position 82.
Now, I'm sure it's something simple I'm missing, but I've been stuck on this for about 4 hours. Can someone help me? I've tried google, but so far I haven't found any examples that I can make work.
Thanks,
Will
|
|
|
|
|
what happens if you try this:
DataType="{x:Type local:NonDataNode}" instead of DataType="local:NonDataNode" ?
Mihai,
|
|
|
|
|
That fixed it. Thank you.
|
|
|
|