CheckComboBox Help
Chưa có ai nhận issue này.
Đánh giá
- Độ khó
- 4/5
- Thời gian dự kiến
- 3-5 ngày
- Mức phù hợp với người mới
- 25/100
Hướng nghiên cứu
The report names the CheckComboBox XAML and the CirculationData and ComboCirculation01_ItemSelectionChanged entry points, but no repository files or tests. Start by reproducing the three reported selection cases with the XML-backed ItemsSource; the work is complete when each case has a confirmed outcome and the expected selected values are clear.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
HI,
I'm trying to use the CheckComboBox control, I take the data from an XML file, which is present in a folder on the computer, to be exact "C:\Emergency\Configuration\Configuration.xml" I used xmlDocument to import the file , and then through a foreach I added the various items, but I have two problems.
- If I select only one item it is not shown
- If I select two elements they are shown, but if I deselect them, the last deselected element is also shown
- Question: How can I get the values pressed on 2 or more different strings?
Thank you so much :)
XAML CODE
<xctk:CheckComboBox Grid.Column="1" Grid.Row="4" x:Name="ComboCirculation01" Height="30" Width="200" HorizontalAlignment="Center" VerticalAlignment="Center" DisplayMemberPath="Color" ValueMemberPath="Level" SelectedValue="{Binding SelectedValue}" SelectedItemsOverride="{Binding SelectedItems}"/>
CS CODE
` #region Circulation
public class CirculationItem {
public string Circulation { get; set; }
public bool IsSelected { get; set; }
}
private void CirculationData() {
string configFile = @"C:\Emergenza\Configuration\Configuration.xml";
XmlDocument xmlDocument = new XmlDocument();
xmlDocument.Load(configFile);
XmlNodeList nodes = xmlDocument.SelectNodes("/Config/Paziente/Associazione/Circolo/Value");
ComboCirculation01.DisplayMemberPath = "Circulation";
List<CirculationItem> circulationItems = new List<CirculationItem>();
foreach (XmlNode node in nodes) {
string circulation = node.InnerText;
circulationItems.Add(new CirculationItem { Circulation = circulation });
}
ComboCirculation01.ItemsSource = circulationItems;
ComboCirculation01.ItemSelectionChanged += ComboCirculation01_ItemSelectionChanged;
}
private void ComboCirculation01_ItemSelectionChanged(object sender, Xceed.Wpf.Toolkit.Primitives.ItemSelectionChangedEventArgs e) {
foreach (CirculationItem item in ComboCirculation01.Items) {
item.IsSelected = ComboCirculation01.SelectedItems.Contains(item);
}
}
#endregion`
- Ngôn ngữ chính
- C#
- Star
- 4.2k
- Fork
- 912
- Chỉ số merge pull request
- Không có pull request nào được merge trong 30 ngày
Hướng dẫn đóng góp
Chưa lập chỉ mục được hướng dẫn đóng góp cho kho mã nguồn này
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của xceedsoftware/wpftoolkit
-
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 35/100
xceedsoftware/wpftoolkit#1808 · 1 bình luận ·
-
Độ khó 3/5 1-2 ngày Mức phù hợp với người mới 48/100
xceedsoftware/wpftoolkit#1807 · 2 bình luận ·
-
Độ khó 3/5 1-2 ngày Mức phù hợp với người mới 35/100
xceedsoftware/wpftoolkit#1806 · 1 bình luận ·
-
Plus Edition. Incorrect window position restoration after returning from the maximized state. Đang mở
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 45/100
xceedsoftware/wpftoolkit#1804 · 1 bình luận ·
-
Độ khó 3/5 1-2 ngày Mức phù hợp với người mới 45/100
xceedsoftware/wpftoolkit#1802 · 3 bình luận ·
Tất cả issue của xceedsoftware/wpftoolkit
Issue tương tự
-
bug needs response
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 82/100
Adyen/adyen-dotnet-api-library#1869 ·
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 88/100
-
difficulty/starter 🚀 good first issue kind/bug platform/ios 🍎 project/non-ui ⚙️ triage/untriaged
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 88/100
unoplatform/uno#24650 ·
-
area-ai untriaged
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
dotnet/extensions#7783 ·
-
untriaged
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 88/100
dotnet/dotnet-api-docs#13095 ·