SlideShare une entreprise Scribd logo
1  sur  10
Resource File and Styling in SL Mahender Senior Software Engineer United Health Group
Mahender Sarangam Having 5 years of experience on .NET Technologies. Working as a Senior Software Engineer in United Health Group (UHG India Information Service Ltd.). Worked with Big Firms like Deloitte Consulting & Wipro Technology.  Got Technical Acquaintance on Technologies like C#, ASP.NET,AJAX, LINQ, Silverlight, WPF,WCF ,SQL Server, Team Foundation Server(TFS) and SharePoint Technology.  MCTS Certified in Web Technologies. Blog :  http://Msarangam.wordpress.com
What are Resource File  In Today Applications, resource places a important role in application development. Resource File may be any Images, Language specific RESX file, Audio, video Reason for Resource Files Reuse objects  Centralize details  Create non visual objects In Silverlight, Resources can be managed in the following ways: Loading on Demand  Resource embedded inside XAP/Assembly  Resources from external assemblies
When we add Resource File to Silver Light Client project, How to deploy the resource file With the help of Build Action property in Visual Studio , Mode of Deployment is decided Marking BUILD Action as Resource, Content and None When Build action is Resource ,Then Image file is embedded within Silverlight dll. Size of dll will be more. When it is Content,  Resource file will be part of XAP When it is NONE, then we need to manually copy the resource file under ClientBin folder Need to call  resource from other silverlight library , we can refer like “/assemblyName;component/Location”
Resources must be defined within an appropriately named collection called Resources.  This collection is a ResourceDictionary, a specialized dictionary containing resources identified by implicit or explicit keys A merged resource dictionary enables you to declare the contents of a resource dictionary by referencing an external file, and to use the externally defined resources to augment the resources found in an existing FrameworkElement.Resources property location
Styles are extremely important because they allow developers to control the look and layout of controls across their application. This is a much faster alternative to updating each and every control in your application individually. A style resource in Silverlight is a way to create reusable properties for various controls. Styles in Silverlight are powerful mechanisms that allow controlling the visual representation of elements in a unified way  /consistent look for all user interface elements. Each Silverlight element has a series of attributes that you set to make a style for an element.
Styles as a resource You can declare it at User Control level where it is accessible to only the element on that User Control.   You can define it at application level and have the style available to the whole application.   You can also define the style in a resource dictionary and have that accessible to the whole application Application Level Resources: Applies style to Global level i.e. at application Level. Style customTextBlockStyle =  Resources["StyledTextbox"] as Style;
Cascading Styles: you can build a powerful and reusable set of styles to apply in your Silverlight applications <Style x:Key="LargerStyledTextbox" TargetType="TextBox" BasedOn="{StaticResourceBlueStyledTextbox}"> <Setter Property="FontSize" Value="25"/> Merged Dictionaries
<UserControl.Resources> <ResourceDictionary> <ResourceDictionary.MergedDictionaries> <ResourceDictionary Source="..." /> <ResourceDictionary Source="..." /> <ResourceDictionary Source="..." /> </ResourceDictionary.MergedDictionaries> </ResourceDictionary></UserControl.Resources>
			Thank you

Contenu connexe

Tendances

Websites, Web Services and Cloud Applications with Visual Studio
Websites, Web Services and Cloud Applications with Visual StudioWebsites, Web Services and Cloud Applications with Visual Studio
Websites, Web Services and Cloud Applications with Visual Studio
Microsoft Visual Studio
 
Maheshkumar_ADF
Maheshkumar_ADFMaheshkumar_ADF
Maheshkumar_ADF
mahesh M
 
Krunal_Resume_IT_2016
Krunal_Resume_IT_2016Krunal_Resume_IT_2016
Krunal_Resume_IT_2016
Krunal Patel
 
Oracle fusion adf_online_training_in_africa
Oracle fusion adf_online_training_in_africaOracle fusion adf_online_training_in_africa
Oracle fusion adf_online_training_in_africa
magnificsmile
 
ADF Introduction By Sandeep Sharda
ADF Introduction By Sandeep ShardaADF Introduction By Sandeep Sharda
ADF Introduction By Sandeep Sharda
Er. Sndp Srda
 
Yemo_Capstone_MS_Fairfield University
Yemo_Capstone_MS_Fairfield UniversityYemo_Capstone_MS_Fairfield University
Yemo_Capstone_MS_Fairfield University
Guillermo Julca
 
Harmik Uchian .Net Resume
Harmik Uchian .Net ResumeHarmik Uchian .Net Resume
Harmik Uchian .Net Resume
harmiku
 

