|
Got a partial solution of the problem:
If we use the user control i.e. the .ascx file in the xaml page
we can do it like
1. REgister the usercontrol with following tag in
xmlns:MyUserControl="clr-namespace:SilverlightAppWeb"
where SilverlightAppWeb is the namespace of the .ascx user control
2. Use it anywhere with tag
<MyUserControl:Servicecontent/>
where Servicecontent is the class name.
This was successful for calling xaml file, i.e. xaml usercontrol.
But giving following error with .ascx file:
AG_E_PARSER_BAD_TYPE [Line....]
where the line is <MyUserControl:Servicecontent/> when .ascx is used.
And shows contents when the reference of xaml page is given....
Further let's try....
|
|
|
|
|
Short of purchasing[^] a commercial solution there's no easy way to accomplish this (well there is one, but it's a hack). One common way of doing this (the hack way) is to float a div over Silverlight to make it appear that this is inside the actual control.
|
|
|
|
|
I have a menuitem inside GridViewColumn.HeaderTemplate
that binds a
CommandParameter=”{Binding RelativeSource={RelativeSource AncestorType=ContextMenu}, Path=PlacementTarget}”
PlacementTarget puts me at a grid that forms the header datatemplate of my GridViewColumn.
what would be the binding expression to continue this up to finally bind GridViewColumn to the commandparameter?
I want to be able to walk up the dom using nested binding expression... anyone know how to do this?
|
|
|
|
|
Hi people
I want to know that if it is possible to somehow have something in wpf similar to messengers we generally see. that is what exactly i want is that if i have some friends, is it possible for me to know their online status? that is when they come online i should know that they are online and similar for offline.
thanks and regards
krishnendu mukherjee
|
|
|
|
|
have a look at wcf, maybe that helps (dont know it myself)
|
|
|
|
|
Hey guys,
I have a WCF data service that works well with an Internet application I developed (using Forms authentication). Now I'm trying to create a WPF desktop application that uses this same data service and does its own custom authentication. The problem is my WCF data service always sees Membership.GetUser() as null. I've tried calling Membership.ValidateUser() within both the WPF application and the WCF data service with no luck. What am I missing, what am I doing wrong?
Thank you,
David
|
|
|
|
|
Hi All,
i'm a new one user of NHibernate and WPF (i'm a new one also in the programmer's field) so in studying and exerciting to develop my knowledge about these tools,so meantime i 'm studying i 'm doing an exercise about NHibernate with WPF.
In my exercise ,when i debug the project,i receive this error :
NullReferenceException was unhandled.
Object reference not set to an instance of an object..
in this method
public void AddContact()
{
Contact _contact = new Contact();
ContactViewModel model = new ContactViewModel(_contact);
ContactWindow w = new ContactWindow();
w.Owner = this.View;
model.View = w;
w.Model = model;
w.DataContext = model;
if (w.ShowDialog() == true)
ContactList.Add(_contact);
this.View.Focus();}
I got a poor knowledge so i fall down in stupid error losing so much time to understand and after i get confuse so i try to ask help to make me understand how i can work out this error..
I post my project on this link:
http://www.badongo.com/it/file/11984705
Thanks for the attention i wish you happy time.
Bye
modified on Thursday, November 6, 2008 5:28 AM
|
|
|
|
|
Change these lines
if (w.ShowDialog() == true)
ContactList.Add(_contact); to
if (w.ShowDialog() == true)
{
if (ContactList == null)
ContactList = new List<Contact>();
ContactList.Add(_contact);
}
|
|
|
|
|
HI Pete,
thanks to reply me,
i changed there lines:
if (w.ShowDialog() == true)
ContactList.Add(_contact);
to
if (w.ShowDialog() == true)
{
if (ContactList == null)
ContactList = new BindingList<contact>();
ContactList.Add(_contact); }
because it doesn't allow me to insert List<> so i insert BindingList <t>...
after i will debug and see what happen..
Thanks again.
i wish you happy work.
See you later
|
|
|
|
|
Yes Pete,
that's all right,
now i can play with the project...
i will test it if there are error.
Thanks so much for your help.
I wish you happy life.
Bye for now
|
|
|
|
|
Nice message - good luck for the future.
|
|
|
|
|
Hi ,
Please try to help me
Can you figure out what the problem could be,
I am building a Carousel in WPF , I have a MediaContent control in the carousel.
When I have the wmv video assigned as the source to the Media content and then when I build and debug the application, It is taking a while before the video starts . The player shows a black screen before its starts the video, It is also occuring in an asp.net website!!
Is it a known issue. Wat is the best solution?
Please let me know asap.
Thanks.
Happy Programming!
Regards,
ctrlnick !
|
|
|
|
|
Hi,
I'm learning how Silverlight/WPFapplication/Direct3D interact between themselves...
Sorry but I haven't a lot experience about this issues, so my question is:
- IS IT POSSIBLE, WITH SILVERLIGHT, TO RENDER WPF FILES IN A DIREC3D/WIN32 APPLICATION? HOW CAN DO IT?
Thanks a lots,
bye,
Carmelo.
|
|
|
|
|
Please do not cross post in the forums. This particular forum is probably the best one for your question.
viashivan wrote: TO RENDER WPF FILES
"The clue train passed his station without stopping." - John Simmons / outlaw programmer
"Real programmers just throw a bunch of 1s and 0s at the computer to see what sticks" - Pete O'Hanlon
"Not only do you continue to babble nonsense, you can't even correctly remember the nonsense you babbled just minutes ago." - Rob Graham
|
|
|
|
|
|
No worries. As Pete has said, you cannot really do what you are asking about.
"The clue train passed his station without stopping." - John Simmons / outlaw programmer
"Real programmers just throw a bunch of 1s and 0s at the computer to see what sticks" - Pete O'Hanlon
"Not only do you continue to babble nonsense, you can't even correctly remember the nonsense you babbled just minutes ago." - Rob Graham
|
|
|
|
|
Could you clarify what you mean please? I can't answer this question because I don't really understand it.
|
|
|
|
|
Hi Pete,
you're right, I try to be clearer
Silverlight is a CROSS PLATFORM, right?
I can create a Direct3D content for hosting in WPF, right?
If I want to work with Direct3D I'll be able to do it only on Windows platform, right?
If I lose the plot please correct me.
So I'd like to know if is it possible to render WPF files in a D3D/Win32 app. with Silverlight.
Can I consider also Moonlight and OpenGL for to do this?
I hope I've been fulfilling,
Thanks,
regards,
Carmelo.
|
|
|
|
|
OK - the answer is no. You can't create DirectX stuff in Silverlight - as you've rightly identified this is because of cross platform issues.
|
|
|
|
|
Hi there,
maybe now I've clearer ideas...
So my question is:
How can I capture WPF content/output from Silverlight App and render it in a Direct3D App ?
Thank you,
bye,
Carmelo.
|
|
|
|
|
This is related to a post I made yesterday, but after researching I think I found where my problem lies, and nevertheless am stuck again. The problem I have is the following. I read from a file data, this data consists of rows of 'x' columns (x changes from file to file).
I want to display these rows in a list in my WPF application. Seems simple enough, might be simple, but as I am a beginner in WPF I might have chosen the most difficult possible way to get there...
Since the row-makeup is completely file specific there's not much in the xaml file, just the declaration of the table-header:
<StackPanel x:Name="MyGridViewList" Orientation="Vertical">
<GridViewHeaderRowPresenter x:Name="grdViewHeader" ColumnHeaderContainerStyle="{StaticResource MyHeaderStyle}"/>
</StackPanel>
In the code behind I read the column specific data and put it in the header.
GridViewColumnCollection colCollection = new GridViewColumnCollection();
for(int i=0;i<mydatacollection.columns.count;> {
GridViewColumn viewCol = new GridViewColumn();
viewCol.Header = MyDataCollection.Columns[i].Name;
viewCol.Width = 100;
colCollection.Add(viewCol);
}
grdViewHeader.Columns = colCollection;
The column-header is displayed correctly. Afterwards I create
GridViewRowPresenter objects for each row, and to the Content property I assign an array of objects. The object at position 0 should be data for 1st column, object at pos 1 for 2nd etc... Right now the number of rows that's displayed is correct but the data in each cell is displayed as: "Object[] Array"
So now I found out that the GridViewRowPresenter does not know how to 'bind' each value to the right column. So in the commented out code above I need to mention somehow to bind to a specific position in the array.
Can anyone tell me how to do this? Or am I doing it completely wrong here?
Thanks for any help,
Davy
|
|
|
|
|
How about using the new datagrid in the wpf toolkit?
http://www.codeplex.com/wpf[^]
This can autogenerate columns, not sure if it will solve your problem though!
|
|
|
|
|
Hey Guys,
I am attempting to drop a WPF User Control onto a Windows Form, and I am getting a weird black border that only shows up on the left hand side of the control. It seems like it is coming from the ElementHost, but it does not have any border properties. Has anyone else experienced this? Anyone know how I can fix it?
|
|
|
|
|
I am using C#, Visual Studio 2008, and the 3.0 framework.
|
|
|
|
|
Hi,
I have a WPF custom created "color palette control" like in office 2007(If you want , you can see how the color palette control looks like my control in the following location http://blog.actiprosoftware.com/post/Ribbon-for-WPF-Adds-Mini-Toolbar.aspx )
I need to implement various features on color palette by adding properties.I can create those properties,if you people provide suggestions regarding the properties(i.e)what are all the properties we can add to give different look to the color palette control.What ever you like to have on the color palette,you can suggest.So,Please suggest me the ideas whatever you think,it will be more useful to proceeed my work.
modified on Tuesday, November 4, 2008 11:58 PM
|
|
|
|