Salakhetdinov Shamil
mcp2004 at mail.ru
Sat May 30 10:48:29 CDT 2009
Hi Robert,
Thank you for your reply.
I thought that using special manifest files one can define something like a sand-box environment without setting full trust priviledges for the source .xaml files with code behinn or inline code, the latter could be like that:
<Window xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml">
<Button Click="button_Click">OK</Button>
<x:Code><![CDATA[
void button_Click(object sender, RoutedEventArgs e)
{
MessageBox.Show("OK");
}
]]></x:Code>
</Window>
--
Shamil
-----Original Message-----
From: Robert Stewart <robert at webedb.com>
To: dba-vb at databaseadvisors.com
Date: Sat, 30 May 2009 07:33:11 -0500
Subject: Re: [dba-VB] SCRUM/WPF - Buttons Styling Exercizes
> Rendering xaml files requires Framework 3.5 SP1 on the client machine.
>
> You have to enable full trust in the security settings of the application.
>
> I have not used the pages I have used the windows.
>
> You create an instance of the window and show it.
>
> At 03:58 AM 5/30/2009, you wrote:
> >Date: Sat, 30 May 2009 01:48:12 +0400
> >From: Salakhetdinov Shamil <mcp2004 at mail.ru>
> >Subject: Re: [dba-VB] Fw: Re: SCRUM/WPF - Buttons Styling Exercizes
> > (StepN)
> >To: "Discussion concerning Visual Basic and related programming
> > issues." <dba-vb at databaseadvisors.com>
> >Message-ID: <E1MA9vw-00064e-00.mcp2004-mail-ru at f142.mail.ru>
> >Content-Type: text/plain; charset=koi8-r
> >
> >Hi Gustav,
> >
> >I have created this code by hand - I have no Expression Design 2 here.
> >
> >I'd guess Chrome, Safari and Opera will start support .xaml files
> >rendering soon as recently FireFox 3.x have done: AFAIU rendering
> >.xaml files is done by using something like ActiveX control - do you
> >know which one?
> >
> >BTW, what I do not know but (I'd hope that it should work) is how to
> >use code behind with such .xaml pages? If create e.g.
> >
> >http://shamils-4.hosting.parking.ru/wpf/SpecialButtonStyleX.xaml.cs
> >
> >processing button click event then it will not run - it will be
> >blocked because of security reasons - there should be possible I
> >guess/hope to accompany such .xaml.cs files with special manifest
> >files to have code behind enabled?
> >
> >Just wondering - if loading .xaml pages with code behind would be
> >possible and also if it would be possible to have entry .xaml pages
> >to call other ones located on server then that would be a way to
> >make light .xaml (not XBAP) applications with .xaml pages loaded
> >from server, compiled and run in demand...
> >
> >Thank you.
> >
> >--
> >Shamil
>
>
> _______________________________________________
> dba-VB mailing list
> dba-VB at databaseadvisors.com
> http://databaseadvisors.com/mailman/listinfo/dba-vb
> http://www.databaseadvisors.com
>