silverlight-4.0

Silverlight 4 - elevated permission *inside* the browser

十年热恋 提交于 2019-12-05 20:02:40
I know Silverlight 4 can handle elevated permissions outside the browser. Is there a way to accomplish this inside the browser? I need to make a folder/file upload manager that gives a better user experience than the standard , and I'd like to implement it in Silverlight. I know Java has an option to gain elevated permissions, but you have to attach a signed certificate to your app. Does Silverlight 4 have a similar option - to gain elevated permissions by attaching a signed certificate (after warning the user, of course)? -Doug I believe that the full-trust option is only available as an OOB

Silverlight 4 and Implicit styling

喜欢而已 提交于 2019-12-05 19:48:39
In Silverlight 4 it's possible to use implicit styling - and that is amazing! But what if I want to apply a style to all of my Buttons, CheckBoxes and RadioButtons (all inheriting from ButtonBase)? I can't set TargetType on the Style to ButtonBase - that doesn't work. Do I need to create a style to each of the 3 control types? http://www.silverlightshow.net/items/Implicit-Styles-in-Silverlight-4.aspx Try this xamlgeek, The following implicit styles work well for me. I first create some name/keyed styles, using common BasedOn styles whereever possible. Then I simply create the implicit styles

How can i navigate one xaml page to another?

↘锁芯ラ 提交于 2019-12-05 19:17:34
问题 i have 2 page i need to navigate mainpage.xaml to login.page xaml but it throws me Object reference not set to an instance of an object. in Root.Children.Clear();.... i added this codes in App.xaml: private void Application_Startup(object sender, StartupEventArgs e) { Grid myGrid = new Grid(); myGrid.Children.Add(new MainPage()); this.RootVisual = myGrid; } and than i adde some codes on main.xaml to navigate to LoginUI.xaml namespace Gen.CallCenter.UI { public partial class MainPage :

Binding to a collection of DependencyObjects in Silverlight 4

亡梦爱人 提交于 2019-12-05 18:37:58
As of Silverlight 4 it is possible to data bind against a DependencyObject (instead of a Framework element in previous versions). So far so good, but how do I bind agains a collection of DependencyObjects. The DataContext is not passed from the ObservableCollection to the collection elements, so that the DependencyProperties of the DependencyObjects are never called (neither the changed events). Neither the DependencyObject offers SetBinding or DataContext to initialize the binding manually. Thanks for any advice here. depoll To get the DataContext to propagate in this case, the

How can I handle an event when pressed Start button (Windows Phone)

荒凉一梦 提交于 2019-12-05 18:10:31
How can I make an event when pressed on Start button (windows Phone) ? UPDATED If it is not possible, so how can I understand that user have pressed START button ? The Start and Search buttons themselves are reserved and do not generate events to third party applications. Having said that, two events will be generated when the user pushes the start button: A navigation event with NavigationMode being Forward and IsNavigationInitiator being false A PhoneApplicationService.Deactivated event However you cannot cancel the navigation using either of these events and they can occur for other reasons

Implementing the double-click event on Silverlight 4 Datagrid

情到浓时终转凉″ 提交于 2019-12-05 17:52:23
Any good soul have an example of implementing the "Command Pattern" introduced by Prism on a double click event in a Silverlight 4.0 DataGrid? I tried the following: <data:DataGrid x:Name="dgUserRoles" AutoGenerateColumns="False" Margin="0" Grid.Row="0" ItemsSource="{Binding Path=SelectedUser.UserRoles}" IsReadOnly="False"> <data:DataGrid.Columns> <data:DataGridTemplateColumn Header=""> <data:DataGridTemplateColumn.CellTemplate> <DataTemplate> <Button Width="20" Height="20" Click="Button_Click" Command="{Binding EditRoleClickedCommand}" CommandParameter="{Binding SelectedRole}" /> <

Iterating over Word Document Fields using ComAutomationFactory in Silverlight 4

一世执手 提交于 2019-12-05 17:24:12
Update : This is a confirmed bug in Silverlight 4 beta. http://connect.microsoft.com/VisualStudio/feedback/ViewFeedback.aspx?FeedbackID=523052 I solved this issue by switching to a full blown WPF application and using regular old Microsoft.Office.Interop.Word. But I'm still very interested in how to get this to work using the dynamic values from ComAutomationFactory. This may be more of a C# 4.0 question, but what I'm trying to do is leverage the ComAutomationFactory class in a trusted SL4 app to load up a Word doc, change some text, and print it. Using a regular windows app, it's pretty easy:

Silverlight 4 launch a trusted application into the browser?

ぃ、小莉子 提交于 2019-12-05 14:12:53
I just lost 5 hours looking for a answer which i haven't been able to find :p First, I'd like to force a trusted application (i need to access the file system) to display into the browser. Based on what i found on google a trusted application must be installed and launched as a desktop application (also called out-of-browser application). So, i want to have an installed application on the client side but meanwhile, the user must also be able to start this same application into a browser window when he goes on my web site. Is this possible ? Second, I'd like to give to the user the possibility

Runtime theme switching with explicit styles in Silverlight 4

倖福魔咒の 提交于 2019-12-05 13:38:44
It's been requested that we add dynamic theme switching to our application, and I'm having problems figuring out how to do this. Here's the current situation: our application has a merged resource dictionary with explicit (not implicit) styles. The views in our application refer to these styles through the StaticResource markup extension. The reason why we're not using implicit styles is that we have multiple looks for common types of controls; for example, buttons in one location look different than buttons in another. So what we are wanting to do is create themes that replace these named

Multiple Out-of-Browser Applications in One Application

坚强是说给别人听的谎言 提交于 2019-12-05 13:27:08
I'm looking at a scenario where I need to create a single "master" Silverlight application and then add "child" applications for an out-of-browser Silverlight application. The scenario is something like this. A user will visit a gameboard web site and choose a game to play. Let's call it Checkers. He likes it, so then he installs the out-of-browser app to his desktop. He then finds Chess, and installs that too. For both games, while played on the site, he has stats (games played, win/loss records, etc.). For each game on the site, he navigates to a different page. But now he wants to play