Tendances (20)

Build java-ee-applications-with-adf
Build java-ee-applications-with-adfBuild java-ee-applications-with-adf
Build java-ee-applications-with-adf
 
Resume-Pavana-Venkataswamy
Resume-Pavana-VenkataswamyResume-Pavana-Venkataswamy
Resume-Pavana-Venkataswamy
 
Websites, Web Services and Cloud Applications with Visual Studio
Websites, Web Services and Cloud Applications with Visual StudioWebsites, Web Services and Cloud Applications with Visual Studio
Websites, Web Services and Cloud Applications with Visual Studio
 
Websphere Training in chennai
Websphere Training in chennaiWebsphere Training in chennai
Websphere Training in chennai
 
Resume
ResumeResume
Resume
 
Maheshkumar_ADF
Maheshkumar_ADFMaheshkumar_ADF
Maheshkumar_ADF
 
Web Content Management With Share Point
Web Content Management With Share PointWeb Content Management With Share Point
Web Content Management With Share Point
 
Visual Studio 2013 Launch Keynote
Visual Studio 2013 Launch KeynoteVisual Studio 2013 Launch Keynote
Visual Studio 2013 Launch Keynote
 
Introduction to ASP.NET
Introduction to ASP.NETIntroduction to ASP.NET
Introduction to ASP.NET
 
Ember js java script framework
Ember js   java script frameworkEmber js   java script framework
Ember js java script framework
 
Resume
ResumeResume
Resume
 
Krunal_Resume_IT_2016
Krunal_Resume_IT_2016Krunal_Resume_IT_2016
Krunal_Resume_IT_2016
 
Oracle fusion adf_online_training_in_africa
Oracle fusion adf_online_training_in_africaOracle fusion adf_online_training_in_africa
Oracle fusion adf_online_training_in_africa
 
downloadfile
downloadfiledownloadfile
downloadfile
 
Apps for SharePoint 2013
Apps for SharePoint 2013Apps for SharePoint 2013
Apps for SharePoint 2013
 
Sibananda_DotNet
Sibananda_DotNetSibananda_DotNet
Sibananda_DotNet
 
J developer, oracle adf introduction
J developer, oracle adf   introductionJ developer, oracle adf   introduction
J developer, oracle adf introduction
 
ADF Introduction By Sandeep Sharda
ADF Introduction By Sandeep ShardaADF Introduction By Sandeep Sharda
ADF Introduction By Sandeep Sharda
 
Yemo_Capstone_MS_Fairfield University
Yemo_Capstone_MS_Fairfield UniversityYemo_Capstone_MS_Fairfield University
Yemo_Capstone_MS_Fairfield University
 
Harmik Uchian .Net Resume
Harmik Uchian .Net ResumeHarmik Uchian .Net Resume
Harmik Uchian .Net Resume
 

En vedette

Silverlight control template
Silverlight control templateSilverlight control template
Silverlight control template
msarangam
 
Introduction to silverlight
Introduction to silverlightIntroduction to silverlight
Introduction to silverlight
msarangam
 
Data binding in silverlight
Data binding in silverlightData binding in silverlight
Data binding in silverlight
msarangam
 
Silverlight converters
Silverlight convertersSilverlight converters
Silverlight converters
msarangam
 
Introduction to silverlight control 4
Introduction to silverlight control 4Introduction to silverlight control 4
Introduction to silverlight control 4
msarangam
 
Silverlight datatemplate
Silverlight datatemplateSilverlight datatemplate
Silverlight datatemplate
msarangam
 

En vedette (7)

Silverlight control template
Silverlight control templateSilverlight control template
Silverlight control template
 
Introduction to silverlight
Introduction to silverlightIntroduction to silverlight
Introduction to silverlight
 
Data binding in silverlight
Data binding in silverlightData binding in silverlight
Data binding in silverlight
 
Silverlight converters
Silverlight convertersSilverlight converters
Silverlight converters
 
Html bridge
Html bridgeHtml bridge
Html bridge
 
Introduction to silverlight control 4
Introduction to silverlight control 4Introduction to silverlight control 4
Introduction to silverlight control 4
 
Silverlight datatemplate
Silverlight datatemplateSilverlight datatemplate
Silverlight datatemplate
 

Similaire à Resources and styles

Resume--Nilesh_kumar_singh_ADF
Resume--Nilesh_kumar_singh_ADFResume--Nilesh_kumar_singh_ADF
Resume--Nilesh_kumar_singh_ADF
NILESH KUMAR SINGH
 
