상속: System.EventArgs
예제 #1
0
 public void AddStyleSheetRequest(TextRequestEventArgs arg)
 {
     this.StylesheetLoadingRequest(this, arg);
 }
예제 #2
0
 public void AddStyleSheetRequest(TextRequestEventArgs arg)
 {
     this.StylesheetLoadingRequest(this, arg);
 }
예제 #3
0
 /// <summary>
 /// Handle stylesheet resolve.
 /// </summary>
 void HandleStylesheetRequest(object sender, TextRequestEventArgs e)
 {
     var stylesheet = GetBuiltInStyleSheet(e.Src);
     if (stylesheet != null)
     {
         e.TextContent = stylesheet;
     }
     else
     {
         //load external style sheet
         //beware request destination and request origin
         //check style sheet ...
         string fullStyleSheetFilename = this.htmlRootFolder + "\\" + e.Src;
         if (File.Exists(fullStyleSheetFilename))
         {
             e.TextContent = File.ReadAllText(fullStyleSheetFilename);
         }
     }
 }