RE: [OzSilverlight] SL Related Multiple Canvases

2008-11-23 Thread Miguel Madero
You might give it a try to the ViewBox control in the new Silverlight
Toolkit

 

 Miguel A. Madero Reyes

  http://www.miguelmadero.com/ www.miguelmadero.com (blog)
  mailto:[EMAIL PROTECTED] [EMAIL PROTECTED] 
 +61 (0) 406-704-161

P Please reconsider your environmental responsibility before printing this
e-mail

The information in this e-mail is confidential and may be legally
privileged. It is intended solely for the addressee. If you are not the
intended recipient, any disclosure, copying, distribution or any action
taken or omitted to be taken in reliance on it, is prohibited and may be
unlawful.

 

From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
On Behalf Of Muhammad Niaz
Sent: Saturday, 22 November 2008 8:22 PM
To: listserver@ozSilverlight.com
Subject: [OzSilverlight] SL Related Multiple Canvases

 

Hi all,

I am working on SL App which is based on Canvas controls
mean:

Master page type( default page )which is collection of
Header/Navigation/Body and footer Canvas,

Every thing is working fine. But I have only one issue right now.

At runtime I wana grow height of my body canvas when any specific (inner
Content control which comes in the body Canvas) have more height than the
fixed of body canvas.

 

 

 

 

 

Thanks  Regards,

Muhammad Niaz

Software Engineer

Intagleo Systems Pvt Ltd

www.intagleo.co.uk

 

---
OzSilverlight.com - to unsubscribe from this list, send a message back to
the list with 'unsubscribe' as the subject.
Powered by mailenable.com - List managed by www.readify.net 




--- 
OzSilverlight.com - to unsubscribe from this list, send a message back to the 
list with 'unsubscribe' as the subject.
Powered by mailenable.com - List managed by www.readify.net


RE: [OzSilverlight] SL related

2008-11-19 Thread Miguel Madero
You could use the popup control. This is always on top of everything no matter 
in which container it is and you can set it to full screen with a transparent 
background. 



 Miguel A. Madero Reyes
 www.miguelmadero.com (blog)
 [EMAIL PROTECTED] 
 +61 (0) 406-704-161
 Please reconsider your environmental responsibility before printing this 
e-mail
The information in this e-mail is confidential and may be legally privileged. 
It is intended solely for the addressee. If you are not the intended recipient, 
any disclosure, copying, distribution or any action taken or omitted to be 
taken in reliance on it, is prohibited and may be unlawful.

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Jordan Knight
Sent: Wednesday, 19 November 2008 7:20 PM
To: listserver@ozSilverlight.com
Subject: RE: [OzSilverlight] SL related

Hi Muhammad,

There is no screen so to speak built in to Silverlight, but you could pop 
over a Canvas or something with a loading animation of some kind. If the canvas 
has a background, even transparent then it will block the mouse clicks from 
bubbling to the button.


But, I would just disable the button and show a loading animation if it were 
me...

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Muhammad Niaz
Sent: Wednesday, 19 November 2008 5:35 PM
To: listserver@ozSilverlight.com
Subject: RE: [OzSilverlight] SL related

Thanks its good solution, but I am not interested in this simple. Bkz I have
to redo lot of time, can anyone send anykind of screen that appear when
service side processing is working and screen(Froms) SL App become
transparent.

Thanks  Regards,
Muhammad Niaz
Software Engineer
Intagleo Systems Pvt Ltd
www.intagleo.co.uk

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
On Behalf Of Sam Lai
Sent: Wednesday, November 19, 2008 11:19 AM
To: listserver@ozSilverlight.com
Subject: Re: [OzSilverlight] SL related

Disable the button once it has been clicked once?

2008/11/19 Muhammad Niaz [EMAIL PROTECTED]:
 Hi all,

   Can I anyone help me in this regards.

 Scenario:

Suppose there is registration form, if use click on Save button
then
 web service save the record successfully when no error return in client
side
 after Web method call ends.

 But if user Double click on Save button, then off course error will come
how
 to control this gent ally and also the solution take very much less time.



 Thanks  Regards,

 Muhammad Niaz

 Software Engineer

 Intagleo Systems Pvt Ltd

 www.intagleo.co.uk



 ---
 OzSilverlight.com - to unsubscribe from this list, send a message back to
 the list with 'unsubscribe' as the subject.
 Powered by mailenable.com - List managed by www.readify.net


---
OzSilverlight.com - to unsubscribe from this list, send a message back to
the list with 'unsubscribe' as the subject.
Powered by mailenable.com - List managed by www.readify.net







--- 
OzSilverlight.com - to unsubscribe from this list, send a message back to the 
list with 'unsubscribe' as the subject.
Powered by mailenable.com - List managed by www.readify.net



No virus found in this incoming message.
Checked by AVG - http://www.avg.com
Version: 8.0.175 / Virus Database: 270.9.4/1793 - Release Date: 17/11/2008 5:24 
PM


--- 
OzSilverlight.com - to unsubscribe from this list, send a message back to the 
list with 'unsubscribe' as the subject.
Powered by mailenable.com - List managed by www.readify.net




--- 
OzSilverlight.com - to unsubscribe from this list, send a message back to the 
list with 'unsubscribe' as the subject.
Powered by mailenable.com - List managed by www.readify.net




RE: [OzSilverlight] SL Fonts.?

2008-11-01 Thread Miguel Madero
Muhammad, 

I'm not sure you could get that info directly from SL, but you can look for the 
appropriate function in JS and call it from SL.

If you depend on a certain font you can include them in a zip file and get them 
through a request and create a FontSource object using the stream. This is part 
of SL docs

Downloading Fonts
Silverlight does not include any fonts in its installation package. If you want 
to use a font for a TextBlock or TextBox element that is not on the list of 
supported local fonts, you can specify the font in XAML by using the FontFamily 
property, or in code using the FontSource property. The FontFamily property can 
specify a single font file or a zip file containing font files. In either case, 
the file must be embedded in a DLL as a resource. When using FontSource, your 
code can load the font (or zip of fonts) from a stream such as isolated 
storage. 




 Miguel A. Madero Reyes
 www.miguelmadero.com (blog)
 [EMAIL PROTECTED] 
 +61 (0) 406-704-161
 623/243 Pyrmont Street 
 Pyrmont, NSW, 2009
 Australia
 Please reconsider your environmental responsibility before printing this 
e-mail
The information in this e-mail is confidential and may be legally privileged. 
It is intended solely for the addressee. If you are not the intended recipient, 
any disclosure, copying, distribution or any action taken or omitted to be 
taken in reliance on it, is prohibited and may be unlawful.

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Muhammad Niaz
Sent: Sunday, 2 November 2008 2:18 AM
To: listserver@ozSilverlight.com
Subject: RE: [OzSilverlight] SL Fonts.?

Thanks Ross 
:)


Thanks  Regards,
Muhammad Niaz
Software Engineer
Intagleo Systems Pvt Ltd
www.intagleo.co.uk

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
On Behalf Of ross jempson
Sent: Saturday, November 01, 2008 7:22 PM
To: listserver@ozSilverlight.com
Subject: Re: [OzSilverlight] SL Fonts.?

It can be done in WPF but the same class doesn't seem to exist in
Silverlight

eg. Here is an example

 Window.Resources
DataTemplate x:Key=FontTemplate
  StackPanel Orientation=Horizontal
