8年WPF经验老鸟提供技术咨询
wpf吧
全部回复
仅看楼主
level 5
趋时软件 楼主
如果有WPF相关的难题解决不了,可以问我。
2020年02月04日 03点02分 1
level 2
你好!我刚接触wpf,想在工具栏Fluent:Ribbon中放一些有属性的控件,可以通过拖拽的方式拉到下方的内容框ContentControl里,能否给个demo?
2020年02月04日 04点02分 2
这种demo网上应该有很多
2020年02月04日 05点02分
level 1
这种效果wpf能做出来吗
2020年02月05日 14点02分 3
可以做出来
2020年02月06日 09点02分
level 2
初学WPF,老哥请问下,怎么实现点击 杭州阿里云 的时候,后面的选中状态随之改变啊
代码:
<ListBox x:Name="UrlList"
Style="{StaticResource ListBoxStyle}"
DataContext="{Binding}"
SelectedItem="{Binding SelectItem}"
ItemsSource="{Binding ObsBackupUrls}">
<ListBox.ItemContainerStyle>
<Style TargetType="{x:Type ListBoxItem}">
<Setter Property="OverridesDefaultStyle" Value="True" />
<Setter Property="SnapsToDevicePixels" Value="True" />
<Setter Property="Foreground" Value="Black" />
<Setter Property="FontSize" Value="18" />
<Setter Property="VerticalContentAlignment" Value="Center" />
<Setter Property="Template">
<Setter.Value>
<ControlTemplate TargetType="{x:Type ListBoxItem}">
<Border x:Name="border" CornerRadius="5" Margin="10,0,0,10" BorderBrush="Black"
BorderThickness="0,0,0,0.2">
<ContentPresenter HorizontalAlignment="{TemplateBinding HorizontalContentAlignment}"
VerticalAlignment="{TemplateBinding VerticalContentAlignment}"
Margin="10,0,0,0" />
</Border>
<ControlTemplate.Triggers>
<Trigger Property="IsSelected" Value="True">
<Setter Property="Foreground" Value="#FF6A0D" />
</Trigger>
</ControlTemplate.Triggers>
</ControlTemplate>
</Setter.Value>
</Setter>
</Style>
</ListBox.ItemContainerStyle>
<ListBox.ItemTemplate>
<DataTemplate>
<Grid>
<Grid.RowDefinitions>
<RowDefinition Height="40"></RowDefinition>
</Grid.RowDefinitions>
<Grid.ColumnDefinitions>
<ColumnDefinition Width="320"></ColumnDefinition>
<ColumnDefinition Width="100"></ColumnDefinition>
</Grid.ColumnDefinitions>
<TextBlock Grid.Column="0" Text="{Binding Name}" VerticalAlignment="Center" FontSize="15"></TextBlock>
<StackPanel Grid.Column="1" VerticalAlignment="Center" Orientation="Horizontal" Visibility="{Binding IsCheck,Converter={StaticResource VisibilityConverter}}" >
<TextBlock Text="当前" FontSize="15"></TextBlock>
<CheckBox IsEnabled="False" IsChecked="True" Style="{StaticResource CheckBoxStyle}" Height="20" Width="20" Margin="5,0,0,0"></CheckBox>
</StackPanel>
</Grid>
</DataTemplate>
</ListBox.ItemTemplate>
</ListBox>
2020年02月07日 03点02分 4
绑定
2020年02月14日 00点02分
level 5
趋时软件 楼主

2020年02月12日 04点02分 5
[大拇指]
2024年03月07日 08点03分
level 1
大神,你好
1.我想做3D的动画,请问UG可以导出XAML格式的文件吗?
2.比如说我做多轴机器人的动画,我从三维软件导出的XAML是不是需要按每个轴来导出,不能一次性导出所有的三维图(一次性这样应该没法按照轴来动了)?
表达能力有可能有些不好,见谅[吐舌]
2020年02月17日 13点02分 6
推荐使用LightningChart
2020年05月29日 06点05分
level 1
能加好友私聊吗?
2020年02月27日 07点02分 7
level 1
我想问下,每个用户控件一般都是单独的dll,能合并成一个dll吗,就是引用一个dll就能调用多个不同的用户控件
2020年03月14日 00点03分 8
level 1
最近想做一个简易的编辑工具 有很多问题 能单独和您聊聊么?
2020年03月16日 08点03分 9
level 1
萌新求教,datagrid添加列的时候报错,怎么办啊,大佬
2020年03月23日 06点03分 10
你把 DataGrid.Columns放到DaraGrid里面去
2020年03月31日 03点03分
level 1
你好,能给个联系方式吗?有点小问题
2020年04月03日 10点04分 11
level 5
我用xaml定义了一个9列的Datagrid,然后我又在后台用代码添加了5列,这时总列数变成了14。这是没问题的。
但是我在另一个窗口里去调用这个列数,发现列数是9,用代码添加的列居然没算进去,一直提示索引超范围。
这什么情况?
2020年05月17日 02点05分 12
level 1
你好大佬!我想实现将图片写入数据库,再读出来显示在image控件里的功能,但最后这里出错了,求教[委屈]
2020年05月22日 09点05分 13
level 1
我想知道在wpf里树状结构的列要做分层次的缩进效果,用StringFormat该怎么做
2020年05月28日 06点05分 14
level 1
这样的布局,无 论窗口如何调整大小,42个button刚好布满窗口,用什么方法好,42个button能绑定到一个List<>,点击button,能取出该button的值。谢谢指引。
2020年06月11日 13点06分 15
可以使用ItemControl, 数据模板包一个button, ItemsPanel使用 UniformGrid,绑定到一个list, button按下的时候,获取 Button的绑定对象
2020年07月04日 06点07分
@timebirdss UniformGrid 设置 7列 6行
2020年07月04日 06点07分
1 2 3 尾页