Ferraz Ia252 Developing An Information Architecture
Ferraz Ia252 Developing An Information ArchitectureFerraz Ia252 Developing An Information Architecture
Ferraz Ia252 Developing An Information Architecture
mferraz
 
Duane_Johnston_Resume_2015
Duane_Johnston_Resume_2015Duane_Johnston_Resume_2015
Duane_Johnston_Resume_2015
Duane Johnston
 

Similaire à Resources and styles (20)

Resume--Nilesh_kumar_singh_ADF
Resume--Nilesh_kumar_singh_ADFResume--Nilesh_kumar_singh_ADF
Resume--Nilesh_kumar_singh_ADF
 
Ferraz Ia252 Developing An Information Architecture
Ferraz Ia252 Developing An Information ArchitectureFerraz Ia252 Developing An Information Architecture
Ferraz Ia252 Developing An Information Architecture
 
Castle in the Clouds: SaaS-Enabling Oracle ADF Faces Applications
Castle in the Clouds: SaaS-Enabling Oracle ADF Faces ApplicationsCastle in the Clouds: SaaS-Enabling Oracle ADF Faces Applications
Castle in the Clouds: SaaS-Enabling Oracle ADF Faces Applications
 
Resume--Nilesh kumar singh
Resume--Nilesh kumar singhResume--Nilesh kumar singh
Resume--Nilesh kumar singh
 
What Makes The Laravel Framework Outstanding - Connect Infosoft
What Makes The Laravel Framework Outstanding  - Connect InfosoftWhat Makes The Laravel Framework Outstanding  - Connect Infosoft
What Makes The Laravel Framework Outstanding - Connect Infosoft
 
Bridging Front.pdf
Bridging Front.pdfBridging Front.pdf
Bridging Front.pdf
 
Full.docx
Full.docxFull.docx
Full.docx
 
A step-by-step guide to the development of back-end systems.pdf
A step-by-step guide to the development of back-end systems.pdfA step-by-step guide to the development of back-end systems.pdf
A step-by-step guide to the development of back-end systems.pdf
 
A step-by-step guide to the development of back-end systems.pdf
A step-by-step guide to the development of back-end systems.pdfA step-by-step guide to the development of back-end systems.pdf
A step-by-step guide to the development of back-end systems.pdf
 
Laravel overview
Laravel overviewLaravel overview
Laravel overview
 
Spring Book – Chapter 1 – Introduction
Spring Book – Chapter 1 – IntroductionSpring Book – Chapter 1 – Introduction
Spring Book – Chapter 1 – Introduction
 
Community platform for job seekers | web application for job seekers | case s...
Community platform for job seekers | web application for job seekers | case s...Community platform for job seekers | web application for job seekers | case s...
Community platform for job seekers | web application for job seekers | case s...
 
Amar_Modalavalasa_Resume
Amar_Modalavalasa_ResumeAmar_Modalavalasa_Resume
Amar_Modalavalasa_Resume
 
ADOBE CERTIFIED RIA ARCHITECT/FLEX DEVELOPER
ADOBE CERTIFIED RIA ARCHITECT/FLEX DEVELOPERADOBE CERTIFIED RIA ARCHITECT/FLEX DEVELOPER
ADOBE CERTIFIED RIA ARCHITECT/FLEX DEVELOPER
 
muni resume (1)
muni resume (1)muni resume (1)
muni resume (1)
 
Duane_Johnston_Resume_2015
Duane_Johnston_Resume_2015Duane_Johnston_Resume_2015
Duane_Johnston_Resume_2015
 
How to Choose the Right Technology Stack for SaaS Development?.pdf
How to Choose the Right Technology Stack for SaaS Development?.pdfHow to Choose the Right Technology Stack for SaaS Development?.pdf
How to Choose the Right Technology Stack for SaaS Development?.pdf
 
File access
File accessFile access
File access
 
File access
File accessFile access
File access
 
WordCamp Asheville 2017 - So You Wanna Dev? Join the Team!
WordCamp Asheville 2017 - So You Wanna Dev? Join the Team!WordCamp Asheville 2017 - So You Wanna Dev? Join the Team!
WordCamp Asheville 2017 - So You Wanna Dev? Join the Team!
 

Plus de msarangam

Silverlight command
Silverlight commandSilverlight command
Silverlight command
msarangam
 
Silverlight as a desktop application
Silverlight as a desktop applicationSilverlight as a desktop application
Silverlight as a desktop application
msarangam
 
Routed events in silverlight
Routed events in silverlightRouted events in silverlight
Routed events in silverlight
msarangam
 
Ria services
Ria servicesRia services
Ria services
msarangam
 