Border BorderThickness=1 BorderBrush=Black Margin=10
TextBlock FontFamily={Binding Source}
Text=Sample Text Margin=5 /
/Border
TextBlock Text={Binding Source} VerticalAlignment=Center /
/StackPanel
/DataTemplate
  /Window.Resources

  ListBox x:Name=fonts ItemTemplate={StaticResource FontTemplate} /


 And in code :

fonts.ItemsSource = System.Windows.Media.Fonts.SystemFontFamilies;


On Sat, Nov 1, 2008 at 11:18 PM, Muhammad Niaz [EMAIL PROTECTED]
wrote:
 Hi can anybody tell me how to get default Fonts  that are available in SL2
 using foreach, mean to populate Combobox or any control dynamically.?





 Thanks  Regards,

 Muhammad Niaz

 Software Engineer

 Intagleo Systems Pvt Ltd

 www.intagleo.co.uk



 ---
 OzSilverlight.com - to unsubscribe from this list, send a message back to
 the list with 'unsubscribe' as the subject.
 Powered by mailenable.com - List managed by www.readify.net


---
OzSilverlight.com - to unsubscribe from this list, send a message back to
the list with 'unsubscribe' as the subject.
Powered by mailenable.com - List managed by www.readify.net







--- 
OzSilverlight.com - to unsubscribe from this list, send a message back to the 
list with 'unsubscribe' as the subject.
Powered by mailenable.com - List managed by www.readify.net




--- 
OzSilverlight.com - to unsubscribe from this list, send a message back to the 
list with 'unsubscribe' as the subject.
Powered by mailenable.com - List managed by www.readify.net




RE: [OzSilverlight] SL Combobox problem.?

2008-11-01 Thread Miguel Madero
The ObservableCollection (or any collection that implements
ICollectionChange) exposes an event (CollectionChanged) and the Databinding
will subscribe to this to monitor changes in the collection, when one occur
it will cause the control to refresh it's datasource.  

 

This is similar to objects that implement INotifyPropertyChange, those will
expose a PropertyChanged event that will trigger an update in the UI
whenever the control value of the property changed (or more precisely when
the event is fired)

 

 

 

 Miguel A. Madero Reyes

  http://www.miguelmadero.com/ www.miguelmadero.com (blog)
  mailto:[EMAIL PROTECTED] [EMAIL PROTECTED] 
 +61 (0) 406-704-161

 623/243 Pyrmont Street 
 Pyrmont, NSW, 2009

 Australia

P Please reconsider your environmental responsibility before printing this
e-mail

The information in this e-mail is confidential and may be legally
privileged. It is intended solely for the addressee. If you are not the
intended recipient, any disclosure, copying, distribution or any action
taken or omitted to be taken in reliance on it, is prohibited and may be
unlawful.

 

From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
On Behalf Of Muhammad Niaz
Sent: Saturday, 1 November 2008 10:58 PM
To: listserver@ozSilverlight.com
Subject: [OzSilverlight] SL Combobox problem.?

 

Hi All,

 

   I have a Combobox in SL App when I remove item from the collection
(ObservableCollectionUserDTO/List UserDTO ) work fine,  but the issue
that Combobox not update its items-Containing area when its bind with
ObservableCollection, mean if there were 4 items in Combobox then will
remain 3 but total space of items-Containing remain 4. And but when its bind
to List then it only delete the item from collection but not from Combobox
area, mean if there were 4 items in Combobox then will remain even 4.

why, here is some code:

 

XAML:

ComboBox x:Name=ddlUser Canvas.ZIndex=2 Grid.Row=0 Grid.Column=1

  DisplayMemberPath=name

  ToolTipService.ToolTip=Select user.
Style={StaticResource NormalDropDownListStyle} /

CS:

private ObservableCollectionUserDTO resultUserDTO = new
ObservableCollectionUserDTO();

private ListUserDTO resultUserDTO = new ListUserDTO();

 

 

 

also why should I use List over ObservableCollection.?

Enen though I call this like,

ddlUser.UpdateLayout();

ddlUser.SelectedItem = innerUserDTO;

 

Thanks  Regards,

Muhammad Niaz

Software Engineer

Intagleo Systems Pvt Ltd

www.intagleo.co.uk


 

---
OzSilverlight.com - to unsubscribe from this list, send a message back to
the list with 'unsubscribe' as the subject.
Powered by mailenable.com - List managed by www.readify.net 




--- 
OzSilverlight.com - to unsubscribe from this list, send a message back to the 
list with 'unsubscribe' as the subject.
Powered by mailenable.com - List managed by www.readify.net


RE: [OzSilverlight] SL Combobox SelectedItem ?

2008-10-31 Thread Miguel Madero
The ComboBox inherits from selector, which is also the baseclass for the
ListBox so the way you use it will be really similar. 

You can use any collection or to be more specific any IEnumerableT

If you want you can define a datatemplate to personalize the way each object
will look or go with the default template that will display the ToString of
each object in the collection. 

 

 

 

 Miguel A. Madero Reyes

  http://www.miguelmadero.com/ www.miguelmadero.com (blog)
  mailto:[EMAIL PROTECTED] [EMAIL PROTECTED] 
 +61 (0) 406-704-161

 623/243 Pyrmont Street 
 Pyrmont, NSW, 2009

 Australia

P Please reconsider your environmental responsibility before printing this
e-mail

The information in this e-mail is confidential and may be legally
privileged. It is intended solely for the addressee. If you are not the
intended recipient, any disclosure, copying, distribution or any action
taken or omitted to be taken in reliance on it, is prohibited and may be
unlawful.

 

From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
On Behalf Of Muhammad Niaz
Sent: Friday, 31 October 2008 11:55 PM
To: listserver@ozSilverlight.com
Subject: RE: [OzSilverlight] SL Combobox SelectedItem ?

 

Hi All,

   Thanks for idea, but can you tell me what can be world best
Binding in SL for Combobox, because previously I was using 3rd party DDL but
now I have to replace.

 

Any idea not with sample code like Combo   DataContext={Binding
SomeCollection} ;), please dot mind.

 

Thanks  Regards,

Muhammad Niaz

Software Engineer

Intagleo Systems Pvt Ltd

www.intagleo.co.uk

 

From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
On Behalf Of Miguel Madero
Sent: Friday, October 31, 2008 4:44 PM
To: listserver@ozSilverlight.com
Subject: RE: [OzSilverlight] SL Combobox SelectedItem ?

 

Make sure that the object is already in the ItemsSource. The combo can only
select items that are part of the collection they're bound to. 

 

ddl.DataContext = MyCollection;  // or
dll.ItemsSource

ddl.SelectedItem = new MyClass(); // Won't work
because MyClass is not part of the collection

ddl.SelectedItem = MyCollection[0];   // J

 

The order is also important so this won't work either. 

ddl.SelectedItem = MyCollection[0];   // J

ddl.DataContext = MyCollection;  // or
dll.ItemsSource

 

Similarly in XAML if you're databinding the properties

Combo   SelectedItem={Binding SomeProperty} 

DataContext={Binding SomeCollection}/

 

This won't work because it will try to get the SelectedItem first and then
bind the items, just as in the previous C# example

This will do the trick

Combo   DataContext={Binding SomeCollection}

SelectedItem={Binding SomeProperty} /

 

 

 

 

 

 Miguel A. Madero Reyes

  http://www.miguelmadero.com/ www.miguelmadero.com (blog)
  mailto:[EMAIL PROTECTED] [EMAIL PROTECTED] 
 +61 (0) 406-704-161

 623/243 Pyrmont Street 
 Pyrmont, NSW, 2009

 Australia

