Round Image Custom Control [WPF]

Поделиться
HTML-код
  • Опубликовано: 31 окт 2024

Комментарии • 19

  • @AmirRobo
    @AmirRobo 2 месяца назад

    Finally. This is what I needed. Thanks a lot.

  • @SuperArbalest
    @SuperArbalest 3 года назад +2

    Best tutorial video. Thanks for your dedication.

  • @Rick-mf3gh
    @Rick-mf3gh 3 года назад +2

    A really clear explanation. 👍

  • @codingwithalfred
    @codingwithalfred 2 года назад +1

    Thanks man... keep it up

  • @zsoltambrus7291
    @zsoltambrus7291 10 месяцев назад

    Great video 👍 Could you provide a version in which oyu bind the ImageSource to an Image from a database?

  • @chichek7675
    @chichek7675 2 года назад

    BTW great job

  • @alphacodetech2200
    @alphacodetech2200 2 года назад

    I’m having problem with the Generic pls
    It says the name space “sososo ” does not exist i the namespace “clr-namespace:sososo”.

  • @JarosawPietras
    @JarosawPietras 2 года назад

    I have 5 errors e.g :
    null Image ImageBrush.ImageSource ImageSource - Cannot find governing FrameworkElement or FrameworkContentElement for target element

    • @TacticDevs
      @TacticDevs  2 года назад

      The image in your project Set its build action to resource, you can do that in the property is panel ,so that when the project is compiled the image will be considered as a resource of the application when you run the application it will easily find that image

    • @JarosawPietras
      @JarosawPietras 2 года назад

      @@TacticDevs This is what I have set up and I still get errors.

  • @allaboutsoftware9394
    @allaboutsoftware9394 2 года назад +1

    The control works fine but rises (Cannot find governing FrameworkElement or FrameworkContentElement for target element) Binding Error.
    How can i solve binding error, more output details below.
    ---------------------------------------------------------------------------------------------------------------------------------
    Data Context Binding Path Target Target Type
    null Image ImageBrush.ImageSource ImageSource
    Thank you.

    • @TacticDevs
      @TacticDevs  2 года назад

      Try to check the declaration of the image dependency property set the default value to null

    • @TacticDevs
      @TacticDevs  2 года назад

      1:18 you can check this part of the video

    • @allaboutsoftware9394
      @allaboutsoftware9394 2 года назад

      @@TacticDevs Thanks for replying.
      Default value is set to null, One more think I forgot to mention is that all dependency properties (Ytranslate, BorderWidth etc..) yield similar result.

    • @TacticDevs
      @TacticDevs  2 года назад

      I think I know where the problem, You need to verify the binding attribute of the image control element in the control template make sure it’s relative and it set to templated parent you check this part of the video 9:00 And make sure the binding attribute expression is the same as the one in the video

    • @allaboutsoftware9394
      @allaboutsoftware9394 2 года назад

      @@TacticDevs It is set to "ImageSource="{Binding RelativeSource={RelativeSource TemplatedParent}, Path=Image}"