Beispiel #1
0
 static Shader_ColorEditor_SV()
 {
     pixelShader = new PixelShader()
     {
         UriSource = GResourceUtility.GetUri("Resources/Shader/ColorEditor_SV.ps"),
     };
 }
Beispiel #2
0
        public void SetIcon(string icoPath)
        {
            Uri    iconUri        = GResourceUtility.GetUri(icoPath);
            Stream resourceStream = Application.GetResourceStream(iconUri).Stream;
            Icon   icon           = new Icon(resourceStream);

            SetIcon(icon);
        }
Beispiel #3
0
 public static void ApplyCustom(ResourceDictionary appResource, string assemblyName, string relativeXamlPath)
 {
     ApplyCustom(appResource, GResourceUtility.GetUri(assemblyName, relativeXamlPath));
 }