P Please reconsider your environmental responsibility before printing this
e-mail

The information in this e-mail is confidential and may be legally
privileged. It is intended solely for the addressee. If you are not the
intended recipient, any disclosure, copying, distribution or any action
taken or omitted to be taken in reliance on it, is prohibited and may be
unlawful.

 

From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
On Behalf Of Muhammad Niaz
Sent: Friday, 31 October 2008 2:55 AM
To: listserver@ozSilverlight.com
Subject: [OzSilverlight] SL Combobox SelectedItem ?

 

Hi All,

 I am working on MS Combox in SL App,

  But I have an issue, like ddlMediatype.SelectedItem =
(ContentTypeDTO)innerContentTypeDTO;

Mean I have no success to set SelectedItem through code.

 

 

Any details sample code or Article, in which if there are multiple
Comboboxes on each change other reflects. ;)

 

Thanks  Regards,

Muhammad Niaz

Software Engineer

Intagleo Systems Pvt Ltd

www.intagleo.co.uk

 

---
OzSilverlight.com - to unsubscribe from this list, send a message back to
the list with 'unsubscribe' as the subject.
Powered by mailenable.com - List managed by www.readify.net 

---
OzSilverlight.com - to unsubscribe from this list, send a message back to
the list with 'unsubscribe' as the subject.
Powered by mailenable.com - List managed by www.readify.net 

---
OzSilverlight.com - to unsubscribe from this list, send a message back to
the list with 'unsubscribe' as the subject.
Powered by mailenable.com - List managed by www.readify.net 




--- 
OzSilverlight.com - to unsubscribe from this list, send a message back

RE: [OzSilverlight] XAP File.?

2008-10-31 Thread Miguel Madero
I don't know what you're trying to do, but there's a cool reflector add-in
that can extract the .xap contents and add the assemblies, just point it to
the URL. 

http://www.codeplex.com/reflectoraddins

 

 

 

 Miguel A. Madero Reyes

  http://www.miguelmadero.com/ www.miguelmadero.com (blog)
  mailto:[EMAIL PROTECTED] [EMAIL PROTECTED] 
 +61 (0) 406-704-161

 623/243 Pyrmont Street 
 Pyrmont, NSW, 2009

 Australia

P Please reconsider your environmental responsibility before printing this
e-mail

The information in this e-mail is confidential and may be legally
privileged. It is intended solely for the addressee. If you are not the
intended recipient, any disclosure, copying, distribution or any action
taken or omitted to be taken in reliance on it, is prohibited and may be
unlawful.

 

From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
On Behalf Of Muhammad Niaz
Sent: Friday, 31 October 2008 4:38 PM
To: listserver@ozSilverlight.com
Subject: [OzSilverlight] XAP File.?

 

Hi All, 

 Can anybody tell me where xap file download on  client file
system I need the complete path.

Reply me ASAP.

  

 

Thanks  Regards,

Muhammad Niaz

Software Engineer

Intagleo Systems Pvt Ltd

www.intagleo.co.uk

 

---
OzSilverlight.com - to unsubscribe from this list, send a message back to
the list with 'unsubscribe' as the subject.
Powered by mailenable.com - List managed by www.readify.net 




--- 
OzSilverlight.com - to unsubscribe from this list, send a message back to the 
list with 'unsubscribe' as the subject.
Powered by mailenable.com - List managed by www.readify.net


RE: [OzSilverlight] XAP File.?

2008-10-31 Thread Miguel Madero
Wow!!!

This goes way beyond what the other tool is doing. 

Is this working well for you? Is it stable? I have been playing for a while
with it without finding any issues. 

 

It's like all my SL tools together, well almost:

. Style Browser of delay. Instead of this I have a UI view with
reference to all the styles and their XAML. 

. I used an sniffer, usually fiddler or WebDev Helper from Nikhil
Khotari and this includes an HTTP Monitor. 

. It has an object browser (although I don't use it that often in
VS)

. Has a debug window like VS. 

. A great way to inspect objects at runtime, no more VS Debugger for
UI aspects, directly from the User Interface Tree View I can see the
properties of the objects J 

Besides of this, it:

. Can highlight areas of the UI a'la IE Dev Toolbar. 

. Has an event monitor to catch Mouse and Keyboard events. This is
well intergrated with the object browser and the UI. So when you double
click an event it opens the tree to show you the target control and it also
highlights it in the UI

. Has a cross domain policy validator. 

 

 

This is really impressive and just when I was about to say. Oooo ok, it's
cool, but with the other plugin I can see the actual code, then I found the
integration with Reflector that allows me to do the same thing directly from
the Object Brower/UI Tree View

 

The only functionality that is missing (or that I can think at this time) is
an immediate windows so we can start typing our C# or DLR code and execute
it. 

 

 

Thanks for the tip J

 

 Miguel A. Madero Reyes

  http://www.miguelmadero.com/ www.miguelmadero.com (blog)
  mailto:[EMAIL PROTECTED] [EMAIL PROTECTED] 
 +61 (0) 406-704-161

 623/243 Pyrmont Street 
 Pyrmont, NSW, 2009

 Australia

P Please reconsider your environmental responsibility before printing this
e-mail

The information in this e-mail is confidential and may be legally
privileged. It is intended solely for the addressee. If you are not the
intended recipient, any disclosure, copying, distribution or any action
taken or omitted to be taken in reliance on it, is prohibited and may be
unlawful.

 

From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
On Behalf Of .net noobie
Sent: Saturday, 1 November 2008 1:37 AM
To: listserver@ozsilverlight.com
Subject: Re: [OzSilverlight] XAP File.?

 

same with this tool

 

http://silverlightspy.com/SilverlightSpy/

 

it is very cool :)

On Fri, Oct 31, 2008 at 9:47 PM, Miguel Madero [EMAIL PROTECTED] wrote:

I don't know what you're trying to do, but there's a cool reflector add-in
that can extract the .xap contents and add the assemblies, just point it to
the URL. 

http://www.codeplex.com/reflectoraddins

 

 

 

 Miguel A. Madero Reyes

  http://www.miguelmadero.com/ www.miguelmadero.com (blog)
  mailto:[EMAIL PROTECTED] [EMAIL PROTECTED] 
 +61 (0) 406-704-161

 623/243 Pyrmont Street 
 Pyrmont, NSW, 2009

 Australia

P Please reconsider your environmental responsibility before printing this
e-mail

The information in this e-mail is confidential and may be legally
privileged. It is intended solely for the addressee. If you are not the
intended recipient, any disclosure, copying, distribution or any action
taken or omitted to be taken in reliance on it, is prohibited and may be
unlawful.

 

From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
On Behalf Of Muhammad Niaz
Sent: Friday, 31 October 2008 4:38 PM


To: listserver@ozSilverlight.com
Subject: [OzSilverlight] XAP File.?

 

Hi All, 

 Can anybody tell me where xap file download on  client file
system I need the complete path.

Reply me ASAP.

  

 

Thanks  Regards,

Muhammad Niaz

Software Engineer

Intagleo Systems Pvt Ltd

www.intagleo.co.uk

 

---
OzSilverlight.com - to unsubscribe from this list, send a message back to
the list with 'unsubscribe' as the subject.
Powered by mailenable.com - List managed by www.readify.net 

---
OzSilverlight.com - to unsubscribe from this list, send a message back to
the list with 'unsubscribe' as the subject.
Powered by mailenable.com - List managed by www.readify.net 




-- 
.net noobieT

