Sunday, 15 September 2013

How to use silverlight in WPF application in Microsoft expression blend 4? -



How to use silverlight in WPF application in Microsoft expression blend 4? -

i have template/pattern got in http://gallery.expression.microsoft.com/ (analog sweeping clock - http://gallery.expression.microsoft.com/analogsweepingclock) , want utilize on wpf application using microsoft look blend 4. possible? purpose of using wpf allows have more windows.

i tried putting adding .xaml , .cs of analog class in wpf application. displays clock clock hand not working.

can help me solving this?

thank in advance! :)

the clock hands won't move in design mode. you'll need build , run project see them move.

to project build, had remove uselayoutrounding="false" attribute elements on lines 106, 107, 118, 135, 140, 145 , 150.

another problem might find wpf doesn't seem pick property changed events currentday , currentmonth properties. simplest alternative alter these dependency properties:

public static readonly dependencyproperty currentmonthproperty = dependencyproperty.register("currentmonth", typeof(string), typeof(analogsweepingclock), new propertymetadata(null)); public string currentmonth { { homecoming (string)getvalue(currentmonthproperty); } set { setvalue(currentmonthproperty, value); } } public static readonly dependencyproperty currentdayproperty = dependencyproperty.register("currentday", typeof(string), typeof(analogsweepingclock), new propertymetadata(null)); public string currentday { { homecoming (string)getvalue(currentdayproperty); } set { setvalue(currentdayproperty, value); } }

wpf silverlight expression blend

No comments:

Post a Comment