I have a question . What is the difference between Canvas.SetTop(objFrameworkElement,10); and objFrameworkElement.SetValue(Canvas.TopProperty,20)
...
Wondering how to accomplish setting the Style xaml with the code in F#. The code is simple enough:
this.DefaultStyleKey <- typeof<MyControl>
In a C# project the build options allow you to mark the XAML as a resource custom build command of: MSBuild:Compile
I don't see it in the properties panel, so I tried to add it by hand to the p...
I have defined a Control with:
static member ItemsProperty : DependencyProperty =
DependencyProperty.Register(
"Items",
typeof<MyMenuItemCollection>,
typeof<MyMenu>,
null);
member this.Items
with get () : MyMenuItemCollection = this.GetValue(MyMenu.ItemsProperty) :?> My...
Hi All,
I am developing a silverlight 3 application using WCF RIA services. I am using the AuthenticationBase class to handle my authentication. As I understand it under the hood this uses the ASP .NET authentication libraries.
When I log into the site the authentication service handles login state so that if I close the site and open ...
How do I get the baseline of a font in Silverlight v3. I need to be able to do some simple font metrics so that I can reproduce some online render using an external markup system and make the output looks the same.
Silverlight renders fonts from top,left but the external system uses font baseline.
...
I've implemented a task using the async Sockets pattern in Silverlight 3. I started with Michael Schwarz's implementation and built on top of that. So basically, my Silverlight app establishes a persistent socket connection to a device and then data flows both ways as necessary between the device and the Silverlight app.
One thing I a...
update 5: brians solution worked:
namespace Module1
type Page1() as this =
inherit UserControl()
let uriStr = "/FSSilverlightApp;component/Page1.xaml"
let uri = new System.Uri(uriStr, System.UriKind.Relative)
do
Application.LoadComponent(this, uri)
member public this.Uri with get () = uri
type MyApp() as th...
Hi,
I have following playlist:
Playlist playList = new Playlist();
I am adding the playList ietms to my playList as below:
if (strmediaExtension == "wmv" || strmediaExtension == "mp4" || strmediaExtension == "mp3" || strmediaExtension == "mpg")
{
PlaylistItem playListItem = new PlaylistItem();
...
Can some one please confirm how much memory at max is allocated to silverlight client application.
For example if we want load entity of size 200 mb in silverlight client memory is it possible.
Thanks
...
Hi,
I am trying to play the selected media from PlayList,if the selected index is not zero as below:
if (playList.Items.Count == 0)
{
setPlayList();
if (selectedIndex!= 0)
{
if(custMediaElement.Playlist!=null)
custMediaElement.GoToPlaylistItem(selectedIndex);
...
Hello, I would like to make a small silverlight app which displays one fairly large image which can be zoomed in by scrolling the mouse and then panned with the mouse.
it's similar to the function in google maps and i do not want to use deepzoom.
here is what i have at the moment. please keep in mind that this is my first silverlight ap...
Quite simply I have a generic Silverlight 3.0 web page that is calling a Ping method on a WCF service. I do not have the WCF service running initially when I navigate to this Silverlight page. As expected I get a communication exception when I press the Silverlight button to call the Ping method, which I catch. Now if I start the WCF ser...
So I am using Silverlight 4.0 I have the following code but its giving me the following error: "The member "TextTrimming" is not recognized or is not accessible", but it works fine when I run in Visual Studio 2010.
<TextBlock Margin="0,30,28.789,50.455" TextWrapping="Wrap" TextTrimming="WordEllipsis" HorizontalAlignment="Right" Width="1...
do we have Window.Closing Event in Silverlight version 3? If not, is there an easy way to check if the user is closing the browser and to stop him doing so unless he explicitly stops a running timer?
Regards,
Nadeem.
...
I have an image (embedded resource) that i can get access to and form an Image object from. I actually can get the Image object or the Stream of bits the represent the image. However I want to sue that image programaticly to be a background image.
So how do I set the ImageSource on the ImageBrush to an AcutalImage (PNG)?
...
Picture a listbox in Silverlight that is similar to the "feed" on facebook. Each item might be 1) a status update with an image on the left, 2) a photo thumbnail with a title, 3) a youtube video, or 4) a blog entry. Each item uses a different template. How would you accomplish this?
I had planned on all my item types implement a common ...
There is a quite big LOB silverlight application and we wrote a lot of custom controls which are rather heavy in drawing.
All data is loaded by RIA service, processed and bound (using INofityPropertyChanged interface) to the view.
The problem is that first drawing takes a lot time. Following calls to the service (server) and redrawing ...
How does one get the upper left coordinates of a framework elements bounding rectangle?
let fe : FrameworkElement = ea.Item.Content
let p = fe.TranslatePoint(new Point(0.0, 0.0), null)
The preceding code is giving me: The field, constructor or member 'TranslatePoint' is not defined. I am confused as MSDN Shows this as a mem...
I created a silverlight 3 application with a navigation frame and 3 views: search, add and edit.
I used the app file to pass parameters among the 3 pages, eg:
((App)Application.Current).SNIPSELECTED = currentSnip;
Then in the receiving page:
currentSnip = ((App)Application.Current).SNIPSELECTED;
currentSnip is a SnipItem object: ...
I have a canvas like this:
<Canvas>
<Rectangle Fill="Blue" Opacity="0.5" Canvas.ZIndex="1" />
<Grid Canvas.ZIndex="0" >
...bla bla bla...
</Grid>
</Canvas>
I need the Width/Height of the Canvas to just stretch to the Width/Height of the Grid, but then I need the Width/Height of the Rectangle to stretch to match...