---
OzSilverlight.com - to unsubscribe from this list, send a message back to
the list with 'unsubscribe' as the subject.
Powered by mailenable.com - List managed by www.readify.net 




--- 
OzSilverlight.com - to unsubscribe from this list, send a message back to the 
list with 'unsubscribe' as the subject.
Powered by mailenable.com - List managed by www.readify.net


RE: [OzSilverlight] XAP File.?

2008-10-31 Thread Miguel Madero
I know, that's great, but it's only for simple properties. 

customersList.DataContext =
Kernel.GetICustomerDataAccess().GetCustomerByCountry(Mexico);

 

or even in the properties window

Background = {StaticResource SomeResource}

 

 

 

 

It would also be nice to have an option Select by Click like in IE Toolbar.
Something equivalent is to use the Event Monitor and then double click the
event that catched something, but it's far from ideal since many objects
might not trigger events or it could get to noisy. 

 

 

 

 Miguel A. Madero Reyes

  http://www.miguelmadero.com/ www.miguelmadero.com (blog)
  mailto:[EMAIL PROTECTED] [EMAIL PROTECTED] 
 +61 (0) 406-704-161

 623/243 Pyrmont Street 
 Pyrmont, NSW, 2009

 Australia

P Please reconsider your environmental responsibility before printing this
e-mail

The information in this e-mail is confidential and may be legally
privileged. It is intended solely for the addressee. If you are not the
intended recipient, any disclosure, copying, distribution or any action
taken or omitted to be taken in reliance on it, is prohibited and may be
unlawful.

 

From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
On Behalf Of .net noobie
Sent: Saturday, 1 November 2008 10:22 AM
To: listserver@ozsilverlight.com
Subject: Re: [OzSilverlight] XAP File.?

 

when you select an object and it gets highlighted you can also updates its
properties in the property pane and the changes made to the silverlight page
in the display window

On Sat, Nov 1, 2008 at 1:08 AM, Miguel Madero [EMAIL PROTECTED] wrote:

Wow!!!

This goes way beyond what the other tool is doing. 

Is this working well for you? Is it stable? I have been playing for a while
with it without finding any issues. 

 

It's like all my SL tools together, well almost:

. Style Browser of delay. Instead of this I have a UI view with
reference to all the styles and their XAML. 

. I used an sniffer, usually fiddler or WebDev Helper from Nikhil
Khotari and this includes an HTTP Monitor. 

. It has an object browser (although I don't use it that often in
VS)

. Has a debug window like VS. 

. A great way to inspect objects at runtime, no more VS Debugger for
UI aspects, directly from the User Interface Tree View I can see the
properties of the objects J 

Besides of this, it:

. Can highlight areas of the UI a'la IE Dev Toolbar. 

. Has an event monitor to catch Mouse and Keyboard events. This is
well intergrated with the object browser and the UI. So when you double
click an event it opens the tree to show you the target control and it also
highlights it in the UI

. Has a cross domain policy validator. 

 

 

This is really impressive and just when I was about to say. Oooo ok, it's
cool, but with the other plugin I can see the actual code, then I found the
integration with Reflector that allows me to do the same thing directly from
the Object Brower/UI Tree View

 

The only functionality that is missing (or that I can think at this time) is
an immediate windows so we can start typing our C# or DLR code and execute
it. 

 

 

Thanks for the tip J

 

 Miguel A. Madero Reyes

  http://www.miguelmadero.com/ www.miguelmadero.com (blog)
  mailto:[EMAIL PROTECTED] [EMAIL PROTECTED] 
 +61 (0) 406-704-161

 623/243 Pyrmont Street 
 Pyrmont, NSW, 2009

 Australia

P Please reconsider your environmental responsibility before printing this
e-mail

The information in this e-mail is confidential and may be legally
privileged. It is intended solely for the addressee. If you are not the
intended recipient, any disclosure, copying, distribution or any action
taken or omitted to be taken in reliance on it, is prohibited and may be
unlawful.

 

From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
On Behalf Of .net noobie
Sent: Saturday, 1 November 2008 1:37 AM
To: listserver@ozsilverlight.com
Subject: Re: [OzSilverlight] XAP File.?

 

same with this tool

 

http://silverlightspy.com/SilverlightSpy/

 

it is very cool :)

On Fri, Oct 31, 2008 at 9:47 PM, Miguel Madero [EMAIL PROTECTED] wrote:

I don't know what you're trying to do, but there's a cool reflector add-in
that can extract the .xap contents and add the assemblies, just point it to
the URL. 

http://www.codeplex.com/reflectoraddins

 

 

 

 Miguel A. Madero Reyes

  http://www.miguelmadero.com/ www.miguelmadero.com (blog)
  mailto:[EMAIL PROTECTED] [EMAIL PROTECTED] 
 +61 (0) 406-704-161

 623/243 Pyrmont Street 
 Pyrmont, NSW, 2009

 Australia

P Please reconsider your environmental responsibility before printing this
e-mail

The information in this e-mail is confidential and may be legally
privileged. It is intended solely for the addressee. If you are not the
intended recipient, any disclosure, copying, distribution or any action
taken or omitted to be taken in reliance on it, is prohibited and may be
unlawful.

 

From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
On Behalf Of Muhammad Niaz
Sent: Friday

RE: [OzSilverlight] Silverlight Authentication

2008-10-31 Thread Miguel Madero
If you go with ASP.NET Membership, you can create another service that
delegates to the Membership Provider J 

 

 

 

 Miguel A. Madero Reyes

  http://www.miguelmadero.com/ www.miguelmadero.com (blog)
  mailto:[EMAIL PROTECTED] [EMAIL PROTECTED] 
 +61 (0) 406-704-161

 623/243 Pyrmont Street 
 Pyrmont, NSW, 2009

 Australia

P Please reconsider your environmental responsibility before printing this
e-mail

The information in this e-mail is confidential and may be legally
privileged. It is intended solely for the addressee. If you are not the
intended recipient, any disclosure, copying, distribution or any action
taken or omitted to be taken in reliance on it, is prohibited and may be
unlawful.

 

From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
On Behalf Of .net noobie
Sent: Saturday, 1 November 2008 12:05 PM
To: OZ Silverlight.com
Subject: [OzSilverlight] Silverlight Authentication

 

what is the best method people think to do Authentication in Silverlight 

 

I am not really a fan of the AuthenticationService.svc becuase it does not
let you add new users etc

 

does anyone have a cool link to a good code sample where you can safely add
new users, profiles etc all from your silverlight application


-- 
.net noobieT

---
OzSilverlight.com - to unsubscribe from this list, send a message back to
the list with 'unsubscribe' as the subject.
Powered by mailenable.com - List managed by www.readify.net 




--- 
OzSilverlight.com - to unsubscribe from this list, send a message back to the 
list with 'unsubscribe' as the subject.
Powered by mailenable.com - List managed by www.readify.net


RE: [OzSilverlight] SL 2 Error AG_E_RUNTIME_MANAGED_UNKNOWN_ERROR

2008-10-29 Thread Miguel Madero
I suggest you to use the migration documents. Most of the changes are there.


 

Opening the document in Blend can be better than VS. 

The main issues I had were with styles, but the principal was with the
Duration property that was renamed and then the changes in ContentPresenter.

 

 

This is part of a blog post I started to write and might never finish:

 

