Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. WPF
  4. WPF .Net 6

WPF .Net 6

Scheduled Pinned Locked Moved WPF
csharpwpfquestionasp-netdotnet
2 Posts 2 Posters 27 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • K Offline
    K Offline
    Kevin Marois
    wrote on last edited by
    #1

    I'm sure this is a silly question.... I'm trying to port some behaviors from .Net Framewor 4.7 to Core 6. This no longer compiles:

    public class ComboBoxWatermarkBehavior : Behavior
    .
    .
    .

    because it can't find Behavior<> From what I can see from Google results, I was missing Microsoft.Xaml.Behaviors.Wpf. I added the package but it didn't do anything. What am I missing here???

    In theory, theory and practice are the same. But in practice, they never are.” If it's not broken, fix it until it is. Everything makes sense in someone's mind.

    P 1 Reply Last reply
    0
    • K Kevin Marois

      I'm sure this is a silly question.... I'm trying to port some behaviors from .Net Framewor 4.7 to Core 6. This no longer compiles:

      public class ComboBoxWatermarkBehavior : Behavior
      .
      .
      .

      because it can't find Behavior<> From what I can see from Google results, I was missing Microsoft.Xaml.Behaviors.Wpf. I added the package but it didn't do anything. What am I missing here???

      In theory, theory and practice are the same. But in practice, they never are.” If it's not broken, fix it until it is. Everything makes sense in someone's mind.

      P Offline
      P Offline
      Pete OHanlon
      wrote on last edited by
      #2

      You definitely have using Microsoft.Xaml.Behaviors; in this file? As long as you Nugeted from here[^] that should be all you need.

      Advanced TypeScript Programming Projects

      1 Reply Last reply
      0
      Reply
      • Reply as topic
      Log in to reply
      • Oldest to Newest
      • Newest to Oldest
      • Most Votes


      • Login

      • Don't have an account? Register

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • World
      • Users
      • Groups