PUG

  • PUG News
  • PUG Forum
  • Shared documents
  • PUG Events
    • Scandinavian Conferences
    • Scandinavian Theme Days
    • D-A-CH Events
    • North American Events
  • PUG Info
    • PUG Board Info (Scandinavia)
    • PUG Rules
    • PUG Member Lists and Board Members
  • Contact Us

Reply To: Textfeld in Combobox verwandeln?

  • Follow us on Twitter
  • Join our Facebook Group
  • RSS

Welcome to the POB User Group Online Community! › Forums › PUG DACH › Textfeld in Combobox verwandeln? › Reply To: Textfeld in Combobox verwandeln?

06/11/2015 at 10:27 #3196
Stefan Reichelt
Participant

Hallo Chris,

Das wär natürlich auch eine Idee gewesen. Auf eine so simple Lösung bin ich gar nicht gekommen.

Wie auch immer, die jetzige Lösung funktioniert wunderbar. Mit vereinten Kräften konnten wir das Feld sauber umbauen. Wie es funktioniert, kannst du dir ja dann nächste Woche vor Ort erläutern lassen, wenn er bei euch geschult wird. Er ist brilliant, mir in puncto Programmierung haushoch überlegen und wird definitiv eine große Bereicherung sein. 😉

Grüße,

Stefan

PS, ein paar Details:

Oben im Namespace-bereich mussten noch zwei weitere Zeilen hinzugefügt werden

        xmlns:sys="clr-namespace:System;assembly=mscorlib"
        xmlns:col="clr-namespace:System.Collections;assembly=mscorlib"

Darunter dann eine neue Listenressource:

    <Grid.Resources>
        <col:SortedList x:Key="liste">
            <sys:String x:Key="address1">Adresse1@domain.com</sys:String>
            <sys:String x:Key="address2">Adresse2@domain.com</sys:String>
        </col:SortedList>
    </Grid.Resources>

Und letztlich die Combobox, die das bisherige Feld komplett ersetzt:

<ComboBox x:Name="MailFrom" Grid.Column="1" DisplayMemberPath="Value" IsEditable="True" IsReadOnly="True" ItemsSource="{StaticResource ResourceKey=liste}" Text="{Binding Path=MainEntity.MailFrom, Mode=TwoWay}"/>

Von mir kam letztlich nur noch die Idee selbst, und das IsReadOnly=”True”, um den Bearbeiter nur noch die Werte in der Box auswählen zu lassen. IsEditable wird dabei dennoch gebraucht, damit in eingegangenen Mails weiterhin der Absender angezeigt wird, obwohl dieser nicht in der Liste vorhanden ist.

Login

Register | Lost your password?

Menu

  • PUG News
  • PUG Forum
  • Shared documents
  • PUG Events
    • Scandinavian Conferences
    • Scandinavian Theme Days
    • D-A-CH Events
    • North American Events
  • PUG Info
    • PUG Board Info (Scandinavia)
    • PUG Rules
    • PUG Member Lists and Board Members
  • Contact Us

Pages

  • Anmeldung zur PUG Konferenz 2018
  • Contact us
  • Forgot Password
  • Login
  • Lost password
  • POB Tip – Filtering lists to show only limited data
  • Profile
  • Registration
  • Registration for PUG 2019 in Scandinavia
  • Registration for PUG 2020 in Scandinavia
  • Skandinavisk PUG konference 2014 (Hurdal, Norge)
  • Skandinavisk PUG konference 2017 (Sundvolden, Norge)
  • Tilmelding til / Anmälan till PUG 2015 i Sollentuna
  • Tilmelding til erfamøde hos Frederiksberg Kommune
  • Tilmelding til PUG 2016 / Anmälan till PUG 2016
  • Tilmelding til PUG 2018 / Anmälan till PUG 2018
  • Udfyld nedenstående felter hvis du ønsker at melde jer ind i PUG
  • Welcome to the POB User Group Online Community!
  • Wendia North America 2018 Customer-Partner Conference Registration Form
  • Wendia North America 2019 Customer-Partner Conference Registration Form
  • You are not a member?
  • Webinar on the New Mobile Web Apps in POB G6 2.006/01/2021 - 13:41

    The POB G6 2.0 mobile interfaces for analysts and customers provide great new capabilities and features. The mobile interfaces have a new look and feel and they allow utilization of most areas of POB from a mobile platform. On January 19th, Kevin Goertzen will show and demonstrate the new mobile interfaces in POB G6 2.0 […]

  • December Webinar on Triggers in POB27/11/2020 - 12:10
  • PUG 2021 – Redesigned for a Virtual Setting (Scandinavia)13/11/2020 - 11:29

    The PUG board has decided to have next year’s Scandinavian conference in a virtual setting. So, mark your calendar for April 20th, 2021, where PUG will host a one-day virtual conference. The decision was made based on the feedback the PUG board got when they asked how participants would feel about attending a physical conference, […]

© Copyright - PUG - All rights reserved by PUG © 2012
  • Send us Mail
  • Follow us on Twitter
  • Join our Facebook Group
  • Subscribe to our RSS Feed