Silverlight is released, to get more info from Scott
http://weblogs.asp.net/scottgu/archive/2008/10/14/silverlight-2-released.as
px  Gu's post and read the
http://www.microsoft.com/silverlight/resources/readme.aspx?v=2.0
developer notes, this is only a summary that might apply for most migration
cases. The good news is that there are no breaking changes if you're
migrating from RC0 to RTW. If you're still on Beta 2 you need to see the RC0
http://download.microsoft.com/download/6/f/e/6fe1f43d-9d0c-4346-ad08-602df9
bcb3cf/BreakingChangesBetweenBeta2andRelease.doc  migration list and Jesse
. 

...

Remember this doesn't cover all migration scenarios, please refer to the
developer http://www.microsoft.com/silverlight/resources/readme.aspx?v=2.0
notes, Jesse Liberty http://silverlight.net/blogs/jesseliberty/  or Tim
Heuer's blog http://timheuer.com/blog/  and if you are still on Beta 2
look at the RC0
http://download.microsoft.com/download/6/f/e/6fe1f43d-9d0c-4346-ad08-602df9
bcb3cf/BreakingChangesBetweenBeta2andRelease.doc  migration list. 

 

 

 

 

 Miguel A. Madero Reyes

  http://www.miguelmadero.com/ www.miguelmadero.com (blog)
  mailto:[EMAIL PROTECTED] [EMAIL PROTECTED] 
 +61 (0) 406-704-161

 623/243 Pyrmont Street 
 Pyrmont, NSW, 2009

 Australia

P Please reconsider your environmental responsibility before printing this
e-mail

The information in this e-mail is confidential and may be legally
privileged. It is intended solely for the addressee. If you are not the
intended recipient, any disclosure, copying, distribution or any action
taken or omitted to be taken in reliance on it, is prohibited and may be
unlawful.

 

From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
On Behalf Of Andy Beaulieu
Sent: Wednesday, 29 October 2008 9:49 PM
To: listserver@ozSilverlight.com
Subject: RE: [OzSilverlight] SL 2 Error AG_E_RUNTIME_MANAGED_UNKNOWN_ERROR

 

It's likely because of some style information in your app.xaml that is no
longer valid because of changes in RC0/RTW.

 

I would first try just opening App.xaml in the editor and look for any
errors (squiggly underlines) in the file, as the editor is actually pretty
good at catching them.

 

If that doesn't find it, then try opening in Blend, as that is usually even
better at finding the styling errors.

 

Finally, if you're still stuck, just remove the style info from App.xaml and
make sure you're running OK, then add in the style info piece by piece.

 

Hope this helps.

 

From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
On Behalf Of Muhammad Niaz
Sent: Wednesday, October 29, 2008 1:46 AM
To: listserver@ozSilverlight.com
Subject: [OzSilverlight] SL 2 Error AG_E_RUNTIME_MANAGED_UNKNOWN_ERROR

 

Hi All,

   I have updated my SL2 Beta 2 to final version SL2 without RC0. So now
error is coming AG_E_RUNTIME_MANAGED_UNKNOWN_ERROR [Line: 173 Position: 26]

This error comes in App.xaml.cs's InitializeComponent() .

Can anybody help me.

 

Thanks  Regards,

Muhammad Niaz

Software Engineer

Intagleo Systems Pvt Ltd

www.intagleo.co.uk

 

---
OzSilverlight.com - to unsubscribe from this list, send a message back to
the list with 'unsubscribe' as the subject.
Powered by mailenable.com - List managed by www.readify.net 

---
OzSilverlight.com - to unsubscribe from this list, send a message back to
the list with 'unsubscribe' as the subject.
Powered by mailenable.com - List managed by www.readify.net 




--- 
OzSilverlight.com - to unsubscribe from this list, send a message back to the 
list with 'unsubscribe' as the subject.
Powered by mailenable.com - List managed by www.readify.net


RE: [OzSilverlight] SL 2 Button having Image.?

2008-10-24 Thread Miguel Madero
The best way to go is to edit the ControlTemplate, I’ll suggest to use Blend
to visually do it. 

 

 Miguel A. Madero Reyes

  http://www.miguelmadero.com/ www.miguelmadero.com (blog)
  mailto:[EMAIL PROTECTED] [EMAIL PROTECTED] 
 (871)730-8319
 (871)763-0020
 Peten #509 
 Fracc Florida Blanca, 27260
 Torreón, Coahuila

P Please reconsider your environmental responsibility before printing this
e-mail

The information in this e-mail is confidential and may be legally
privileged. It is intended solely for the addressee. If you are not the
intended recipient, any disclosure, copying, distribution or any action
taken or omitted to be taken in reliance on it, is prohibited and may be
unlawful.

 

From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
On Behalf Of Muhammad Niaz
Sent: Friday, 24 October 2008 9:10 PM
To: listserver@ozSilverlight.com
Subject: [OzSilverlight] SL 2 Button having Image.?

 

Hi All,

Can anybody help me about to make a button that contain Image as a
child, mean we change Button’s default Look and Feel, and also mouse over
,Enable, disable effects.

 

 

 

 

 

Thanks  Regards,

Muhammad Niaz

Software Engineer

Intagleo Systems Pvt Ltd

www.intagleo.co.uk

 

---
OzSilverlight.com - to unsubscribe from this list, send a message back to
the list with 'unsubscribe' as the subject.
Powered by mailenable.com - List managed by www.readify.net 




--- 
OzSilverlight.com - to unsubscribe from this list, send a message back to the 
list with 'unsubscribe' as the subject.

Powered by mailenable.com - List managed by www.readify.net



RE: [OzSilverlight] Success or Failure of SL.?

2008-10-20 Thread Miguel Madero
Do you know of any good third party controls?

 

 

 

 Miguel A. Madero Reyes

  http://www.miguelmadero.com/ www.miguelmadero.com (blog)
  mailto:[EMAIL PROTECTED] [EMAIL PROTECTED] 
 (871)730-8319
 (871)763-0020
 Peten #509 
 Fracc Florida Blanca, 27260
 Torreón, Coahuila

P Please reconsider your environmental responsibility before printing this
e-mail

The information in this e-mail is confidential and may be legally
privileged. It is intended solely for the addressee. If you are not the
intended recipient, any disclosure, copying, distribution or any action
taken or omitted to be taken in reliance on it, is prohibited and may be
unlawful.

 

From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
On Behalf Of Paul Stovell
Sent: Monday, 20 October 2008 9:38 PM
To: listserver@ozsilverlight.com
Subject: Re: [OzSilverlight] Success or Failure of SL.?

 

An area of the Silverlight ecosystem that I think will be interesting to see
is the third-party offerings. It will be interesting watching how many third
party controls arrive for Silverlight, as well as what types of controls
they are, and how the market reacts to them. I know that in the WPF space,
we'd see a lot less WPF LOB applications if it weren't for the likes of
Infragistics, Xceed, ActiPro and Syncfusion. 

As much as there are many concepts that carry between WPF and SL, many of
the implementation details that control vendors rely on don't seem to cross
over so easily, which makes it harder for third parties to build on top.
Examples off the top of my head: custom markup extensions, template binding
for attached (read: third party extension) properties and the lack of a
logical tree (a lot harder to use binding with non-visual elements).  

Certainly there are vendors building on Silverlight, but their offerings
seem tamer than their WPF counterparts, and I suspect that's a limitation
imposed by some of the missing areas of extensibility above. But then again,
will third party controls even be relevant for Silverlight applications? Is
there a thriving market for third party Flash controls?




On Fri, Oct 17, 2008 at 10:15 AM, Jordan Knight [EMAIL PROTECTED]
wrote:

Just on the success of SL in the RIA space... 

 

