|
Read my tag-line
It’s not because things are difficult that we do not dare, it’s because we do not dare that things are difficult. ~Seneca
|
|
|
|
|
He who dares, wins! You sound like a winner. Go for it, I say. Oh, and good luck with the project.
When I was a coder, we worked on algorithms. Today, we memorize APIs for countless libraries — those libraries have the algorithms - Eric Allman
|
|
|
|
|
Her tag should actually read "she who dares bakes"
|
|
|
|
|
Do you want the recipe for my World Famous Shortbread?
It’s not because things are difficult that we do not dare, it’s because we do not dare that things are difficult. ~Seneca
|
|
|
|
|
|
How? You have no email link. Please advise!
It’s not because things are difficult that we do not dare, it’s because we do not dare that things are difficult. ~Seneca
|
|
|
|
|
display image in grid in silverlight
|
|
|
|
|
By using an Image control.
|
|
|
|
|
I'm working on a WPF application.
I'm getting the complile time error
The type reference cannot find a public type named 'OperatorModel'. Line 14 Position 51.
Here's the XAML:
<Window x:Class="Services.Late2Lien.UI.Views.MainWindow"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:telerik="http://schemas.telerik.com/2008/xaml/presentation"
xmlns:local="Services.Late2Lien.UI"
xmlns:models="Services.Late2Lien.Models;assembly=Services.Late2Lien.Models"
Title="Walz Late2Lien"
Height="596"
Width="786">
<Window.Resources>
<HierarchicalDataTemplate DataType="{x:Type models:OperatorModel}"
ItemsSource="{Binding Path=Facilities}">
</HierarchicalDataTemplate>
It's failing on the HierarchicalDataTemplate line.
The Models are in a seperate project in the solution called Services.Late2Lien.Models and the project is referenced in this project.
When creating the xmlns:models tag, intellisense does NOT show the Services.Late2Lien.Models namespace.
I've seen this problem before, and there's alot of Google hits about it, but I can't seem to resolve it. Anyone see what's wrong here?
Thanks
Everything makes sense in someone's mind
|
|
|
|
|
Trying doing a clean and build.
Too much of heaven can bring you underground
Heaven can always turn around
Too much of heaven, our life is all hell bound
Heaven, the kill that makes no sound
|
|
|
|
|
Did that already
[UPDATE]
I removed the reference to the Models project an created a reference to the Models.dll and now it works.
Everything makes sense in someone's mind
modified 27-Sep-11 13:42pm.
|
|
|
|
|
Hello Everyone,
An Image which is below the listview. Listview contains some small images and their names.
I want to change the below image on mouseover of listview Item.
Thanks in Advance
Ashish Parmar
|
|
|
|
|
Just thinking aloud
Use the mouseover event to select the item in the listview and bind the image to the uri of the selected item.
Never underestimate the power of human stupidity
RAH
|
|
|
|
|
That's perfectly Fine...
But I want to know about the code in XAML..
how can i define code in XAML to have this functionallity..
|
|
|
|
|
I'm working on a WPF app using MVVM. I want to change an image at runtime in the viewmodel. Here's my XAML:
<Image Height="18" Width="18" Stretch="None" Source="{Binding Path=AddProjectImage}"/>
Here's the ViewModel:
private BitmapImage _AddProjectImage = null;
public BitmapImage AddProjectImage
{
get
{
return _AddProjectImage;
}
set
{
if (_AddProjectImage != value)
{
_AddProjectImage = value;
RaisePropertyChanged("AddProjectImage");
}
}
}
and
try
{
Uri theUri = new Uri("pack://application:,,,/Images/add_project_enabled_16x16.png");
AddProjectImage = new BitmapImage(theUri);
}
catch (Exception e)
{
}
I'm getting:
{"Assembly.GetEntryAssembly() returns null. Set the Application.ResourceAssembly property or use the pack://application:,,,/assemblyname;component/ syntax to specify the assembly to load the resource from."}
I tried this exact code in a test WPF application and it works fine. Anyone see what'swrong?
Everything makes sense in someone's mind
modified 26-Sep-11 16:32pm.
|
|
|
|
|
Hello,
I have an object that grabbs monochrome images from a video.
And every frame he grabbs he gives me an array of bytes, each array cell represent a pixel gray level(0-255) of the image he grabbed.
What i wanna do is take this byte array and convert it image and present it on my WPF window.
So actually what i wanna do is to see the video on the window.
Maybe its an easy one but im new to .NET and WPF.
Thanks.
|
|
|
|
|
Do you know the format of the image that the byte array represents? Ultimately, all graphics are just byte arrays - if the proper processor is in place, the image can be displayed.
|
|
|
|
|
I dont get this info frome my frame grabber i get only the byte array.
|
|
|
|
|
But do you know the format? If not, how do you expect to be able to reconstruct the image? A JPG is not the same as a PNG which is not the same as a GIF file, and so on... You need to know the format of the image, the width, the height, the DPI (x and Y), palette and so on. Without this information, it's going to be very tricky for you to correctly interpret the byte array.
|
|
|
|
|
Ok i got it i think,
Lets suppose i do know the image format and all the attributes you named,
what do i do next to present the image?
Thanks
|
|
|
|
|
|
|
sasolanki007 wrote: Give your opinion on this.
It's only an opinion.
|
|
|
|
|
Silverlight isn't dead. It will be actively supported until at least 2018. Future versions haven't been announced, but that doesn't mean the platform is being killed off.
|
|
|
|
|
No Silverlight hasn't dead but, the development has discontinued due to the restrictions imposed by Microsoft. Microsoft had announced Silverlight end of life, so the businesses that still depend on Microsoft Silverlight should act fast to migrate the Silverlight applications. Now is the right time to understand the challenges in migrating the Silverlight applications to a modern framework because the overall support end date of Silverlight to be Oct 2021 so, a lot of planning and business risk evaluation needs to consider for a successful migration.
|
|
|
|