Printing in sl
Printing in slPrinting in sl
Printing in sl
msarangam
 
Navigation application in silverlight
Navigation application in silverlightNavigation application in silverlight
Navigation application in silverlight
msarangam
 
Data binding in silverlight
Data binding in silverlightData binding in silverlight
Data binding in silverlight
msarangam
 
Mvvm pattern
Mvvm patternMvvm pattern
Mvvm pattern
msarangam
 
Introduction to silverlight control 3
Introduction to silverlight control  3Introduction to silverlight control  3
Introduction to silverlight control 3
msarangam
 
Dependency property
Dependency propertyDependency property
Dependency property
msarangam
 
Data validation in silverlight
Data validation in silverlightData validation in silverlight
Data validation in silverlight
msarangam
 
Background thread
Background threadBackground thread
Background thread
msarangam
 
Attached property
Attached propertyAttached property
Attached property
msarangam
 
Wcf ria services
Wcf ria servicesWcf ria services
Wcf ria services
msarangam
 

Plus de msarangam (14)

Silverlight command
Silverlight commandSilverlight command
Silverlight command
 
Silverlight as a desktop application
Silverlight as a desktop applicationSilverlight as a desktop application
Silverlight as a desktop application
 
Routed events in silverlight
Routed events in silverlightRouted events in silverlight
Routed events in silverlight
 
Ria services
Ria servicesRia services
Ria services
 
Printing in sl
Printing in slPrinting in sl
Printing in sl
 
Navigation application in silverlight
Navigation application in silverlightNavigation application in silverlight
Navigation application in silverlight
 
Data binding in silverlight
Data binding in silverlightData binding in silverlight
Data binding in silverlight
 
Mvvm pattern
Mvvm patternMvvm pattern
Mvvm pattern
 
Introduction to silverlight control 3
Introduction to silverlight control  3Introduction to silverlight control  3
Introduction to silverlight control 3
 
Dependency property
Dependency propertyDependency property
Dependency property
 
Data validation in silverlight
Data validation in silverlightData validation in silverlight
Data validation in silverlight
 
Background thread
Background threadBackground thread
Background thread
 
Attached property
Attached propertyAttached property
Attached property
 
Wcf ria services
Wcf ria servicesWcf ria services
Wcf ria services
 

Dernier

Artificial Intelligence: Facts and Myths
Artificial Intelligence: Facts and MythsArtificial Intelligence: Facts and Myths
Artificial Intelligence: Facts and Myths
Joaquim Jorge
 

Dernier (20)

Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
 
GenCyber Cyber Security Day Presentation
GenCyber Cyber Security Day PresentationGenCyber Cyber Security Day Presentation
GenCyber Cyber Security Day Presentation
 
Partners Life - Insurer Innovation Award 2024
Partners Life - Insurer Innovation Award 2024Partners Life - Insurer Innovation Award 2024
Partners Life - Insurer Innovation Award 2024
 
TrustArc Webinar - Unlock the Power of AI-Driven Data Discovery
TrustArc Webinar - Unlock the Power of AI-Driven Data DiscoveryTrustArc Webinar - Unlock the Power of AI-Driven Data Discovery
TrustArc Webinar - Unlock the Power of AI-Driven Data Discovery
 
🐬 The future of MySQL is Postgres 🐘
🐬  The future of MySQL is Postgres   🐘🐬  The future of MySQL is Postgres   🐘
🐬 The future of MySQL is Postgres 🐘
 
Boost PC performance: How more available memory can improve productivity
Boost PC performance: How more available memory can improve productivityBoost PC performance: How more available memory can improve productivity
Boost PC performance: How more available memory can improve productivity
 
Artificial Intelligence: Facts and Myths
Artificial Intelligence: Facts and MythsArtificial Intelligence: Facts and Myths
Artificial Intelligence: Facts and Myths
 
Real Time Object Detection Using Open CV
Real Time Object Detection Using Open CVReal Time Object Detection Using Open CV
Real Time Object Detection Using Open CV
 
TrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
TrustArc Webinar - Stay Ahead of US State Data Privacy Law DevelopmentsTrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
TrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
 
How to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected WorkerHow to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected Worker
 
HTML Injection Attacks: Impact and Mitigation Strategies
HTML Injection Attacks: Impact and Mitigation StrategiesHTML Injection Attacks: Impact and Mitigation Strategies
HTML Injection Attacks: Impact and Mitigation Strategies
 