The hard sell is going to be to the designers... they are in many ways
married to Adobe PS, but this doesn't they have to stay married to
Flash/Flex. They key is, they don't have to stop using PS to do their
designs - showing them how easy it is to go from PS / IL to Expression
Design/Blend is the goal. Also, showing designers just how many great C#
developers are out there to take away their ActionScript/Flex pain so they
can concentrate on designs and not program implementation will help attract
more designers. I'd put money on there being more  C# developers out there
than Action Script developers - and that on average the C# developer has
more experience (i.e. they are *better* :)).

 

We are starting a new user group called the Silverlight Designer and
Developer Network in Melbourne (first meeting Nov 27th - a formal
announcement coming soon) especially to help bridge this gap... 

 

My observation is that traditionally designers don't have a lot of
SIG/community stuff they attend regularly - hopefully the SDDN can buck that
trend. 

 

Each meeting will have content for designers and content for developers -
including lots of content on bridging the gap between the two camps.
Bringing designers and developers together regularly creating dialog is the
first step to making Silverlight a great success. 

 

All sessions recorded and available for free on the site after the meet!

 

As I said there will be a formal announcement very soon so stay posted.

 

Jordan.

 

From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
On Behalf Of Jordan Knight
Sent: Friday, 17 October 2008 9:53 AM


To: listserver@ozSilverlight.com
Subject: RE: [OzSilverlight] Success or Failure of SL.?

 

Lucky Silverlight has so many great tools to crank out XAML for you :)

 

At the end of the day is there really any more work in style creation than
with something like CSS?

 

At the end of the day you aren't being forced to trawl though pages of XAML
if you don't so desire :)

 

From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
On Behalf Of Muhammad Niaz
Sent: Friday, 17 October 2008 12:13 AM
To: listserver@ozSilverlight.com
Subject: RE: [OzSilverlight] Success or Failure of SL.?

 

Hi Stephen,

 I agree with your comments related to .NET expertise. But even
though I do't know about Flex but I want to say that lot of XAML markup is
generated when we are building out styles in App.xaml, and even Designing is
also tough for developer point of view L

 

 

Thanks  Regards,
Muhammad Niaz
Software Engineer
Intagleo Systems Pvt Ltd.
+92 321 569 4195

 

From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
On Behalf Of Stephen Price
Sent: Thursday, October 16, 2008 10:01 AM
To: listserver@ozSilverlight.com
Subject: Re: [OzSilverlight] Success or Failure 

RE: [OzSilverlight] Success or Failure of SL.?

2008-10-17 Thread Miguel Madero
I agree that the big number of C# developers will favour SL adoption as the 
main RIA platform, but remember than that's only one of many languages 
supported by .NET and thus Silverlight, being VB de most used, but I don’t like 
it, so let's not talk about it. The DLR will be a huge bump for .NET adoption 
from other developers, specially from the Ruby and Python communities. For 
them, SL is a great opportunity to offer a richer experience than AJAX (we're 
still not there), coding in their own languages and easily sharing business 
logic, validations, data, etc. I remember a talk at TechED, I don’t remember 
the name of the guy, but he was talking about IronPython and told us 
(paraphrasing), you’re not the target of these (or the other DRL languages), if 
you’re happy coding on C#, MS will be happy, but our real target is the Python 
community. 

 

So as a Python, Ruby or even JavaScript developer, what would you choose as a 
RIA platform having the DLR?

 

 

Tooling and integration, and even the languages are not totally there yet, but 
I was recently looking at a project called Silverline 
http://github.com/jschementi/silverline/tree/2642bc5b3709565a4037a8d38e7f97b185bbd505
 , part of the IronRuby-Contrib project, that will help as a bridge for Rails 
Devs to SL. Sounds really compelling. 

 

Silverline also lets you run pieces of your Rails application on the client, 

removing the need to write a separate JavaScript or Flash application simply 

to move functionality to the client. This is accomplished by flagging certain 

actions as client, and running the necessary pieces of your Rails appliation 

and Rails itself on IronRuby in the browser.

 

 

 

 

 

 Miguel A. Madero Reyes

 www.miguelmadero.com (blog)

 [EMAIL PROTECTED] 

 (871)730-8319

 (871)763-0020

 Peten #509 

 Fracc Florida Blanca, 27260

 Torreón, Coahuila

 Please reconsider your environmental responsibility before printing this 
e-mail

The information in this e-mail is confidential and may be legally privileged. 
It is intended solely for the addressee. If you are not the intended recipient, 
any disclosure, copying, distribution or any action taken or omitted to be 
taken in reliance on it, is prohibited and may be unlawful.

 

 

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Jordan Knight
Sent: Friday, 17 October 2008 11:09 AM
To: listserver@ozSilverlight.com
Subject: RE: [OzSilverlight] Success or Failure of SL.?

 

 - numbers of developers (no point coming up with cool

tools/technology if no one uses it)

  - resources to help those developers (getting started / moving forward)

 

As I said before, iI think c# developers are the easy sell... I think more 
focus needs to be placed on designers to get this puppy off the ground.

 

BTW I am a developer by all means... I don't have a lot of design experience 
(well I think I do sometimes)... I need and want good developers who know their 
way around the required bits of SL/Expression to work with in the future.

 

-Original Message-

From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Barry Beattie

Sent: Friday, 17 October 2008 11:00 AM

To: listserver@ozsilverlight.com

Subject: Re: [OzSilverlight] Success or Failure of SL.?

 

On Fri, Oct 17, 2008 at 9:12 AM, Damian Edwards

[EMAIL PROTECTED] wrote:

 Actually there's probably less work because XAML is a controlled and strict

 environment the tooling is much better and can be trusted more. Using the

 designer and palettes in Expression Web or VS2008 to build your CSS styles

 is not WYSIWYG and for experienced CSS coders is actually, usually, slower.

 Compare that to Blend where creating reusable styles is a joy.

 

so you're saying the development road-bumps are smoothed by the

tooling for Silverlight? I wonder what you make of this then?

 

http://www.sdtimes.com/MICROSOFT_CO_SPONSORS_ECLIPSE_PROJECT_FOR_SILVERLIGHT/About_OPENSOURCE_and_SILVERLIGHT_and_ECLIPSE_and_MICROSOFT_and_SOYATEC/32968

 

Look, at the end of the day, there's not going to be a lot of

difference between Flex and Silverlight.

 

an XML-type markup language to describe the UI, a Java-type language

for logic and object creation. Meh. Same (basic) leopard, different

spots.

 

Tooling *is* important with quality intellesence, and designer-built

interfaces. That's why in the Flex world the tool of choice (not

exclusive) is built on Eclipse - to smooth the transition for those

Java and ColdFusion developers working with Flex. Couple that with

Adobe designer products pushing out Flex UI's.  Microsoft has always

had quality tooling with VisualStudio

 

but where the battle will be fought (and it doesn't have to be red

team Vs blue team but simply horses for courses) is ... (in order, my

opinion)

 

 - the client runtime availability (the SL player Vs the Flash Player)

