{"id":9005,"date":"2024-05-17T13:01:01","date_gmt":"2024-05-17T05:01:01","guid":{"rendered":""},"modified":"2024-05-17T13:01:01","modified_gmt":"2024-05-17T05:01:01","slug":"WPF HandyControl \u7b14\u8bb0\uff1a\u4e8c\u3001\u6807\u7b7e\u7684\u4f7f\u7528","status":"publish","type":"post","link":"https:\/\/mushiming.com\/9005.html","title":{"rendered":"WPF HandyControl \u7b14\u8bb0\uff1a\u4e8c\u3001\u6807\u7b7e\u7684\u4f7f\u7528"},"content":{"rendered":"

\n <\/path> \n<\/svg> <\/p>\n

\u4e00\u3001\u65b0\u5efa\u4e00\u4e2aWPF\u7a97\u53e3\uff0c\u547d\u540d\u4e3aLabel.xaml<\/h5>\n

\"WPF<\/p>\n

\u4e8c\u3001\u6dfb\u52a0WPF\u539f\u751f\u63a7\u4ef6 Label\uff0c\u5728Style\u5c5e\u6027\u4e2d\u7ed1\u5b9aHandlyControl\u76ae\u80a4\u6837\u5f0f<\/h5>\n
\n

\u539f\u751f\u63a7\u4ef6\uff1a<\/p>\n<\/blockquote>\n

\u6548\u679c\uff1a
\"WPF
\u4ee3\u7801\uff1a<\/p>\n

<<\/span>Label<\/span> Content<\/span>=<\/span>\"<\/span>\u539f\u751fLabel\"<\/span><\/span> HorizontalAlignment<\/span>=<\/span>\"<\/span>Left\"<\/span><\/span> Margin<\/span>=<\/span>\"<\/span>31,23,0,0\"<\/span><\/span> VerticalAlignment<\/span>=<\/span>\"<\/span>Top\"<\/span><\/span> Width<\/span>=<\/span>\"<\/span>100\"<\/span><\/span>\/><\/span><\/span>\n<\/code><\/pre>\n
\n

LabelInfo \u76ae\u80a4\u6548\u679c<\/p>\n<\/blockquote>\n

\u6548\u679c\uff1a
\"WPF<\/p>\n

<<\/span>Label<\/span> Content<\/span>=<\/span>\"<\/span>LabelDefault\"<\/span><\/span> HorizontalAlignment<\/span>=<\/span>\"<\/span>Left\"<\/span><\/span> Margin<\/span>=<\/span>\"<\/span>31,63,0,0\"<\/span><\/span> VerticalAlignment<\/span>=<\/span>\"<\/span>Top\"<\/span><\/span> Style<\/span>=<\/span>\"<\/span>{ \n       <\/span>StaticResource LabelInfo}<\/span><\/span>\"<\/span><\/span><\/span> Width<\/span>=<\/span>\"<\/span>100\"<\/span><\/span>><\/span><\/span>\n<<\/span>Label<\/span> Content<\/span>=<\/span>\"<\/span>LabelInfo.Small\"<\/span><\/span> HorizontalAlignment<\/span>=<\/span>\"<\/span>Left\"<\/span><\/span> Margin<\/span>=<\/span>\"<\/span>160,103,0,0\"<\/span><\/span> VerticalAlignment<\/span>=<\/span>\"<\/span>Top\"<\/span><\/span> Style<\/span>=<\/span>\"<\/span>{ \n       <\/span>StaticResource LabelInfo.Small}<\/span><\/span>\"<\/span><\/span><\/span> Width<\/span>=<\/span>\"<\/span>100\"<\/span><\/span>\/><\/span><\/span>\n<\/code><\/pre>\n
\n

LabelDanger \u76ae\u80a4\u6548\u679c<\/p>\n<\/blockquote>\n

\u6548\u679c:
\"WPF
\u4ee3\u7801\uff1a<\/p>\n

<<\/span>Label<\/span> Content<\/span>=<\/span>\"<\/span>LabelDanger\"<\/span><\/span> HorizontalAlignment<\/span>=<\/span>\"<\/span>Left\"<\/span><\/span> Margin<\/span>=<\/span>\"<\/span>31,263,0,0\"<\/span><\/span> VerticalAlignment<\/span>=<\/span>\"<\/span>Top\"<\/span><\/span> Style<\/span>=<\/span>\"<\/span>{ \n       <\/span>StaticResource LabelDanger}<\/span><\/span>\"<\/span><\/span><\/span> Width<\/span>=<\/span>\"<\/span>100\"<\/span><\/span>\/><\/span><\/span>\n<<\/span>Label<\/span> Content<\/span>=<\/span>\"<\/span>LabelDanger.Small\"<\/span><\/span> HorizontalAlignment<\/span>=<\/span>\"<\/span>Left\"<\/span><\/span> Margin<\/span>=<\/span>\"<\/span>160,263,0,0\"<\/span><\/span> VerticalAlignment<\/span>=<\/span>\"<\/span>Top\"<\/span><\/span> Style<\/span>=<\/span>\"<\/span>{ \n       <\/span>StaticResource LabelDanger.Small}<\/span><\/span>\"<\/span><\/span><\/span> Width<\/span>=<\/span>\"<\/span>100\"<\/span><\/span>\/><\/span><\/span>\n<\/code><\/pre>\n
\n

\u5176\u5b83\u7684Style\u76ae\u80a4\u6837\u5f0f<\/p>\n<\/blockquote>\n

    \n
  • LabelWarning<\/li>\n
  • LabelWarning.Small<\/li>\n
  • LabelDefault<\/li>\n
  • LabelDefault.Small<\/li>\n
  • LabelPrimary<\/li>\n
  • LabelPrimary.Small<\/li>\n
  • LabelSuccess<\/li>\n
  • LabelSuccess.Small<\/li>\n<\/ul>\n
    \u4e09\u3001\u5176\u5b83\u88c5\u9970\u6548\u679c<\/h5>\n
    \n

    \u8fb9\u6846\uff1aBorderBrush\u63a7\u5236\u6837\u5f0f BorderThickness\u63a7\u4ef6\u5bbd\u5ea6<\/strong><\/p>\n<\/blockquote>\n

    \u6548\u679c\uff1a
    \"WPF
    \u4ee3\u7801\uff1a<\/p>\n

    <<\/span>Label<\/span> Content<\/span>=<\/span>\"<\/span>\u539f\u751fLabel\"<\/span><\/span> Margin<\/span>=<\/span>\"<\/span>0,30,0,0\"<\/span><\/span> VerticalAlignment<\/span>=<\/span>\"<\/span>Top\"<\/span><\/span> Width<\/span>=<\/span>\"<\/span>100\"<\/span><\/span> BorderBrush<\/span>=<\/span>\"<\/span>{StaticResource SuccessBrush}\"<\/span><\/span> BorderThickness<\/span>=<\/span>\"<\/span>1\"<\/span><\/span>\/><\/span><\/span>\n<\/code><\/pre>\n
    \n

    \u5706\u89d2\uff1a\u6dfb\u52a0\u547d\u540d\u7a7a\u95f4 xmlns:hc=\"https:\/\/handyorg.github.io\/handycontrol<\/em>\"<\/strong><\/p>\n<\/blockquote>\n

    \u6548\u679c\uff1a
    \"WPF
    \u4ee3\u7801\uff1a<\/p>\n

    <<\/span>Label<\/span> Content<\/span>=<\/span>\"<\/span>\u539f\u751fLabel\"<\/span><\/span> Margin<\/span>=<\/span>\"<\/span>0,73,0,0\"<\/span><\/span> VerticalAlignment<\/span>=<\/span>\"<\/span>Top\"<\/span><\/span> Width<\/span>=<\/span>\"<\/span>100\"<\/span><\/span> hc:<\/span>BorderElement.CornerRadius<\/span>=<\/span>\"<\/span>20\"<\/span><\/span> \/><\/span><\/span>\n<\/code><\/pre>\n","protected":false},"excerpt":{"rendered":"WPF HandyControl \u7b14\u8bb0\uff1a\u4e8c\u3001\u6807\u7b7e\u7684\u4f7f\u7528LabelDanger\u76ae\u80a4\u6548\u679c","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[],"tags":[],"_links":{"self":[{"href":"https:\/\/mushiming.com\/wp-json\/wp\/v2\/posts\/9005"}],"collection":[{"href":"https:\/\/mushiming.com\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/mushiming.com\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/mushiming.com\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/mushiming.com\/wp-json\/wp\/v2\/comments?post=9005"}],"version-history":[{"count":0,"href":"https:\/\/mushiming.com\/wp-json\/wp\/v2\/posts\/9005\/revisions"}],"wp:attachment":[{"href":"https:\/\/mushiming.com\/wp-json\/wp\/v2\/media?parent=9005"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/mushiming.com\/wp-json\/wp\/v2\/categories?post=9005"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/mushiming.com\/wp-json\/wp\/v2\/tags?post=9005"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}