|
Danke! The suggestion seems like a good idea! Thank you!
|
|
|
|
|
Hello,
"Applause" for Daniel Grunwald, who, imho, gave a considerate and appropriate response to the OP.
Given the OP's question was broad enough that you could see the earth's curvature in the distance ...
Still, imho, he responded with some "redeeming" sense of humour to the first rapier slash of JSOP.
I've voted all the (imho) sarcastic and needless posts #1 : this is a technical forum, not the lounge! And I've voted up the OP just for the sake of sheer contrariness.
Gentlemen and Gentlewomen, I ask you whether it benefits CodeProject as a whole to use the technical forums as a "dumping ground" for "interpersonal static" ?
Isn't it more valuable (I'm asking rhetorically) to just politely tell the OP that the question is so broad as to be off-topic, or unanswerable, or to suggest to OP that they do a search of the many technical articles on CP that have to with drawing, drawing surfaces, bitmaps, shapes, etc. in both WPF and WinForms ?
To those of you who wish to admire your "godliness" : I suggest you look in a mirror
best, Bill
"Many : not conversant with mathematical studies, imagine that because it [the Analytical Engine] is to give results in numerical notation, its processes must consequently be arithmetical, numerical, rather than algebraical and analytical. This is an error. The engine can arrange and combine numerical quantities as if they were letters or any other general symbols; and it fact it might bring out its results in algebraical notation, were provisions made accordingly." Ada, Countess Lovelace, 1844
|
|
|
|
|
Anyone know of a free download for the Ribbon control? I'm also looking for some cool free icons that I can download and use in my WPF application?
|
|
|
|
|
|
I'm trying to port an application that heavily relies on the classes in the System.Web namespace (a lot of http requests and responses).
The problem is, I can't seem to find anything similar in Silverlight. Am I missing something, or is Silverlight that crippled? :S
Where it seems there are only borderlines, Where others turn and sigh, You shall rise!
|
|
|
|
|
rastaVnuce wrote: Am I missing something, or is Silverlight that crippled?
No, you're not missing anything. In order to provide the full .NET functionality though, would require Silverlight to be downloaded as a several hundred megabyte download - so, a lot of functionality has been omitted.
"WPF has many lovers. It's a veritable porn star!" - Josh Smith As Braveheart once said, "You can take our freedom but you'll never take our Hobnobs!" - Martin Hughes.
My blog | My articles | MoXAML PowerToys | Onyx
|
|
|
|
|
So, a web app framework doesn't have any way to send/receive http requests? Darn... that's a suprise
Where it seems there are only borderlines, Where others turn and sigh, You shall rise!
|
|
|
|
|
rastaVnuce wrote: So, a web app framework doesn't have any way to send/receive http requests?
Yes it does - it's perfectly possible for Silverlight to work with WCF using basicHttpBinding.
"WPF has many lovers. It's a veritable porn star!" - Josh Smith As Braveheart once said, "You can take our freedom but you'll never take our Hobnobs!" - Martin Hughes.
My blog | My articles | MoXAML PowerToys | Onyx
|
|
|
|
|
|
rastaVnuce wrote: a web app framework doesn't have any way to send/receive http requests?
Please try WebClient or HttpWebRequest
Thanks and Regards,
Michael Sync ( Blog: http://michaelsync.net)
Microsoft MVP (Silverlight), WPF/Silverlight Insiders
|
|
|
|
|
Thanks. I somehow missed those.
Is there a way to make any of these work synchronously?
I'm trying to avoid a major reorganization of a working code because of asynchronous requests.
Where it seems there are only borderlines, Where others turn and sigh, You shall rise!
|
|
|
|
|
Hi,
I am working on a silver light application. In this I need to write text on am image.
If anyone have any idea on how to do this please reply me.
Thanks in advance.
|
|
|
|
|
Just a guess...
<Grid>
<Image Source="img.png"/>
<TextBlock Text"All your baze b3l0ngz to Us, Muwahawa!">
</Grid>
A train station is where the train stops. A bus station is where the bus stops. On my desk, I have a work station....
_________________________________________________________
My programs never have bugs, they just develop random features.
|
|
|
|
|
As Lloyd has indicated, the easy way to do this is to place your image on the form first, and then place a TextBlock on the form as well. Use the margin property to change the position of the text.
"WPF has many lovers. It's a veritable porn star!" - Josh Smith As Braveheart once said, "You can take our freedom but you'll never take our Hobnobs!" - Martin Hughes.
My blog | My articles | MoXAML PowerToys | Onyx
|
|
|
|
|
Hi,
I can not create a silverlight project in visual studio 2008 .net 3.5, sp1.
In add remover programs I can see the Microsoft silverlight version 3 is installed.
I have also installed Microsoft Tools Alpha Refresh for visual studio 2008.
On trying to create a silverlight project in visual studio, the error message is:
"The project type is not supported by this installation"
Any thoughts please?
Thanks
|
|
|
|
|
Does that[^] helps?
A train station is where the train stops. A bus station is where the bus stops. On my desk, I have a work station....
_________________________________________________________
My programs never have bugs, they just develop random features.
|
|
|
|
|
|
Silverlight required VS2008 SP1, which I believe is already installed. Secondly you need to install Silverlight SDK 3.0 and Silverlight Toolkit.
Installing these packets will solve your problem.
|
|
|
|
|
|
Hi All,
I have one image control, Currently I am setting the image path as absolute. Since the image is at the server side where the Silverlight application is hosted.The source set as follows:
<Image x:Name="imgMyImage" Source="http://localhost/MyImage.JPG" >
I want to set the relative source from the server in the style.
I followed following link and I succeed giving the relative path from the Image tag itself.
http://wildermuth.com/2008/03/31/Silverlight_2_Bugs_and_Issues.aspx
<Style x:Key="MyImageSetter" TargetType="Image">
<Setter Property="Source" Value="MyImage.JPG"></Setter>
</Style>
But how can I do this with style? Something like this:
When I set with this way it gives me image error
|
|
|
|
|
Your post is messed up so I can't see what you may have done wrong.
URIs for resource files are described here:
Resource Files[^]
Mark Salsbery
Microsoft MVP - Visual C++
|
|
|
|
|
1.
Build Action of Image = Resource
2.
<UserControl x:Class="SilverlightApplication3.MainPage"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns ="http://schemas.microsoft.com/expression/blend/2008" xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
mc:Ignorable="d" d:DesignWidth="640" d:DesignHeight="480">
<UserControl.Resources>
<Style x:Key="MyImageSetter" TargetType="Image">
<Setter Property="Source" Value="Al Pascual.jpg" />
</Style>
</UserControl.Resources>
<Grid x:Name="LayoutRoot">
<Image Style="{StaticResource MyImageSetter}" />
</Grid>
</UserControl>
Thanks and Regards,
Michael Sync ( Blog: http://michaelsync.net)
Microsoft MVP (Silverlight), WPF/Silverlight Insiders
|
|
|
|
|
Hi,
I am working on a silverlight application which deals with RSS feeds. As we cannot directly access RSS feeds of all the websites I wrote a WCF service to get the RSS feeds and then I passed them to the silverlight application.
In this application I have to get the Title, description and Navigation link of each item in the feed. In description I am getting all the Html content in it for description. But I have to get only the text in the description.
I tried to get it like this
rssReader = new XmlTextReader(FeedURL);
SyndicationFeed feed = SyndicationFeed.Load(rssReader);
List<SyndicationItem> feedItems = new List<SyndicationItem>();
foreach (SyndicationItem feedItem in feed.Items)
{
feedItems.Add(feedItem);
}
But for this I am getting error at line:2 as:
The type 'System.Xml.XmlReader' is defined in an assembly that is not referenced. You must add a reference to assembly 'System.Xml, Version=2.0.5.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e'.
I tried to add System.Xml of Version=2.0.5.0 but I cannot find it in the reference.
If anyone have idea to solve this error or procedure to get only the text in the description node please reply me.
Thanks in advance.
|
|
|
|
|
|
Below is the code page:
public partial class DataBinding : UserControl
{
public DataBinding()
{
InitializeComponent();
List<PlaylistItem> lstPLI = new List<PlaylistItem>();
for (int i = 0; i < 3; i++)
{
lstPLI.Add(new PlaylistItem("Name" + i.ToString(), "Path" + i.ToString()));
}
lstPlayList.ItemsSource = lstPLI;
}
}
public class PlaylistItem
{
public string FileName;
public string FilePath;
public PlaylistItem()
{
}
public PlaylistItem(string filename,string filepath)
{
FileName = filename;
FilePath = filepath;
}
}
And here is the xaml page:
<UserControl x:Class="FirstSilverLight.DataBinding"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
Width="400" Height="300">
<Grid x:Name="LayoutRoot" Background="White">
<ListBox x:Name="lstPlayList">
<ListBox.ItemTemplate>
<DataTemplate>
<StackPanel Orientation="Horizontal">
<TextBlock Text="{Binding FileName}"></TextBlock>
<TextBlock Text="{Binding FilePath}"></TextBlock>
</StackPanel>
</DataTemplate>
</ListBox.ItemTemplate>
</ListBox>
</Grid>
</UserControl>
The Listbox doesnot show any items in it when I run this, though Listbox items.count is 3 when i debug this. Any idea what the problem is?
s.a.w.
|
|
|
|