public MainPage()
        {
            var r    = ResourceLoader.GetForCurrentView();
            var dd   = r.GetStringForUri(new Uri("ms-resource:ContentTextBox/ToolTipService/ToolTip"));
            var data = new { a = Math.PI, bs = "haha" };
            var dic  = new Dictionary <string, double> {
                ["Count"] = Math.PI, ["v"] = 12
            };
            var               aa        = new FormattableResourceString("Count: {Count} {_syncRoot} {buckets}").ToFormattableString(dic);
            var               aao       = new FormattableResourceString("Count: {Count} {_syncRoot} {buckets}").ToFormattableString((object)dic);
            var               bb        = new FormattableResourceString("{$FileNotFound}").ToFormattableString(Strings.Resources);
            var               d         = Test.Strings.Resources.FileNotFound().Format(new { line = 12, name = "Test.cs", path = "??" });
            dynamic           resources = Strings.Resources;
            var               tooltip1  = (string)resources.ContentTextBox.ToolTipService.ToolTip();
            var               tooltip2  = (string)resources.ContentTextBox["ToolTipService"].ToolTip();
            var               tooltip3  = (string)resources.ContentTextBox["ToolTipService/ToolTip"]();
            FormattableString f         = $"A = {1}";

            this.InitializeComponent();
            dynamic s0  = Strings.Resource;
            var     ff  = s0.FormatJson("P", null);
            var     s1  = s0.GetValue;
            var     s2t = s1.GetValue;
            var     s2a = s2t();
            var     s2  = s1.GetValue();
            var     rd  = ResourceLoader.GetForViewIndependentUse();
            var     r1  = ResourceLoader.GetForViewIndependentUse("");
            var     p   = new DebuggerDisplay(Strings.Resource);

            this.lv.ItemsSource = p.Items;
            var ns1 = a.a1.ToDisplayNameString();
            var ns2 = a.a2.ToDisplayNameString();
            var ns3 = a.a3.ToDisplayNameString();
            var ns4 = a.a4.ToDisplayNameString();

            Debugger.Break();
        }
Exemple #2
0
 public void SetupGUI(Rect buttonRect, string buttonText, Vector2 windowSize)
 {
     this.display = this.gameObject.AddComponent <DebuggerDisplay>();
     this.display.Initiate(this, buttonRect, buttonText, windowSize);
 }
Exemple #3
0
 public void SetupGUI(Rect buttonRect, string buttonText, Vector2 windowSize)
 {
     this.display = this.gameObject.AddComponent<DebuggerDisplay>();
     this.display.Initiate(this, buttonRect, buttonText, windowSize);
 }