Data Cloud, More than a CDP by Matt Robison
Data Cloud, More than a CDP by Matt RobisonData Cloud, More than a CDP by Matt Robison
Data Cloud, More than a CDP by Matt Robison
 
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemkeProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
 
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
 
The 7 Things I Know About Cyber Security After 25 Years | April 2024
The 7 Things I Know About Cyber Security After 25 Years | April 2024The 7 Things I Know About Cyber Security After 25 Years | April 2024
The 7 Things I Know About Cyber Security After 25 Years | April 2024
 
GenAI Risks & Security Meetup 01052024.pdf
GenAI Risks & Security Meetup 01052024.pdfGenAI Risks & Security Meetup 01052024.pdf
GenAI Risks & Security Meetup 01052024.pdf
 
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024
 
Understanding Discord NSFW Servers A Guide for Responsible Users.pdf
Understanding Discord NSFW Servers A Guide for Responsible Users.pdfUnderstanding Discord NSFW Servers A Guide for Responsible Users.pdf
Understanding Discord NSFW Servers A Guide for Responsible Users.pdf
 
presentation ICT roal in 21st century education
presentation ICT roal in 21st century educationpresentation ICT roal in 21st century education
presentation ICT roal in 21st century education
 
Axa Assurance Maroc - Insurer Innovation Award 2024
Axa Assurance Maroc - Insurer Innovation Award 2024Axa Assurance Maroc - Insurer Innovation Award 2024
Axa Assurance Maroc - Insurer Innovation Award 2024
 

Resources and styles

  • 1. Resource File and Styling in SL Mahender Senior Software Engineer United Health Group
  • 2. Mahender Sarangam Having 5 years of experience on .NET Technologies. Working as a Senior Software Engineer in United Health Group (UHG India Information Service Ltd.). Worked with Big Firms like Deloitte Consulting & Wipro Technology. Got Technical Acquaintance on Technologies like C#, ASP.NET,AJAX, LINQ, Silverlight, WPF,WCF ,SQL Server, Team Foundation Server(TFS) and SharePoint Technology. MCTS Certified in Web Technologies. Blog : http://Msarangam.wordpress.com
  • 3. What are Resource File In Today Applications, resource places a important role in application development. Resource File may be any Images, Language specific RESX file, Audio, video Reason for Resource Files Reuse objects Centralize details Create non visual objects In Silverlight, Resources can be managed in the following ways: Loading on Demand Resource embedded inside XAP/Assembly Resources from external assemblies
  • 4. When we add Resource File to Silver Light Client project, How to deploy the resource file With the help of Build Action property in Visual Studio , Mode of Deployment is decided Marking BUILD Action as Resource, Content and None When Build action is Resource ,Then Image file is embedded within Silverlight dll. Size of dll will be more. When it is Content, Resource file will be part of XAP When it is NONE, then we need to manually copy the resource file under ClientBin folder Need to call resource from other silverlight library , we can refer like “/assemblyName;component/Location”
  • 5. Resources must be defined within an appropriately named collection called Resources. This collection is a ResourceDictionary, a specialized dictionary containing resources identified by implicit or explicit keys A merged resource dictionary enables you to declare the contents of a resource dictionary by referencing an external file, and to use the externally defined resources to augment the resources found in an existing FrameworkElement.Resources property location
  • 6. Styles are extremely important because they allow developers to control the look and layout of controls across their application. This is a much faster alternative to updating each and every control in your application individually. A style resource in Silverlight is a way to create reusable properties for various controls. Styles in Silverlight are powerful mechanisms that allow controlling the visual representation of elements in a unified way /consistent look for all user interface elements. Each Silverlight element has a series of attributes that you set to make a style for an element.
  • 7. Styles as a resource You can declare it at User Control level where it is accessible to only the element on that User Control.  You can define it at application level and have the style available to the whole application.  You can also define the style in a resource dictionary and have that accessible to the whole application Application Level Resources: Applies style to Global level i.e. at application Level. Style customTextBlockStyle = Resources["StyledTextbox"] as Style;
  • 8. Cascading Styles: you can build a powerful and reusable set of styles to apply in your Silverlight applications <Style x:Key="LargerStyledTextbox" TargetType="TextBox" BasedOn="{StaticResourceBlueStyledTextbox}"> <Setter Property="FontSize" Value="25"/> Merged Dictionaries
  • 9. <UserControl.Resources> <ResourceDictionary> <ResourceDictionary.MergedDictionaries> <ResourceDictionary Source="..." /> <ResourceDictionary Source="..." /> <ResourceDictionary Source="..." /> </ResourceDictionary.MergedDictionaries> </ResourceDictionary></UserControl.Resources>