we are providing proffetional training in gandhinagar.
.net training in gandhinagar
php training in gandhinagar
java training in gandhinagar
ios training in gandhinagar
android training in gandhinagar
we are providing proffetional training in gandhinagar.
.net training in gandhinagar
php training in gandhinagar
java training in gandhinagar
ios training in gandhinagar
android training in gandhinagar
Microsoft Silverlight - An Introduction
--
Mohammad Elsheimy
http://JustLikeAMagic.com
http://WithDotNet.net
http://twitter.com/elsheimy
http://facebook.com/justlikeamagic.com
An introduction to Silverlight with comparision to Flash.
(Some information has been taken from msdn website and other microsoft's resources) - Rajesh Lal
Greens Technology is the best Android Training with 100% Placement Institute in Tambaram Chennai. We offering Android online, placement, corporate Training around the Chennai. Our syllabus is revised monthly once by our trainers. We provide weekday classes, Weekend classes and Fast track classes in low course fees.
Development Workshop on ET1, Android and Motorola RhoElementsRomin Irani
This presentation is part of my 2-hour Development Workshop that I conducted at a Motorola Channel Power event. The workshop covered various development options on the ET1 and covered Native Android Development, HTML5 basics and a step by step breakdown of a RhoElements application that integrated device capabilities like barcode scanning.
History of silverlight versions and its featuressonia merchant
Silverlight is a browser plug-in that promotes a collaborative development environment of rich online media contents that enable developers and designers alike to integrate multimedia and graphics into web pages within the context of the managed environment.
Microsoft Silverlight - An Introduction
--
Mohammad Elsheimy
http://JustLikeAMagic.com
http://WithDotNet.net
http://twitter.com/elsheimy
http://facebook.com/justlikeamagic.com
An introduction to Silverlight with comparision to Flash.
(Some information has been taken from msdn website and other microsoft's resources) - Rajesh Lal
Greens Technology is the best Android Training with 100% Placement Institute in Tambaram Chennai. We offering Android online, placement, corporate Training around the Chennai. Our syllabus is revised monthly once by our trainers. We provide weekday classes, Weekend classes and Fast track classes in low course fees.
Development Workshop on ET1, Android and Motorola RhoElementsRomin Irani
This presentation is part of my 2-hour Development Workshop that I conducted at a Motorola Channel Power event. The workshop covered various development options on the ET1 and covered Native Android Development, HTML5 basics and a step by step breakdown of a RhoElements application that integrated device capabilities like barcode scanning.
History of silverlight versions and its featuressonia merchant
Silverlight is a browser plug-in that promotes a collaborative development environment of rich online media contents that enable developers and designers alike to integrate multimedia and graphics into web pages within the context of the managed environment.
memcached Distributed Cache. memcached is the most popular cache solution for low latency high throughput websites. improves the read timings drastically.
Provides an overview of Redis which is a Key Value NoSQL database and the different data types it supports. Also shows how to use Redis Client API from node.
High level overview of CoAP or Constrained Application Protocol. CoAP is a HTTP like protocol suitable for constrained environment like IoT. CoAP uses HTTP like request response model, status code etc.
Discussed in detail about how to design and develop custom skills (think custom apps) for Amazon Alexa Voice service.
Discusses how to design voice based experiences in detail.
Talks about Microsoft Silverlight.
Credit to whoever has the original content released first on to this wonderful site.
This is just a mash-up of various presentations I found here.
History of silverlight versions and its featuresDiya Singh
Silverlight is a browser plug-in that promotes a collaborative development environment of rich online media contents that enable developers and designers alike to integrate multimedia and graphics into web pages within the context of the managed environment.
Silverlight is a browser plug-in that promotes a collaborative development environment of rich online media contents that enable developers and designers alike to integrate multimedia and graphics into web pages within the context of the managed environment.
History of-silverlight-versions-and-its-features-CRB-TechPooja Gaikwad
Silverlight is a browser plug-in that promotes a collaborative development environment of rich online media contents that enable developers and designers alike to integrate multimedia and graphics into web pages within the context of the managed environment.
JavaFX: A Rich Internet Application (RIA) Development PlatformPraveen Srivastava
JavaFX, with its rich set of APIs and Oracle’s committed support, is a natural choice for high performance, data-centric rich Internet applications. A vibrant JavaFX community continues to develop and support JavaFX porting on mobile platforms.
Natural Language Processing using JavaScript "Natural" Library. This deck covers Natural Language Understanding using JavaScript "Natural" library in detail
Workflows are a key component of server side of IoT solution along with Analytics, Rule Engine and IoT device management. IoT focused Workflow tools draw their inspiration of classical workflow tools that exist in market, but focus more on IoT use cases. For example they are able to connect with IoT devices using IoT specific protocols like CoAP or MQTT. Node-RED is a visual tool for wiring together hardware devices, APIs and online services in new and interesting ways. It’s build by IBM Emerging Technology team from group for IoT, though it’s not limited only to IoT.
Using Swift for all Apple platforms (iOS, watchOS, tvOS and OS X)Aniruddha Chakrabarti
Swift has gained widespread popularity in just an year. So much so that Swift have emerged as the de-facto standard programming language for all Apple platforms including iOS, watchOS, tvOS and OS X. Apple also open sources Swift and soon after IBM ported Swift to Linux. Swift incorporates the language innovations that have happened in the last two decades. Swift is a compiled programming language and belongs to the ‘C’ family of languages similar to C++, Java, C#, Objective-C and D. Swift is influenced by dynamic programming languages like Python, Ruby and functional programming languages like Haskell.
Future of .NET - .NET on Non Windows Platforms. .NET has been so far targeted towards Windows only. Now Microsoft created a subset of .NET called .NET Core that would run on Linux and OS X apart from Windows.
Dev Dives: Train smarter, not harder – active learning and UiPath LLMs for do...UiPathCommunity
💥 Speed, accuracy, and scaling – discover the superpowers of GenAI in action with UiPath Document Understanding and Communications Mining™:
See how to accelerate model training and optimize model performance with active learning
Learn about the latest enhancements to out-of-the-box document processing – with little to no training required
Get an exclusive demo of the new family of UiPath LLMs – GenAI models specialized for processing different types of documents and messages
This is a hands-on session specifically designed for automation developers and AI enthusiasts seeking to enhance their knowledge in leveraging the latest intelligent document processing capabilities offered by UiPath.
Speakers:
👨🏫 Andras Palfi, Senior Product Manager, UiPath
👩🏫 Lenka Dulovicova, Product Program Manager, UiPath
Elevating Tactical DDD Patterns Through Object CalisthenicsDorra BARTAGUIZ
After immersing yourself in the blue book and its red counterpart, attending DDD-focused conferences, and applying tactical patterns, you're left with a crucial question: How do I ensure my design is effective? Tactical patterns within Domain-Driven Design (DDD) serve as guiding principles for creating clear and manageable domain models. However, achieving success with these patterns requires additional guidance. Interestingly, we've observed that a set of constraints initially designed for training purposes remarkably aligns with effective pattern implementation, offering a more ‘mechanical’ approach. Let's explore together how Object Calisthenics can elevate the design of your tactical DDD patterns, offering concrete help for those venturing into DDD for the first time!
A tale of scale & speed: How the US Navy is enabling software delivery from l...sonjaschweigert1
Rapid and secure feature delivery is a goal across every application team and every branch of the DoD. The Navy’s DevSecOps platform, Party Barge, has achieved:
- Reduction in onboarding time from 5 weeks to 1 day
- Improved developer experience and productivity through actionable findings and reduction of false positives
- Maintenance of superior security standards and inherent policy enforcement with Authorization to Operate (ATO)
Development teams can ship efficiently and ensure applications are cyber ready for Navy Authorizing Officials (AOs). In this webinar, Sigma Defense and Anchore will give attendees a look behind the scenes and demo secure pipeline automation and security artifacts that speed up application ATO and time to production.
We will cover:
- How to remove silos in DevSecOps
- How to build efficient development pipeline roles and component templates
- How to deliver security artifacts that matter for ATO’s (SBOMs, vulnerability reports, and policy evidence)
- How to streamline operations with automated policy checks on container images
State of ICS and IoT Cyber Threat Landscape Report 2024 previewPrayukth K V
The IoT and OT threat landscape report has been prepared by the Threat Research Team at Sectrio using data from Sectrio, cyber threat intelligence farming facilities spread across over 85 cities around the world. In addition, Sectrio also runs AI-based advanced threat and payload engagement facilities that serve as sinks to attract and engage sophisticated threat actors, and newer malware including new variants and latent threats that are at an earlier stage of development.
The latest edition of the OT/ICS and IoT security Threat Landscape Report 2024 also covers:
State of global ICS asset and network exposure
Sectoral targets and attacks as well as the cost of ransom
Global APT activity, AI usage, actor and tactic profiles, and implications
Rise in volumes of AI-powered cyberattacks
Major cyber events in 2024
Malware and malicious payload trends
Cyberattack types and targets
Vulnerability exploit attempts on CVEs
Attacks on counties – USA
Expansion of bot farms – how, where, and why
In-depth analysis of the cyber threat landscape across North America, South America, Europe, APAC, and the Middle East
Why are attacks on smart factories rising?
Cyber risk predictions
Axis of attacks – Europe
Systemic attacks in the Middle East
Download the full report from here:
https://sectrio.com/resources/ot-threat-landscape-reports/sectrio-releases-ot-ics-and-iot-security-threat-landscape-report-2024/
Observability Concepts EVERY Developer Should Know -- DeveloperWeek Europe.pdfPaige Cruz
Monitoring and observability aren’t traditionally found in software curriculums and many of us cobble this knowledge together from whatever vendor or ecosystem we were first introduced to and whatever is a part of your current company’s observability stack.
While the dev and ops silo continues to crumble….many organizations still relegate monitoring & observability as the purview of ops, infra and SRE teams. This is a mistake - achieving a highly observable system requires collaboration up and down the stack.
I, a former op, would like to extend an invitation to all application developers to join the observability party will share these foundational concepts to build on:
Enhancing Performance with Globus and the Science DMZGlobus
ESnet has led the way in helping national facilities—and many other institutions in the research community—configure Science DMZs and troubleshoot network issues to maximize data transfer performance. In this talk we will present a summary of approaches and tips for getting the most out of your network infrastructure using Globus Connect Server.
Essentials of Automations: The Art of Triggers and Actions in FMESafe Software
In this second installment of our Essentials of Automations webinar series, we’ll explore the landscape of triggers and actions, guiding you through the nuances of authoring and adapting workspaces for seamless automations. Gain an understanding of the full spectrum of triggers and actions available in FME, empowering you to enhance your workspaces for efficient automation.
We’ll kick things off by showcasing the most commonly used event-based triggers, introducing you to various automation workflows like manual triggers, schedules, directory watchers, and more. Plus, see how these elements play out in real scenarios.
Whether you’re tweaking your current setup or building from the ground up, this session will arm you with the tools and insights needed to transform your FME usage into a powerhouse of productivity. Join us to discover effective strategies that simplify complex processes, enhancing your productivity and transforming your data management practices with FME. Let’s turn complexity into clarity and make your workspaces work wonders!
DevOps and Testing slides at DASA ConnectKari Kakkonen
My and Rik Marselis slides at 30.5.2024 DASA Connect conference. We discuss about what is testing, then what is agile testing and finally what is Testing in DevOps. Finally we had lovely workshop with the participants trying to find out different ways to think about quality and testing in different parts of the DevOps infinity loop.
zkStudyClub - Reef: Fast Succinct Non-Interactive Zero-Knowledge Regex ProofsAlex Pruden
This paper presents Reef, a system for generating publicly verifiable succinct non-interactive zero-knowledge proofs that a committed document matches or does not match a regular expression. We describe applications such as proving the strength of passwords, the provenance of email despite redactions, the validity of oblivious DNS queries, and the existence of mutations in DNA. Reef supports the Perl Compatible Regular Expression syntax, including wildcards, alternation, ranges, capture groups, Kleene star, negations, and lookarounds. Reef introduces a new type of automata, Skipping Alternating Finite Automata (SAFA), that skips irrelevant parts of a document when producing proofs without undermining soundness, and instantiates SAFA with a lookup argument. Our experimental evaluation confirms that Reef can generate proofs for documents with 32M characters; the proofs are small and cheap to verify (under a second).
Paper: https://eprint.iacr.org/2023/1886
Transcript: Selling digital books in 2024: Insights from industry leaders - T...BookNet Canada
The publishing industry has been selling digital audiobooks and ebooks for over a decade and has found its groove. What’s changed? What has stayed the same? Where do we go from here? Join a group of leading sales peers from across the industry for a conversation about the lessons learned since the popularization of digital books, best practices, digital book supply chain management, and more.
Link to video recording: https://bnctechforum.ca/sessions/selling-digital-books-in-2024-insights-from-industry-leaders/
Presented by BookNet Canada on May 28, 2024, with support from the Department of Canadian Heritage.
The Art of the Pitch: WordPress Relationships and SalesLaura Byrne
Clients don’t know what they don’t know. What web solutions are right for them? How does WordPress come into the picture? How do you make sure you understand scope and timeline? What do you do if sometime changes?
All these questions and more will be explored as we talk about matching clients’ needs with what your agency offers without pulling teeth or pulling your hair out. Practical tips, and strategies for successful relationship building that leads to closing the deal.
Removing Uninteresting Bytes in Software FuzzingAftab Hussain
Imagine a world where software fuzzing, the process of mutating bytes in test seeds to uncover hidden and erroneous program behaviors, becomes faster and more effective. A lot depends on the initial seeds, which can significantly dictate the trajectory of a fuzzing campaign, particularly in terms of how long it takes to uncover interesting behaviour in your code. We introduce DIAR, a technique designed to speedup fuzzing campaigns by pinpointing and eliminating those uninteresting bytes in the seeds. Picture this: instead of wasting valuable resources on meaningless mutations in large, bloated seeds, DIAR removes the unnecessary bytes, streamlining the entire process.
In this work, we equipped AFL, a popular fuzzer, with DIAR and examined two critical Linux libraries -- Libxml's xmllint, a tool for parsing xml documents, and Binutil's readelf, an essential debugging and security analysis command-line tool used to display detailed information about ELF (Executable and Linkable Format). Our preliminary results show that AFL+DIAR does not only discover new paths more quickly but also achieves higher coverage overall. This work thus showcases how starting with lean and optimized seeds can lead to faster, more comprehensive fuzzing campaigns -- and DIAR helps you find such seeds.
- These are slides of the talk given at IEEE International Conference on Software Testing Verification and Validation Workshop, ICSTW 2022.
PHP Frameworks: I want to break free (IPC Berlin 2024)Ralf Eggert
In this presentation, we examine the challenges and limitations of relying too heavily on PHP frameworks in web development. We discuss the history of PHP and its frameworks to understand how this dependence has evolved. The focus will be on providing concrete tips and strategies to reduce reliance on these frameworks, based on real-world examples and practical considerations. The goal is to equip developers with the skills and knowledge to create more flexible and future-proof web applications. We'll explore the importance of maintaining autonomy in a rapidly changing tech landscape and how to make informed decisions in PHP development.
This talk is aimed at encouraging a more independent approach to using PHP frameworks, moving towards a more flexible and future-proof approach to PHP development.
12. “Rich Internet Applications (RIAs) are web applications that have many of the characteristics of desktop applications, typically delivered either by way of a site-specific browser, via a browser plug-in, or independently via sandboxes or virtual machines” – WikipediaThe term RIA introduced in white paper in Mar 2002 by Macromedia (now Adobe),though the concept had existed for many years earlier under names such as: Remote Scripting, by Microsoft, circa 1998 X Internet, by Forrester Research in October 2000 Rich (web) clients Rich web application
13.
14. Modular and loosely coupled web app architecture that supports flexibility and user-level customization
18. RIA Landscape – Other tools in Market Flash Multimedia platform used to add animation, video, and interactivity to Web pages. Frequently used for advertisements and games. Manipulates vector and raster graphics to provide animation of text, drawings, and still images. Supports streaming of audio and video. Can capture user input via mouse, keyboard, microphone, camera. Coded in an Object-oriented language called ActionScript. May be displayed on various computer systems and devices, using Adobe Flash Player, which is available free of charge for common Web browsers, some mobile phones and few devices. Flex SDK for the development and deployment of cross-platform rich Internet applications based on the Adobe Flash platform. Can be written using Adobe Flash Builder or by using the freely available Flex compiler from Adobe.
19. RIA Landscape – Other tools in Market AIR (Adobe Integrated Runtime) Cross-platform runtime environment developed by Adobe Systems for building rich Internet applications using Adobe Flash, Adobe Flex, HTML, or Ajax, that can be deployed as desktop applications. Development Environment HTML/Ajax, either via Adobe's own Dreamweaver CS4 (In addition to Dreamweaver CS3), another HTML editor or a normal text editor in conjunction with the AIR SDK Adobe Flash Builder (formerly Adobe Flex Builder) Flash CS4
20. RIA Landscape – Other tools in Market Java Applet / JavaFX Java platform for creating and delivering RIAs that can run across wide variety of connected devices. Enables building apps for desktop, browser and mobile phones. TV set-top boxes, gaming consoles, Blu-ray players and other platforms are planned. Developers use a statically typed, declarative language called JavaFX Script; Java code can be integrated into JavaFX programs. JavaFX is compiled to Java bytecode, so JavaFX applications run on any desktop and browser that runs the Java Runtime Environment (JRE) and on top of mobile phones running Java ME. On desktop, the current release supports Windows XP, Vista and Mac OS X OS. JavaFX 1.2 would support Linux and OpenSolaris On mobile, JavaFX is capable of running on multiple mobile operating systems, including Symbian OS, Windows Mobile, and proprietary real-time operating systems.
36. Extensions to JavaScript- Provides extensions to the universal browser scripting language that provide control over the browser UI, including ability to work with WPF elements.
38. Integration with existing applications - Integrates seamlessly with existing JavaScript and ASP.NET AJAX code to complement existing functionality.
39. Access to the .NET Framework programming model – could be created using dynamic languages such as IronPython as well as languages such as C# and VB.
40. Networking support - Includes support for HTTP over TCP. You can connect to WCF, SOAP, or ASP.NET AJAX services and receive XML, JSON, or RSS data.
44. Core presentation framework - Components and services oriented toward the UI and user interaction, including user input, lightweight UI controls for Web apps, media playback, data binding, vector graphics, text, animation, and images. Also includes XAML for specifying layout.
45. .NET Framework for Silverlight - A subset of the .NET Framework that contains components and libraries, including data integration, extensible Windows controls, networking, base class libraries, garbage collection, and CLR.
55. Application and Programming Model Provides two distinct models for app development: Managed API for Silverlight - uses code running on CLR for Silverlight. Could be used with compiled languages (VB, C#) or dynamic languages such (IronPython, IronRuby) JavaScript API for Silverlight - uses JavaScript code interpreted by the browser. Both can not be used at the same time within a single instance of the Silverlight plug-in. However, you can implement a splash screen that uses the JavaScript API and then transitions to the managed API when your application has loaded. Managed API provides significantly more functionality than JavaScript API. Managed API apps have access to lightweight version of .NET Framework. JavaScript API, however, has access only to the Silverlight presentation core and the browser JavaScript engine.
56. Managed Programming & Application Model Managed API enables you to bundle managed assemblies and resource files into application package (.xap) files. Silverlight plug-in is responsible for loading an application package and extracting its contents. Application package must contain an assembly with a class derived from Application. Application class encapsulates interaction between appand the Silverlight plug-in. Also provides application lifetime events & resource management. Silverlight documentation uses “application model” to refer to application packaging and the common functionality encapsulated by the Application class.
62. Host: Allows code to interact directly with the Silverlight plug-in that hosts it.
63.
64. Application Structure Silverlight apps are deployed as .xap package (xaml app package) An application package is a zip file (compressed using the Deflate algorithm) that has a .xap file extension. For Silverlight-based apps using the managed API, build process generates an application package. While embedding Silverlight plug-in in web page, specify app package that the plug-in should download. Plug-in uses a manifest file in application package to identify the application class to instantiate. This class is known as the entry point of your application, and it must derive from the Application class.
66. XAP Package A XAP App package contains the following - One AppManifest.xaml file, which identifies the packaged assemblies and the application entry point. One application assembly, which includes your application class. Zero or more library assemblies. Zero or more loose resource files, such as images or video files.
67. Application Manifest <Deployment xmlns="http://schemas.microsoft.com/client/2007/deployment" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" EntryPointAssembly="Silverlight3App" EntryPointType="Silverlight3App.App" RuntimeVersion="3.0.40818.0"> <Deployment.Parts> <AssemblyPart x:Name="Silverlight3App" Source="Silverlight3App.dll" /> </Deployment.Parts> </Deployment> AppManifest.xaml file is typically generated by build process, and uses XAML markup to declare a Deployment object. EntryPointAssembly and EntryPointType attributes to identify the application entry point. RuntimeVersion attribute to identify required version of Silverlight.
100. Layout System Silverlight plug-in defines area that Silverlight-based appis displayed in – Embed plug-in in a host HTML page; Either position plug-in somewhere inline in HTML page display or have plug-in take up entire HTML page. Two frames of reference when positioning Silverlight objects: Within the plug-in: Position objects on the Silverlight surface within the plug-in’s bounding box. Most of the layout overviews describe this type of positioning. Within the HTML: The entire plug-in and all the objects positioned within it are subject to where you place the plug-in in HTML.
101. Layout related properties Margin (of type Thickness) Padding (of type Thickness) HorizontalAlignment Left, Right, Center (Default), Stretch VerticalAlignment Bottom, Top, Center (Degault), Stretch HorizontalContentAlignment Left, Right, Center (Default), Stretch VerticalContentAlignment Bottom, Top, Center (Degault), Stretch Zindix (for Canvas only) Margin Padding Margin Padding <Button Height="120" Width="180" Content="Hello"Margin="50" Padding="40" /> <Button Height="120" Width="180" Content="Hello"Margin="20,40,60,80" Padding="10,30,50,70" />
127. Video Brush Example <MediaElement x:Name="videoMediaElement" Source="Wildlife.wmv" Visibility="Collapsed" /> <TextBox Height="300" Width="400"FontSize="20" Foreground="LightYellow" Text="This is using Video Brush"> <TextBox.Background> <VideoBrushSourceName="videoMediaElement" /> </TextBox.Background> </TextBox>
156. Template Template allow separate appearance of control from it’s behavior and logic. Button: appearance is the raised area that you can press, and the behavior is the Click event that gets raised in response to a click. The source code for every control is completely separated from its default visual tree representations. Template allows to completely replace an element’s visual tree, while keeping all of its functionality intact. Default visuals for every Control in WPF are defined in templates (and customized for each Windows theme). There are three types of Templates ControlTemplate DataTemplate ItemsPanelTemplate
164. By applying these attributes on data class or member, you centralize the data definition and do not have to re-apply the same rules in multiple places.
185. All validation attributes derive from the ValidationAttribute class. The logic to determine if a value is valid is implemented in the overridden IsValid method.
189. Source object that contains the data that flows between the source and target. Source can be any CLR object.
190. Target UI property that displays and possibly allows user changes to the data - can be any DependencyProperty of a FrameworkElement.
191. Direction of the data flow. The direction is specified by setting the Mode property on the Binding object.
192.
193. Data Form <dataFormToolkit:DataForm x:Name="dfPerson" AutoEdit="False"AutoCommit="False" /> dfPerson.CurrentItem = new Person{FirstName="Aniruddha", LastName="Chakrabarti",Age=35};
216. If IsFullScreen property to true, the Silverlight plug-in displays in full-screen mode; otherwise, the plug-in displays in embedded mode.Registers Application Events Toggles Content.IsFullScreen Mode when mouse left button down event is fired.
219. Silverlight-based apps can be configured, so that users can install them from their host Web pages and run them outside the browser.
220. Configuration is a simple matter of providing additional information about an application. This information is supplied through the application manifest.
221.
222.
223. Out of Browser settings <OutOfBrowserSettingsShortName="SL4App Application"EnableGPUAcceleration="False"ShowInstallMenuItem="True"> <OutOfBrowserSettings.Blurb>SL4App Application on your desktop; at home, at work or on the go.</OutOfBrowserSettings.Blurb> <OutOfBrowserSettings.WindowSettings> <WindowSettingsTitle="SL4App Application"Height="250"Width="350"Top="100"Left="75"WindowStartupLocation="Manual" /> </OutOfBrowserSettings.WindowSettings> <OutOfBrowserSettings.Icons /> </OutOfBrowserSettings>
225. How to whether the app is running Out of Browser if (App.Current.IsRunningOutOfBrowser) { tbMode.Text = "Running Out of Browser"; } Else { tbMode.Text = "Running in Browser"; }
226. How to check the Network status if (NetworkInterface.GetIsNetworkAvailable()) { tbNetwork.Text = "Connected to Network"; } Else { tbNetwork.Text = "Disconnected"; }
227. Save As Dialog (new in SL3) <StackPanelVerticalAlignment="Top" Margin="10" x:Name="LayoutRoot"> <TextBlock>Enter text and Click on Save to save text to local file</TextBlock> <TextBox Height="100" x:Name="textbox" /> <Button Click="Button_Click">Save to local file</Button> </StackPanel> SaveFileDialog dialog = newSaveFileDialog() { Filter = "TextFile (*.txt)|*.txt|WordDoc (*.doc)|*.doc", DefaultExt = "*.txt", FilterIndex = 1 }; bool? result = dialog.ShowDialog(); if (result == true) { Streamstream = dialog.OpenFile(); using (StreamWriterfileWriter = newStreamWriter(stream)) { fileWriter.Write(textbox.Text); fileWriter.Close(); } }
247. Currently Silverlight WCF Framework only supports basicHttpBinding, PollingDuplexHttpBinding and CustomBinding.
248.
249. Use clientaccesspolicy.xml file to allow cross-domain access Create a clientaccesspolicy.xml file that allows access to the service. The following configuration allows access from any other domain to all resources on the current domain.
250.
251. Feed - collection of application data that consists of some feed-level metadata (title, author, URL, and other metadata) and a series of feed items.
252. Within the feed, feed items are ordered in reverse chronological order.
281. Clipboard Access Silverlight 4 adds ability to programmatically access clipboard to format and modify data during copy, cut, and paste operations. Copy: Clipboard.SetText(rtb.Selection.Text); Paste: rtb.Selection.Text = Clipboard.GetText(); Cut: Clipboard.SetText(rtb.Selection.Text); rtb.Selection.Text = "";
283. Verified / Unverified Application Security Warning for Unverified App Security Warning for Verified App
284. Silverlight Performance Test on Multiple Platforms and Browsers Set EnableFrameRateCounter to true During Development Use Transparent Background for a Silverlight Plug-in Sparingly When Animating the Opacity or Transform of a UIElement, set its CacheMode Cache Visual Elements when Blending layers using Opacity and Rotating or Stretching Objects Avoid Using Windowless Mode Use Visibility Instead of Opacity Whenever Possible Silverlight Uses Multi-Core in Rendering and Media In Full-Screen Mode, Hide Unused Objects
285. Silverlight Performance (Cont’d) Do Not Use Width and Height with MediaElement Objects Do Not Use Width and Height with Path Objects Break Up CPU-Intensive Work into Smaller Tasks Break Up Large Application Packages Use Double.ToString(CultureInfo.InvariantCulture) Rather Than Double.ToString() Use Stretch="Fill" When Rendering a Lot of Images Perform time-consuming operations on a background thread using BackgroundWorker class.
287. Silverlight Security Model By default, Silverlight apps are hosted in browser and run in an environment that restricts access to user's computer . Operate within partial-trust security boundary - called a sandbox. Silverlight apps run in a different security context than the rest of the HTML page that hosts the Silverlight plug-in. Cannot access file system and other system resources in the same way as traditional .NET applications. These actions can still be performed, but they typically must be initiated by the user. Otherwise Silverlight throws SecurityException exception. Despite the restricted execution environment, there are some security considerations when you build Silverlight applications. Silverlight 4 and later applications can be configured to run in elevated trust, which also has security implications.
288. Silverlight Security Apps operate within a partial-trust security boundary (sandbox). Cannot access the file system and other system resources in the same way as traditional .NET applications. This sandbox environment is enabled by a security model. In the context of security within the application, there are two code types in Silverlight: platform code and application code. Platform code is the API provided by the Silverlight runtime and SDK. Application code is the code that you write by using the platform code. Silverlight runtime can detect code type based on location of code assembly and by checking the public key of assembly. If an assembly is loaded from the Silverlight runtime or SDK installation directory, is signed with a public key from Microsoft, and meets some additional requirements, the assembly can contain platform code. This means that Silverlight application code is never considered to be platform code.