I am working on a Microsoft product in which I want to use Microsoft Teams Icon.
Office UI fabric provides icons of Microsoft Products. But it does not provide a proper way to use them in an app.
https://developer.microsoft.com/en-us/fabric#/styles/web/office-brand-icons
The document states that you can use the brand icons through Icon component, but does not provide sample code for the same.
Documentation
Is there any proper way to use these icons?
Can we really use them using Icon component?
We can use it by importing the styles separately but I don't think its the proper way.
<link rel="stylesheet" href="https://static2.sharepointonline.com/files/fabric/office-ui-fabric-core/6.0.0/css/fabric.min.css">
<div class="ms-Fabric">
<h1 class="ms-font-su">Branded Icon Test</h1>
<div class="ms-BrandIcon--icon96 ms-BrandIcon--xlsx"></div>
</div>
Related
I used Angular 1 years ago but everything has changed....so I feele like an idiot. I'm using a material design implementation from "unpkg" in a simple desktop based javascript web application. without SCCS, React, etc.
Trying to activate a theme compiled using the theme builder at https://m3.material.io/theme-builder but there are no examples of how to put it into use.
In a simple single page app I have included the unpkg material components like so, following their readme, and a theme package created using the Material site's theme builder
<link rel="stylesheet" href="https://unpkg.com/material-components-web#latest/dist/material-components-web.css">
<link rel="stylesheet" href="https://fonts.googleapis.com/icon?family=Material+Icons">
<link rel="stylesheet"** href="/xxxx/assets/css/theme.css"**>
<script type="text/javascript"
src="https://unpkg.com/material-components-web#latest/dist/material-components-web.js">
</script>
<script type="text/javascript"
src="https://unpkg.com/material-components-web#latest/dist/index.js">
</script>
<link type="text/javascript" src="/xxxxx/assets/app.js">
<html>
....
</html>
<script>mdc.autoInit()</script>
But I don't know how/where to put the compiled theme into action. I just get the default theme within the material components within the page. One issue is that while the theme builder explicitly says its for m3, I don't know what version of Material unpkg is giving me. The only example I can find is in back-end code in a c# application. This is an entirely front-end generated UI.
The theme compiled by the theme builder is not compatible with material-components-web. material-components-web is M2 implementation. At the moment there is no M3 web implementation, only work in progress - https://m3.material.io/develop/web
I will try to render some svg's in xamarin forms.
But the existing svg's are written in snap.svg.
Give it a nice why to render such svg's in xamarin forms?
Thank you.
Snap is used for animating svgs in web. You can't use the snap animations of svg in xamarin UI, because they are javascript animations. If you need just the svg, without the animation, you can export the inner svg (take a look here) and then use TwinTechs.SvgImage library for rendering cross-platform svgs in your xamarin.forms application.
EDIT 1:
You can load the svg into a WebView. I've created a sample project, which you can find here.
I've used XLabs's HybridWebView control. It allows to load html into web view. The rest is straightforward. You need to add HTML folder to iOS and Android projects (root project directory and Assets directory respectively). For iOS you need to copy HTML directory manually as described in HybridWebView doc
HybridWebViewRenderer.CopyBundleDirectory("HTML");
Then in your xaml page you declare the web view
<ContentPage xmlns="http://xamarin.com/schemas/2014/forms"
xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
xmlns:controls="clr-namespace:XLabs.Forms.Controls;assembly=XLabs.Forms"
x:Class="SvgSample.Views.SvgPage"
BackgroundColor="White">
<controls:HybridWebView
x:Name="webView"
VerticalOptions="FillAndExpand"
HorizontalOptions="FillAndExpand" />
</ContentPage>
And in xaml.cs file you need to load HTML into the web view in OnAppearing method (this is important, otherwise it will not work, again check out HybridWebView doc)
protected override void OnAppearing()
{
base.OnAppearing();
webView.LoadFromContent("HTML/guage.html");
}
I've tested for iOS and Android and it worked.
I've created a very simple ASP.NET 4.5 MVC4 web site which uses OpenLayers 2.12. It's got only one page that shows a map with a few points and lines on it. If I run it locally, it runs fine, but after publishing to my Azure Web Site, the OpenLayers' CSS files won't load. I have now added the OpenLayers CSS hard coded in my bundleConfig, and now it works fine. But of course, this is not what I want, because OpenLayers has specific CSS files for other platforms and browser versions etc.
Locally, I just have to include openlayers.js and OpenLayers then adds the right css files. Does anybody know why this doesn't work after publishing to Azure?
From the docs in openlayers.js:
Please remember that when your OpenLayers script is not named
"OpenLayers.js" you will have to make sure that the default theme is
loaded into the page by including an appropriate <link>-tag,
e.g.:
(code)
<link rel="stylesheet" href="/path/to/default/style.css" type="text/css">
(end code)
Because Azure changes the file names that are included, I indeed should be adding the reference to the default style myself. Also, I can just link to style.css, the other css files for e.g. IE6 or Mobile won't be uses automatically, these are just there for yourself to use it when appropriate.
I would like to build an application that I can list on the Google Apps Marketplace so that organization administrators can install it with one-click.
The application interacts with Google through a sidebar in Gmail. I've been able to start testing this with the "Add Gadget by URL" GMail Labs feature, but now I would like to package it in an application that the admins can roll out to all their users at the same time.
Google's documentation for application manifests mentions how to add contextual gadgets, but not sidebar gadgets. Does anyone have experience adding a sidebar gadget within an application manifest?
Example of a sidebar that I'd like to embed:
<Module>
<ModulePrefs height="400" title="Mike's First Sidebar!">
<Require feature="views"/>
<Require feature="dynamic-height"/>
<Require feature="settitle"/>
</ModulePrefs>
<Content type="html" view="home">
<![CDATA[
<h2>Todo:</h2>
<ul>
<li>Create a sidebar gadget</li>
<li>Add it to an application</li>
<li>List the application on the marketplace</li>
</ul>
]]>
</Content>
</Module>
The lack of documentation is simply because that isn't a supported feature.
I have to come up with some good looking webpages for my professor which will include pages for topics like research work, current students, alumni, paper published, etc.
Can someone please help me by leading me to some good tutorial in website development ? I have planned to use Adobe Dreamweaver for this ? Is this a good software to start with as i have no prior experience with website development or creating webpages.
DreamWeaver: Not bad!
Just stay away from 'template' feature (updating DW templates makes a big MESS).
DreamWeaver Kick Start
Here's some basic information about DreamWeaver : http://www.haverford.edu/acc/docs/software/dreamweaver/welcome.htm
Website Templates
You can even skip designing your website from scratch and find a pre-fabricated one that suits you, with sites like these : http://www.steves-templates.com/
Web Design Kick Start
In case you're still set on designing a website from scratch (a great idea! but more work), it's hard to give out just one link for web-design. I think webdesign has two components : knowing HTML/CSS/etc, and making it "work". Here's a webpage (ugh ads) full of good advice by example, rather than by novel.
http://www.webpagesthatsuck.com/
Dreamweaver will be hard to learn if you cannot pick up the tools properly, because if you are not using the tools within Dreamweaver you might as well use a different text editor with syntax highlighting :
Notepad (or Notepad++)
Vim/Emacs
Coda
Along with a ftp and a local server to test (XAMPP/IIS) your webpages before displaying it to the public.
University webpages are very simple and not very heavy on design (at least from what I have seen).
So you are really only going to need to know what the following mean
<html>
<body>
<head>
<meta>
<title>
<p>
<strong>
<a>
<img>
and focus on the content being served.
And this is a bare html file
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Test</title>
<style type="text/css">
</style>
</head>
<body>
</body>
</html>
Please do not use w3schools. Use it for a quick reminder every once in a while as to what certain tags do but do not use it for practice.
So start off with Opera Web Standards Curriculum as said there:
This is a web standards course
comprised of several articles, aimed
at pretty much anyone who wants to
learn web standards–based web design
from scratch. It is intended to take
the reader from nothing more than a
basic familiarity with browsing the
web, to being competent with CSS and
HTML, and have basic knowledge of
JavaScript and how it fits in to the
puzzle.
If you still choose to go the Dreamweaver way here are some supporting articles
Getting Started with Dreamweaver CS3
Getting started with Dreamweaver CS4
Learn Dreamweaver CS5