and therefore the potential reach of the application (so what's wrong

with SL being the 

RE: [OzSilverlight] Build Ninject for Silverlight

2008-10-08 Thread Miguel Madero
I found about this on the forum J

Too bad it’s hard coded L

But it’s working fine.  

 

 Miguel A. Madero Reyes

  http://www.miguelmadero.com/ www.miguelmadero.com (blog)
  mailto:[EMAIL PROTECTED] [EMAIL PROTECTED] 
 (871)730-8319
 (871)763-0020
 Peten #509 
 Fracc Florida Blanca, 27260
 Torreón, Coahuila

P Please reconsider your environmental responsibility before printing this
e-mail

The information in this e-mail is confidential and may be legally
privileged. It is intended solely for the addressee. If you are not the
intended recipient, any disclosure, copying, distribution or any action
taken or omitted to be taken in reliance on it, is prohibited and may be
unlawful.

 

From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
On Behalf Of Jonas Follesø
Sent: Wednesday, 8 October 2008 4:52 PM
To: listserver@ozsilverlight.com
Subject: Re: [OzSilverlight] Build Ninject for Silverlight

 

Hi Jordan,

Don't know if you've worked this one out. But I figured I'll answer, as I
had the same issues some time back.

To build the entire solution, simply type build from a command line to
execute the build.cmd file. To build only the Silverlight 2 version type:

build platform-silverlight20

If you've installed Silverlight 2 RC0 this will yield the following message:

[echo] Silverlight v2.0 is not available. Skipping platform.

The problem is how the NAnt Silverlight Build tasks detects if Silverlight
is installed or not. It looks for a hard-coded path at 
C:\program files\Microsoft Silverlight\2.0.30523.8 - Which is the location
of Beta 2.0.

If you've upgraded you don't have this path anymore. The easiest fix is to
create this folder, and copy the content from the RC0 folder (2.0.30923.0)
into the Beta 2 folder (2.0.30523.8). That way you can trick the NAnt
build task and get it to build against RC0.

The real fix off course is to re-build NAnt with this fix, and update the
compiled version of NAnt under your Ninject folder structure.

Hope this solves your problem :)

Cheers,
Jonas



On Fri, Oct 3, 2008 at 3:46 PM, Jordan Knight [EMAIL PROTECTED]
wrote:

Hi Guys,

 

I need to build Ninject to get the latest updates (against SL). I have the
SVN repo checked out, just wondering how to actually build the SL
assemblies.

 

Cheers,

 

Jordan.

 

 

---
OzSilverlight.com - to unsubscribe from this list, send a message back to
the list with 'unsubscribe' as the subject.
Powered by mailenable.com - List managed by www.readify.net 




--- 
OzSilverlight.com - to unsubscribe from this list, send a message back to the 
list with 'unsubscribe' as the subject.

Powered by mailenable.com - List managed by www.readify.net



RE: [OzSilverlight] A couple of questions

2008-09-19 Thread Miguel Madero
Scott, 

 

This looks like something I’ve been looking for, actually I’ve been
discussing this before with several people and thought we might not see it
til v3. 

Could you let me know more about how to dynamically load the xaps? This
could really help to load 3rd party libraries, frameworks, dlr, etc without
double taxing. 

 

 

 

 Miguel A. Madero Reyes

  http://www.miguelmadero.com/ www.miguelmadero.com (blog)
  mailto:[EMAIL PROTECTED] [EMAIL PROTECTED] 
 (871)730-8319
 (871)763-0020
 Peten #509 
 Fracc Florida Blanca, 27260
 Torreón, Coahuila

P Please reconsider your environmental responsibility before printing this
e-mail

The information in this e-mail is confidential and may be legally
privileged. It is intended solely for the addressee. If you are not the
intended recipient, any disclosure, copying, distribution or any action
taken or omitted to be taken in reliance on it, is prohibited and may be
unlawful.

 

From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
On Behalf Of Scott Barnes
Sent: Friday, 19 September 2008 3:34 PM
To: listserver@ozSilverlight.com
Subject: RE: [OzSilverlight] A couple of questions

 

Jonas,

 

Correct but it also depends at what level you’re at and what you define is
secret. In that if a user is authenticated and you have all the “forms” for
example housed in the .XAP (which is fine), then before you accept and
receive data between the client and server you need to sanitize it and
ensure the user doesn’t go rogue. It’s something at times I’ve seen folks in
both Flash and Silverlight space overlook (as once they get through the
security gate, it’s an assumed the user will not interfere with the client).
It can be small things like switching parts of the UI on or off and the more
clues you give a malicious user, the more they have to work with in terms of
figuring out what it is you have written and how you expect data to be sent
back and forth.

 

It’s more of a cautionary tip and I’d highly recommend folks (when it comes
to Admin vs. Public) look into dynamically loading .XAP files or more to the
point bring XAML in over the wire as well.

 

I’ve gotten loading of modules to work dynamically and should post some demo
code around this as it’s quite cool to bring in .XAP files over the wire as
needed. As when you load a .XAP file, it stores it local cache (ie not in
memory) and then feeds from it when it needs it as well, so the tax isn’t
high. You also can do sniff tests to determine if an assembly is loaded or
not and if it isn’t go get it.

 

I’ve taken a framework I wrote in the early days of Flex and ported it over
to Silverlight, (SynergyFlex = SynergyLight) :D and as we draw closer to
Silverlight 2 ship dates I’ll see if I can spare up some time to release it
as a basic starter guide to some of these ideas.

 

 

 

From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
On Behalf Of Jonas Follesø
Sent: Thursday, September 18, 2008 5:12 AM
To: listserver@ozsilverlight.com
Subject: Re: [OzSilverlight] A couple of questions

 

Scott,

 

On point 3, why would that matter? Even if you fake the response and trick
your Silverlight app (which would be easy, just download the XAP, unzip it,
and have it talk to a different end-point), your XAML shouldn't really
contain any secret information anyway. Your users is not part of your
markup, that's just data. That information should be sent to the user in an
authenticated WCF call So even if you manage to enable the show all
user screen, your service should re-validate on the server side before
giving you that data.

 

But there might be cases where what you describe makes allot of sense. And
partial loading of XAP's is quite interesting stuff - could be useful for
things like composite Silverlight applications, where you download modules
as needed. 

 

 

 

On Thu, Sep 18, 2008 at 5:19 PM, Scott Barnes [EMAIL PROTECTED]
wrote:

Hi Ross! (long time no speak) J

 

1)  You have a number of options, essentially the easiest way is to tap
into the Windows Communication Foundation services and utilize this option.
It's essentially sending data over the wire in XML format, Silverlight has
great hooks already built in to handle these type of requests. We're also
looking to do more here to make things more seamless in upcoming versions. I
can't say more than that, but it will get a lot easier in the long term.

2)  That's the intent going forward. We see a great deal of positive
power with using LINQ inside Silverlight and WPF. It's almost safe to say
out loud to think of LINQ as  you're Data Passport between client and
server. There will be more expansion on this in the future as well.

