|
I'm confused as to why you'd need to do this. Isn't it sufficient just to be able to download and install from the Microsoft site, especially as this introduces an effective lifetime for your article - what happens when SL5 is released (are you going to update your article)?
|
|
|
|
|
Hi Pete,
Actually I am writing one article on "Silverlight OOB Application Installation from CD-ROM". I want to add support for Silverlight version checking and the installation of it too. Hence, my article will not be depended on Silverlight version. Sorry, as I didn't inform you the actual context for my R&D.
|
|
|
|
|
Okay - I look forward to seeing that article then. Sounds interesting.
|
|
|
|
|
Pete O'Hanlon wrote: Okay - I look forward to seeing that article then. Sounds interesting.
I like the concept.
He can expect a +5 from me already (if everything works ).
The funniest thing about this particular signature is that by the time you realise it doesn't say anything it's too late to stop reading it.
My latest tip/trick
Visit the Hindi forum here.
|
|
|
|
|
Abhinav S wrote: He can expect a +5 from me already (if everything works ).
Me too.
|
|
|
|
|
|
A good article indeed.
You are getting very good at this.
The funniest thing about this particular signature is that by the time you realise it doesn't say anything it's too late to stop reading it.
My latest tip/trick
Visit the Hindi forum here.
|
|
|
|
|
|
Excellent mate. Kunal - I'll have a word with the WPF Disciples; I really think you've got what it takes to be in the group.
|
|
|
|
|
Pete O'Hanlon wrote: Excellent mate. Kunal - I'll have a word with the WPF Disciples; I really think you've got what it takes to be in the group.
Thanks Pete.
|
|
|
|
|
|
Sorry, but your question is not very clear.
What do you mean by "change header"?.
I think you are referring to this [^] article. In this case, it might be beneficial to post your question in the messages section in the article.
BTW, this is a WPF / Silverlight forum and that article talks about ASP.Net controls.
The funniest thing about this particular signature is that by the time you realise it doesn't say anything it's too late to stop reading it.
My latest tip/trick
Visit the Hindi forum here.
|
|
|
|
|
I have a table in WPF (DataGrid).
I want her "Header" looked like in the picture. In the picture shows a table that is designed for ASP.NET.
I need to get my table DataGrid in XAML looks like this table.
|
|
|
|
|
You can do it, but it's going to take a lot of restyling the template.
|
|
|
|
|
could you please give the example or explain in more detailes, or please give the reference to articles on this topic
|
|
|
|
|
My app has 2 windows. One windows is a magnification of an area of the other. I want to draw a line that shows where on my main window the magnify window is looking at.
It's similar to the functionality of Visual Studio 2010 showing the exception window with a line that points to the line of code where the exception occurred.
Is this possible to do in WPF? As far as I can tell, a line need to be added to a single parent.
|
|
|
|
|
I think you'll find the line needs a parent control. However the line is not constrained from going outside the bounds of the parent. I am assuming this from this question
Never underestimate the power of human stupidity
RAH
|
|
|
|
|
In the custom control (derived from ContextMenu) if I include the following code in custom control class:
#region DependencyProperties
public static readonly DependencyProperty CircleSizeProperty = DependencyProperty.Register(
"CircleSize", typeof(double), typeof(CircularContextMenu),
new FrameworkPropertyMetadata(150));
public double CircleSize
{
get { return (double)GetValue(CircleSizeProperty); }
set { SetValue(CircleSizeProperty, value); }
}
#endregion DependencyProperties
I get a XamlParseException when I run the app - if I comment out the above code it works fine - at no point in the custom control or the app or anywhere else do I reference the above code.
I have looked at the above code for several hours now.
Anybody able to help?
|
|
|
|
|
Is there an inner exception?
Is it correctly interpreting the 150 as a double instead of an integer?
Does your class inherit (directly or indirectly) from DependencyObject?
Did you copy-paste this code to/from another class, and forget to change the type from CircularContextMenu?
|
|
|
|
|
I new all it needed was another pair of eyes - it was interpreting 150 as an integer.
many thanks
|
|
|
|
|
No problem... I've run into that one before
|
|
|
|
|
Hi
I am trying to implement Async threading in SilverLight but getting an error
I tried to simplify the code for your better understanding,
using System;
using System.Collections.Generic;
using System.Linq;
using System.Net;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Animation;
using System.Windows.Shapes;
using System.Threading;
namespace SilverlightApplication1
{
public partial class MainPage : UserControl
{
delegate void GetData();
public MainPage()
{
GetData gd = new GetData(CallData);
gd.BeginInvoke(afterCallData, null);
InitializeComponent();
}
void CallData()
{
}
void afterCallData( IAsyncResult result)
{
}
}
}
I am getting this error :-
{System.NotSupportedException: Specified method is not supported.
at SilverlightApplication1.MainPage.GetData.BeginInvoke(AsyncCallback callback, Object object)
at SilverlightApplication1.MainPage..ctor()
at SilverlightApplication1.App.Application_Startup(Object sender, StartupEventArgs e)
at MS.Internal.CoreInvokeHandler.InvokeEventHandler(Int32 typeIndex, Delegate handlerDelegate, Object sender, Object args)
at MS.Internal.JoltHelper.FireEvent(IntPtr unmanagedObj, IntPtr unmanagedObjArgs, Int32 argsTypeIndex, Int32 actualArgsTypeIndex, String eventName)}
The error does not have any inner exceptions....
Thanks
EDIT --------------------------------
Error is at line gd.BeginInvoke(afterCallData, null);
and it throws even if I do gd.BeginInvoke(null, null);
|
|
|
|
|
You need to specify the applicable control and use its Dispatcher object:
private delegate void GetDataDelegate();
private void GetData()
{
}
private void MainPage()
{
if (this.myControl.Dispatcher.CheckAccess())
{
GetData();
}
else
{
myControl.Dispatcher.BeginInvoke(new GetDataDelegate(GetData));
}
}
.45 ACP - because shooting twice is just silly ----- "Why don't you tie a kerosene-soaked rag around your ankles so the ants won't climb up and eat your candy ass..." - Dale Earnhardt, 1997 ----- "The staggering layers of obscenity in your statement make it a work of art on so many levels." - J. Jystad, 2001
modified on Friday, September 17, 2010 8:41 AM
|
|
|
|
|
Thanks will implement this
|
|
|
|
|
I didn't get p but Dispatcher.BeginInvoke(new GetDataDelegate(GetData)); worked simply great
|
|
|
|