小编Sal*_*lim的帖子

Mahapps 地铁主题不可用,因为没有 app.xaml

我正在开发一个Office插件并想添加一个WPF Mahapps Windows

一切顺利,但我无法应用Mahapps Windows风格。
查看此处的教程我看到我更新了App.xaml以添加各种主题。由于它不是 WPF 项目,因此我没有App.xaml.

应用样式的最有效方法是什么?
我可以直接在 Windows 级别执行吗?
还是我需要手动创建一个App.xaml

app.xaml mahapps.metro

2
推荐指数
1
解决办法
1565
查看次数

static function all new object allway设置为null

我很感激您在调试以下问题时提供的帮助:

Toolbox

public static StdResult createLine(string extension, string site, string CSSLevel, string label)
        {
...
StandardResponse res = AXLAPIServiceSingleton.getInstance().addLine(req);
**// Return of a new custom object a the result**
return new StdResult(StdResVal.SUCCESS, res.@return);
}
Run Code Online (Sandbox Code Playgroud)
MyClassA

// Execute the createLine function which return a new object
StdResult resActionAssociateLine = Toolbox.createLine(selectedUserExtension, selectedUserSite, valueCreateLineCSS, valueCreateLineFirstNameLastName);
System.Diagnostics.Debug.WriteLine("Result is always null: " + resActionAssociateLine.text);
Run Code Online (Sandbox Code Playgroud)
namespace CUCMAdminPortal.CiscoAXL
{
    [Serializable]
    public class StdResult
    {
        public StdResVal res;
        public string text;

        public StdResult(StdResVal res, string text)
        {
            res …
Run Code Online (Sandbox Code Playgroud)

c# null

1
推荐指数
1
解决办法
192
查看次数

标签 统计

app.xaml ×1

c# ×1

mahapps.metro ×1

null ×1