3)  Security will remain similar or if not the same as ASP.NET today.
The difference is on the client, you essentially need to architect in such a
way that the initial first ask is defining whom the person is and what
their session may look like. From there, it's a case of
CanIHaveAccessTo(args) style security access (given 

RE: [OzSilverlight] Canvas Overflow

2008-09-19 Thread Miguel Madero
Jordan, 

 

I think the main problem is that your C# code doesn’t have semicolons and
looks I don’t know if the compiler recognize the Sub keyboard. 

 

 

I ended up doing this in c# - 

 

Private Sub doClip()

Dim avmb As AnnotationViewModelBase = CType(DataContext,
AnnotationViewModelBase)

Dim r As New Rect(0, 0, avmb.ConfiguredWidth, avmb.ConfiguredHeight)

Dim rect As New RectangleGeometry()

rect.Rect = r

LayoutRoot.Clip = rect

 

 

 Miguel A. Madero Reyes

  http://www.miguelmadero.com/ www.miguelmadero.com (blog)
  mailto:[EMAIL PROTECTED] [EMAIL PROTECTED] 
 (871)730-8319
 (871)763-0020
 Peten #509 
 Fracc Florida Blanca, 27260
 Torreón, Coahuila

P Please reconsider your environmental responsibility before printing this
e-mail

The information in this e-mail is confidential and may be legally
privileged. It is intended solely for the addressee. If you are not the
intended recipient, any disclosure, copying, distribution or any action
taken or omitted to be taken in reliance on it, is prohibited and may be
unlawful.

 

From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
On Behalf Of Jordan Knight
Sent: Friday, 19 September 2008 3:26 PM
To: listserver@ozSilverlight.com
Subject: RE: [OzSilverlight] Canvas Overflow

 

I ended up hacking it a bit…

 

I wanted to bind the values for the clip (as you can move the item around
the screen) – i.e. it’s a magnifying glass for an image…

 

You can’t do this though:

 

Canvas.Clip

RectangleGeometry Rect=”{Binding MyRect}”/

Where myrect is a Rect object from the ViewModel…

 

I ended up doing this in c# - 

 

Private Sub doClip()

Dim avmb As AnnotationViewModelBase = CType(DataContext,
AnnotationViewModelBase)

Dim r As New Rect(0, 0, avmb.ConfiguredWidth, avmb.ConfiguredHeight)

Dim rect As New RectangleGeometry()

rect.Rect = r

LayoutRoot.Clip = rect

 

avmb.ConfiguredWidth is from the ViewModel and changes as the drags happen…
I’m not happy with this solution so if anyone can tell me how to bind to
that Clip stuff…

 

 

 

 

From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
On Behalf Of .net noobie
Sent: Friday, 19 September 2008 3:14 PM
To: listserver@ozsilverlight.com
Subject: Re: [OzSilverlight] Canvas Overflow

 

Could you used a ScrollViewer, might not be exactly what you after, but
might be able to stop your canvas from going bigger than you wanted?

 

 

On Fri, Sep 19, 2008 at 1:27 PM, Jordan Knight [EMAIL PROTECTED]
wrote:

Hi all,

 

I can't for the life of me figure out how to stop elements in a canvas from
overflowing J

 

I want to truncate content when is too big J

 

Cheers,

 

Jordan

---
OzSilverlight.com - to unsubscribe from this list, send a message back to
the list with 'unsubscribe' as the subject.
Powered by mailenable.com - List managed by www.readify.net 




-- 
.net noobie™

---
OzSilverlight.com - to unsubscribe from this list, send a message back to
the list with 'unsubscribe' as the subject.
Powered by mailenable.com - List managed by www.readify.net 

---
OzSilverlight.com - to unsubscribe from this list, send a message back to
the list with 'unsubscribe' as the subject.
Powered by mailenable.com - List managed by www.readify.net 




--- 
OzSilverlight.com - to unsubscribe from this list, send a message back to the 
list with 'unsubscribe' as the subject.

Powered by mailenable.com - List managed by www.readify.net



RE: [OzSilverlight] A couple of questions

2008-09-19 Thread Miguel Madero
Scott, 

 

Sounds interesting, specially for composite applications (a’la CAB), but I
think that could be a bit complex for simpler views/apps, something like
what Nikhil did with the Scripts was really simple and straightforward, the
only disadvantage I saw was that it added heavy dependencies to the dlr. 

 

 

 Miguel A. Madero Reyes

  http://www.miguelmadero.com/ www.miguelmadero.com (blog)
  mailto:[EMAIL PROTECTED] [EMAIL PROTECTED] 
 (871)730-8319
 (871)763-0020
 Peten #509 
 Fracc Florida Blanca, 27260
 Torreón, Coahuila

P Please reconsider your environmental responsibility before printing this
e-mail

The information in this e-mail is confidential and may be legally
privileged. It is intended solely for the addressee. If you are not the
intended recipient, any disclosure, copying, distribution or any action
taken or omitted to be taken in reliance on it, is prohibited and may be
unlawful.

 

From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
On Behalf Of Scott Barnes
Sent: Friday, 19 September 2008 3:52 PM
To: listserver@ozSilverlight.com
Subject: RE: [OzSilverlight] A couple of questions

 

The other benefit of Commands is that essentially you can throw the same
command from different areas within your View, which helps reduce coupling
of the View with how the overall traffic flows within your Client.

 

You can build a FrontController class which marries both the Event and
Command together today. Given that Silverlight has RoutedEvents, one could
simply throw an Event (through a homemade EventDispatcher), the
FrontController catches it and marries the event with a command and then the
command fires a execute method. This in turn will carry out the workflow
required in order to achieve a successful command delivery. Upon a result,
the command can also throw another command (depending on the data returned)
and so on.

 

This is good, as it essentially allows again multiple events to feed off the
same commands (but yet have different semantic value) whilst at the same
time keeping parts of the overall view abstracted from one another.

 

Martin Fowler’s J2EE patterns have some good paths here to follow around
this kind of thing.

 

Actually I feel a blog post + code brewing now.. stand by.. (*cracks
fingers* - time to put my code where my mouth is!)

 

 

--

Scott Barnes 
(Rich Platforms Product Manager)

 http://www.microsoft.com/ Microsoft Corp. | Blog:
http://blogs.msdn.com/msmossyblog http://blogs.msdn.com/msmossyblog |
Mobile: + 1 (425) 802-9503 (New!)

Twitter:  http://twitter.com/mossyblog twitter.com/mossyblog | MSN:
[EMAIL PROTECTED]
P Please consider your environmental responsibility before printing this
e-mail

 

 

 

From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
On Behalf Of Jonas Follesø
Sent: Thursday, September 18, 2008 8:23 PM
To: listserver@ozsilverlight.com
Subject: Re: [OzSilverlight] A couple of questions

 

Well, I can't answer for Jordan but I'll try to illustrate.

 

While using the Model-View-ViewModel pattern you have all your UI state and
behavior in a separate class. This class is normally set as the data context
on your View (XAML page), and you bind everything against this class. Even
things like IsSaveEnabled to enable the save button. 

 

The View communicates back to the ViewModel by commands. The benefit is that
you don't have any btnSave_Click event handler in your codebehind. Instead
your ViewModel waits for that Command to trigger, and then do the work.

 

The benefit of designing your application using these patterns is that you
can build quite big applications with (almost) no code-behind. This makes
your app easier to test, more maintainable, and easier to work with for a
designer using Blend. So what is the problem? The problem is that there is
no declarative(XAML) way of triggering animations when thing happens. So if
you want to start a storyboard then the ViewModel IsBussy property is true,
you will have to write this code by hand.

 

Typically that would involve listening to a PropertyChanged event in the
codebehind of the form, and when the ViewModel IsBussy changes to true, then
start the storyboard, when it changes to false, then stop it. This isn't the
end of the world, but when we're so close to achieving no-code behind it
would be nice to go all the way. Also, doing this forces your designer to
have a stroyboard with that exact name (say ShowProgressanimation) present,
so you as the developer ends up owning part of the user experience. If the
designer accidentally deletes the storyboard the app will fail at runtime,
or perhaps not even compile. The less named elements in your XAML file the
better.

 

- Jonas

 

On Fri, Sep 19, 2008 at 1:12 PM, Barry Beattie [EMAIL PROTECTED]
wrote:

 It's a PITA to make apps with all the bells and whistles in XAML then have
 to break M-V-VM to finish it off.

got an example to show what you mean? (just curious/wanting to learn)