コード例 #1
0
        public void PropertyMapEmpty()
        {
            tlog.Debug(tag, $"PropertyMapEmpty START");

            var testingTarget = new PropertyMap();
            Assert.IsNotNull(testingTarget, "should not be null.");
            Assert.IsInstanceOf<PropertyMap>(testingTarget, "should be an instance of PropertyMap class!");
            
            Assert.True(testingTarget.Empty(), "the testingTarget is empty");

            var dummy1 = new PropertyValue(4.0f);
            Assert.IsNotNull(dummy1, "should not be null.");
            Assert.IsInstanceOf<PropertyValue>(dummy1, "should be an instance of PropertyValue class!");

            testingTarget.Insert(8, dummy1);

            var dummy2 = new PropertyValue(5.0f);
            Assert.IsNotNull(dummy2, "should not be null.");
            Assert.IsInstanceOf<PropertyValue>(dummy2, "should be an instance of PropertyValue class!");

            testingTarget.Insert(18, dummy2);
            
            Assert.False(testingTarget.Empty(), "the PropertyMap is not empty");

            dummy1.Dispose();
            dummy2.Dispose();
            testingTarget.Dispose();
            tlog.Debug(tag, $"PropertyMapEmpty END (OK)");
        }
コード例 #2
0
ファイル: ViewInternal.cs プロジェクト: walac/NUIPreview
        private void UpdateShadowCornerRadius(float value)
        {
            // TODO Update corner radius property only whe DALi supports visual property update.
            PropertyMap map = new PropertyMap();

            if (Tizen.NUI.Object.GetProperty(swigCPtr, View.Property.SHADOW).Get(map) && !map.Empty())
            {
                map[Visual.Property.CornerRadius] = new PropertyValue(value);

                Tizen.NUI.Object.SetProperty(swigCPtr, View.Property.SHADOW, new PropertyValue(map));
            }
        }