如果您有关于Visual Studio特性和功能的特定问题,请使用此标记。不要在有关代码的问题上使用此标记,这些代码恰好是在Visual Studio中编写的。考虑标记您的问题链接到的确切技术区域,并标记更具体的Visual Studio版本。请在您的问题中提及您的确切VS版本,版本和更新级别。
.NETMAUI Collection View未显示Windows
我在Windows中的CollectionView有问题。 XAML是 <?xml version="1.0" encoding="utf-8" ?> <ContentPage x:Class="LibraryAppM.Views.EnquiryPage" xmlns="http://schemas.microsoft.com/dotnet/2021/maui" xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml" xmlns:library="clr-namespace:LibraryM;assembly=LibraryM" xmlns:local="clr-namespace:LibraryAppM.ViewModels.Enquiry" xmlns:toolkit="http://schemas.microsoft.com/dotnet/2022/maui/toolkit" x:Name="enquiry" Title="Richard's Library System" x:DataType="local:EnquiryViewModel"> <ContentPage.BindingContext> <local:EnquiryViewModel /> </ContentPage.BindingContext> <ContentPage.Behaviors> <toolkit:EventToCommandBehavior BindingContext="{Binding Path=BindingContext, Source={x:Reference enquiry}, x:DataType=ContentPage}" Command="{Binding GetAuthorsCommand}" EventName="Appearing" /> </ContentPage.Behaviors> <Grid Padding="10,0,10,0" RowDefinitions="Auto,Auto,Auto,Auto,*" RowSpacing="10"> <Image Grid.Row="0" Aspect="AspectFit" HeightRequest="185" SemanticProperties.Description="A picture of library shelves" Source="lib_pic.jpg" /> <Label Grid.Row="1" FontSize="20" Text="Enquiry Page" /> <toolkit:Expander Grid.Row="2" IsExpanded="{Binding IsOpened}"> <toolkit:Expander.Header> <HorizontalStackLayout MaximumHeightRequest="42"> <Label FontSize="16" HorizontalOptions="Start" Text="{Binding SelectedText}" /> <Label HorizontalOptions="Start" Text="▼" VerticalOptions="Center" /> </HorizontalStackLayout> </toolkit:Expander.Header> <CollectionView HeightRequest="190" ItemsSource="{Binding DataList}" SelectedItem="{Binding SelectedItem}" SelectionChangedCommand="{Binding SelectionCommand}" SelectionMode="Single"> <CollectionView.ItemTemplate> <DataTemplate x:DataType="library:Author"> <Label FontSize="16" Text="{Binding FullName}" /> </DataTemplate> </CollectionView.ItemTemplate> </CollectionView> </toolkit:Expander> <Grid Grid.Row="3" ColumnDefinitions="5*,10,Auto" RowDefinitions="Auto"> <Label Grid.Column="0" HorizontalOptions="Start" Text="Title" /> <Label Grid.Column="2" HorizontalOptions="Center" Text="Return Date" /> </Grid> <CollectionView Grid.Row="5" ItemsSource="{Binding BookList}" VerticalScrollBarVisibility="Never"> <CollectionView.ItemsLayout> <LinearItemsLayout ItemSpacing="3" Orientation="Vertical" /> </CollectionView.ItemsLayout> <CollectionView.ItemTemplate> <DataTemplate x:DataType="library:Book"> <Grid ColumnDefinitions="Auto,*,Auto"> <Label Grid.Column="0" HorizontalOptions="Start" Text="{Binding Title}" /> <Label Grid.Column="2" HorizontalOptions="End" Text="{Binding ReturnDate}" /> </Grid> </DataTemplate> </CollectionView.ItemTemplate> </CollectionView> </Grid> </ContentPage> 清单卷轴,但最后几个项目丢失了。如果我现在在第二个CollectionView中的网格中添加填充(例如,出现了一些缺少的项目。此视图在Android中无需修改填充。我在vs 17.13.3和Windows11. 对我来说,解决方案是在ContentPage定义中添加高度。例如<Grid ColumnDefinitions="Auto,*,Auto" Padding="20">
我们正在尝试将Azure SSAS表格模型部署到服务器中并获取错误: “必须在UI线程上调用OutputStringNopump” “处理选项”设置为“ ...
项目项目使用的其他一些文件和DLL,这些文件和DLL在解决方案中的任何项目中均未直接引用。 但是,成功部署应用程序需要这些文件。
我有一条代码线,该行被标记为null。该零是如何创建时填充的字符串。...我的VS2013是否有错误?还是我需要更改的设置?
,在.NET应用程序中,如果我更改了配置,则项目属性似乎在所有配置中都持续存在。
在Visual Studio 2022上遮住黑色条(转到现场视觉树等)
在新创建的WPF应用程序的顶部是一个黑色条,包括诸如“ to Live Visual Tree”之类的按钮。我如何摆脱它? 在工具 - >调试中曾经有一个选项称为“ ...
将将文本光标从一个“ word”移动到下一个。 在Mac上使用XCode时,它们将其扩展为the+右箭头,将光标将光标移至下一个
CMAKE_CXX_COMPILER