WPF 基礎控件之 Slider 樣式

其他基礎控件

1.Window
2.Button
3.CheckBox
4.ComboBox
5.DataGrid
6.DatePicker
7.Expander
8.GroupBox
9.ListBox
10.ListView
11.Menu
12.PasswordBox
13.TextBox
14.RadioButton
15.ToggleButton

Slider ?實現下面的效果

d25d10c0271ddad774aca051611d2030.png

1)Slider來實現動畫;

  • Grid嵌套 Border并設置ScaleTransform ,當鼠標移入MouseOverScaleTransform.ScaleX 與 ScaleTransform.ScaleYTo = 1.2 放大;

  • Orientation設置為Horizontal水平方向走SliderHorizontal

  • Orientation設置為Vertical垂直方向走SliderVertical

<ResourceDictionary?xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"xmlns:sys="clr-namespace:System;assembly=mscorlib"><ResourceDictionary.MergedDictionaries><ResourceDictionary?Source="../Themes/Basic/ControlBasic.xaml"/><ResourceDictionary?Source="../Themes/Basic/Animations.xaml"/></ResourceDictionary.MergedDictionaries><sys:Double?x:Key="ThumbWidth">16</sys:Double><sys:Double?x:Key="ThumbCornerRadius">8</sys:Double><sys:Double?x:Key="RepeatButtonSize">5</sys:Double><ControlTemplate?x:Key="SliderThumbHorizontalTop"?TargetType="{x:Type?Thumb}"><Grid?HorizontalAlignment="Center"?UseLayoutRounding="True"?VerticalAlignment="Center"><Border?BorderBrush="{DynamicResource?PrimaryPressedSolidColorBrush}"?BorderThickness="2"?Background="{DynamicResource?BackgroundSolidColorBrush}"SnapsToDevicePixels="True"Height="{StaticResource?ThumbWidth}"?Width="{StaticResource?ThumbWidth}"?CornerRadius="8"?Margin="-1,0,0,0"Name="PART_Border"?RenderTransformOrigin=".5,.5"></Border></Grid><ControlTemplate.Triggers><Trigger?Property="IsMouseOver"?Value="True"><Setter?Property="RenderTransform"?TargetName="PART_Border"><Setter.Value><ScaleTransform??ScaleX="1.2"?ScaleY="1.2"/></Setter.Value></Setter></Trigger></ControlTemplate.Triggers></ControlTemplate><ControlTemplate?x:Key="SliderThumbHorizontalBottom"?TargetType="{x:Type?Thumb}"><Grid?HorizontalAlignment="Center"?UseLayoutRounding="True"?VerticalAlignment="Center"><Border?BorderBrush="{DynamicResource?PrimaryNormalSolidColorBrush}"?BorderThickness="2"?Background="{DynamicResource?BackgroundSolidColorBrush}"SnapsToDevicePixels="True"Height="{StaticResource?ThumbWidth}"?Width="{StaticResource?ThumbWidth}"?CornerRadius="8"?Margin="-1,0,0,0"Name="PART_Border"?RenderTransformOrigin=".5,.5"></Border></Grid><ControlTemplate.Triggers><Trigger?Property="IsMouseOver"?Value="True"><Setter?Property="RenderTransform"?TargetName="PART_Border"><Setter.Value><ScaleTransform??ScaleX="1.2"?ScaleY="1.2"/></Setter.Value></Setter></Trigger></ControlTemplate.Triggers></ControlTemplate><ControlTemplate?x:Key="SliderThumbHorizontal"?TargetType="{x:Type?Thumb}"><ControlTemplate.Resources><!--<Storyboard?x:Key="ThumbMouseOut"><DoubleAnimation?Storyboard.TargetName="PART_Border"Storyboard.TargetProperty="(UIElement.RenderTransform).(ScaleTransform.ScaleX)"To="1"?Duration="00:00:0.1"/><DoubleAnimation?Storyboard.TargetName="PART_Border"Storyboard.TargetProperty="(UIElement.RenderTransform).(ScaleTransform.ScaleY)"To="1"?Duration="00:00:0.1"/></Storyboard>--><Storyboard?x:Key="ThumbMouseOver"><DoubleAnimation?Storyboard.TargetName="PART_Border"Storyboard.TargetProperty="(UIElement.RenderTransform).(ScaleTransform.ScaleX)"From="1"To="1.2"?Duration="00:00:0.1"/><DoubleAnimation?Storyboard.TargetName="PART_Border"Storyboard.TargetProperty="(UIElement.RenderTransform).(ScaleTransform.ScaleY)"From="1"To="1.2"?Duration="00:00:0.1"/></Storyboard></ControlTemplate.Resources><Grid?HorizontalAlignment="Center"?UseLayoutRounding="True"?VerticalAlignment="Center"><Border?BorderBrush="{DynamicResource?PrimaryNormalSolidColorBrush}"?BorderThickness="2"?Background="{DynamicResource?WindowForegroundColorBrush}"SnapsToDevicePixels="True"Height="{StaticResource?ThumbWidth}"?Width="{StaticResource?ThumbWidth}"?CornerRadius="8"?Margin="-1,0,0,0"Name="PART_Border"?RenderTransformOrigin=".5,.5"><Border.RenderTransform><ScaleTransform/></Border.RenderTransform></Border></Grid><ControlTemplate.Triggers><Trigger?Property="IsMouseOver"?Value="True"><Trigger.EnterActions><BeginStoryboard?x:Name="BeginStoryboard"??Storyboard="{StaticResource?ThumbMouseOver}"?/></Trigger.EnterActions><Trigger.ExitActions><StopStoryboard?BeginStoryboardName="BeginStoryboard"/><!--<BeginStoryboard?Storyboard="{StaticResource?ThumbMouseOut}"?/>--></Trigger.ExitActions></Trigger></ControlTemplate.Triggers></ControlTemplate><Style?x:Key="RepeatButtonTransparent"?TargetType="{x:Type?RepeatButton}"><Setter?Property="OverridesDefaultStyle"?Value="True"/><Setter?Property="Background"?Value="Transparent"/><Setter?Property="Focusable"?Value="False"/><Setter?Property="IsTabStop"?Value="False"/><Setter?Property="Template"><Setter.Value><ControlTemplate?TargetType="{x:Type?RepeatButton}"><Rectangle?Fill="{TemplateBinding?Background}"?Height="{TemplateBinding?Height}"?Width="{TemplateBinding?Width}"/><!--<Border?Background="{TemplateBinding?Background}"Height="{TemplateBinding?Height}"?Width="{TemplateBinding?Width}"CornerRadius="4,4,0,0"/>--></ControlTemplate></Setter.Value></Setter></Style><ControlTemplate?x:Key="SliderThumbHorizontalDefault"?TargetType="{x:Type?Thumb}"><Grid?HorizontalAlignment="Center"?UseLayoutRounding="True"?VerticalAlignment="Center"><Border?BorderBrush="{DynamicResource?PrimaryNormalSolidColorBrush}"?BorderThickness="2"?Background="{DynamicResource?BackgroundSolidColorBrush}"SnapsToDevicePixels="True"Height="{StaticResource?ThumbWidth}"?Width="{StaticResource?ThumbWidth}"?CornerRadius="8"?Margin="-1,0,0,0"Name="PART_Border"?RenderTransformOrigin=".5,.5"></Border></Grid><ControlTemplate.Triggers><Trigger?Property="IsMouseOver"?Value="True"><Setter?Property="RenderTransform"?TargetName="PART_Border"><Setter.Value><ScaleTransform??ScaleX="1.2"?ScaleY="1.2"/></Setter.Value></Setter></Trigger></ControlTemplate.Triggers></ControlTemplate><ControlTemplate?x:Key="SliderHorizontal"?TargetType="{x:Type?Slider}"><Border?x:Name="border"BorderBrush="{TemplateBinding?BorderBrush}"?BorderThickness="{TemplateBinding?BorderThickness}"?Background="{TemplateBinding?Background}"?SnapsToDevicePixels="True"Padding="2"><Grid><Grid.RowDefinitions><RowDefinition?Height="Auto"/><RowDefinition?Height="Auto"?MinHeight="{TemplateBinding?MinHeight}"/><RowDefinition?Height="Auto"/></Grid.RowDefinitions><TickBar?x:Name="TopTick"?Fill="{TemplateBinding?Foreground}"?Height="4"?Margin="0,0,0,2"?Placement="Top"?Grid.Row="0"?Visibility="Collapsed"/><TickBar?x:Name="BottomTick"?Fill="{TemplateBinding?Foreground}"?Height="4"?Margin="0,2,0,0"?Placement="Bottom"?Grid.Row="2"?Visibility="Collapsed"/><Border?x:Name="TrackBackground"?Height="6.0"?Margin="5,0"?Grid.Row="1"?VerticalAlignment="center"><Canvas?Margin="-6,-1"><Rectangle?x:Name="PART_SelectionRange"?Fill="{DynamicResource?{x:Static?SystemColors.HighlightBrushKey}}"?Height="4.0"?Visibility="Hidden"/></Canvas></Border><Track?x:Name="PART_Track"?Grid.Row="1"><Track.DecreaseRepeatButton><RepeatButton?Command="{x:Static?Slider.DecreaseLarge}"?Style="{DynamicResource?RepeatButtonTransparent}"?Background="{DynamicResource?PrimaryNormalSolidColorBrush}"?Height="{StaticResource?RepeatButtonSize}"/></Track.DecreaseRepeatButton><Track.IncreaseRepeatButton><RepeatButton?Command="{x:Static?Slider.IncreaseLarge}"?Style="{StaticResource?RepeatButtonTransparent}"Background="{DynamicResource?LightSolidColorBrush}"?Height="{StaticResource?RepeatButtonSize}"/></Track.IncreaseRepeatButton><Track.Thumb><Thumb?x:Name="Thumb"?Focusable="False"?OverridesDefaultStyle="True"?Template="{StaticResource?SliderThumbHorizontal}"?VerticalAlignment="Center"/></Track.Thumb></Track></Grid></Border><ControlTemplate.Triggers><Trigger?Property="TickPlacement"?Value="TopLeft"><Setter?Property="Visibility"?TargetName="TopTick"?Value="Visible"/><Setter?Property="Template"?TargetName="Thumb"?Value="{StaticResource?SliderThumbHorizontal}"/><Setter?Property="Margin"?TargetName="TrackBackground"?Value="5,2,5,0"/></Trigger><Trigger?Property="TickPlacement"?Value="BottomRight"><Setter?Property="Visibility"?TargetName="BottomTick"?Value="Visible"/><Setter?Property="Template"?TargetName="Thumb"?Value="{StaticResource?SliderThumbHorizontal}"/><Setter?Property="Margin"?TargetName="TrackBackground"?Value="5,0,5,2"/></Trigger><Trigger?Property="TickPlacement"?Value="Both"><Setter?Property="Visibility"?TargetName="TopTick"?Value="Visible"/><Setter?Property="Visibility"?TargetName="BottomTick"?Value="Visible"/></Trigger><Trigger?Property="IsSelectionRangeEnabled"?Value="True"><Setter?Property="Visibility"?TargetName="PART_SelectionRange"?Value="Visible"/></Trigger><Trigger?Property="IsKeyboardFocused"?Value="True"><Setter?Property="Foreground"?TargetName="Thumb"?Value="{DynamicResource?PrimaryNormalSolidColorBrush}"/></Trigger></ControlTemplate.Triggers></ControlTemplate><ControlTemplate?x:Key="SliderThumbVerticalLeft"?TargetType="{x:Type?Thumb}"><Grid?HorizontalAlignment="Center"?UseLayoutRounding="True"?VerticalAlignment="Center"><Border?BorderBrush="{DynamicResource?PrimaryNormalSolidColorBrush}"?BorderThickness="2"?Background="{DynamicResource?BackgroundSolidColorBrush}"SnapsToDevicePixels="True"?UseLayoutRounding="True"Height="{StaticResource?ThumbWidth}"?Width="{StaticResource?ThumbWidth}"?CornerRadius="8"Name="PART_Border"?RenderTransformOrigin=".5,.5"></Border></Grid><ControlTemplate.Triggers><Trigger?Property="IsMouseOver"?Value="True"><Setter?Property="RenderTransform"?TargetName="PART_Border"><Setter.Value><ScaleTransform??ScaleX="1.2"?ScaleY="1.2"/></Setter.Value></Setter></Trigger></ControlTemplate.Triggers></ControlTemplate><ControlTemplate?x:Key="SliderThumbVerticalRight"?TargetType="{x:Type?Thumb}"><Grid?HorizontalAlignment="Center"?UseLayoutRounding="True"?VerticalAlignment="Center"><Border?BorderBrush="{DynamicResource?PrimaryNormalSolidColorBrush}"?BorderThickness="2"?Background="{DynamicResource?BackgroundSolidColorBrush}"SnapsToDevicePixels="True"Height="{StaticResource?ThumbWidth}"?Width="{StaticResource?ThumbWidth}"?CornerRadius="8"Name="PART_Border"?RenderTransformOrigin=".5,.5"></Border></Grid><ControlTemplate.Triggers><Trigger?Property="IsMouseOver"?Value="True"><Setter?Property="RenderTransform"?TargetName="PART_Border"><Setter.Value><ScaleTransform??ScaleX="1.2"?ScaleY="1.2"/></Setter.Value></Setter></Trigger></ControlTemplate.Triggers></ControlTemplate><ControlTemplate?x:Key="SliderThumbVerticalDefault"?TargetType="{x:Type?Thumb}"><Grid?HorizontalAlignment="Center"?UseLayoutRounding="True"?VerticalAlignment="Center"><Border?BorderBrush="{DynamicResource?PrimaryNormalSolidColorBrush}"?BorderThickness="2"?Background="{DynamicResource?BackgroundSolidColorBrush}"?SnapsToDevicePixels="True"?UseLayoutRounding="True"Height="{StaticResource?ThumbWidth}"?Width="{StaticResource?ThumbWidth}"?CornerRadius="8"?Margin="0,0,0,-1"Name="PART_Border"?RenderTransformOrigin=".5,.5"></Border></Grid><ControlTemplate.Triggers><Trigger?Property="IsMouseOver"?Value="True"><Setter?Property="RenderTransform"?TargetName="PART_Border"><Setter.Value><ScaleTransform??ScaleX="1.2"?ScaleY="1.2"/></Setter.Value></Setter></Trigger></ControlTemplate.Triggers></ControlTemplate><ControlTemplate?x:Key="SliderThumbVertical"?TargetType="{x:Type?Thumb}"><ControlTemplate.Resources><!--<Storyboard?x:Key="ThumbMouseOut"><DoubleAnimation?Storyboard.TargetName="PART_Border"Storyboard.TargetProperty="(UIElement.RenderTransform).(ScaleTransform.ScaleX)"To="1"?Duration="00:00:0.1"/><DoubleAnimation?Storyboard.TargetName="PART_Border"Storyboard.TargetProperty="(UIElement.RenderTransform).(ScaleTransform.ScaleY)"To="1"?Duration="00:00:0.1"/></Storyboard>--><Storyboard?x:Key="ThumbMouseOver"><DoubleAnimation?Storyboard.TargetName="PART_Border"Storyboard.TargetProperty="(UIElement.RenderTransform).(ScaleTransform.ScaleX)"From="1"To="1.2"?Duration="00:00:0.1"/><DoubleAnimation?Storyboard.TargetName="PART_Border"Storyboard.TargetProperty="(UIElement.RenderTransform).(ScaleTransform.ScaleY)"From="1"To="1.2"?Duration="00:00:0.1"/></Storyboard></ControlTemplate.Resources><Grid?HorizontalAlignment="Center"?UseLayoutRounding="True"?VerticalAlignment="Center"><Border?BorderBrush="{DynamicResource?PrimaryNormalSolidColorBrush}"?BorderThickness="2"?Background="{DynamicResource?BackgroundSolidColorBrush}"?SnapsToDevicePixels="True"?UseLayoutRounding="True"Height="{StaticResource?ThumbWidth}"?Width="{StaticResource?ThumbWidth}"?CornerRadius="8"?Margin="0,0,0,-1"Name="PART_Border"?RenderTransformOrigin=".5,.5"><Border.RenderTransform><ScaleTransform/></Border.RenderTransform></Border></Grid><ControlTemplate.Triggers><Trigger?Property="IsMouseOver"?Value="True"><Trigger.EnterActions><BeginStoryboard?x:Name="BeginStoryboard"?Storyboard="{StaticResource?ThumbMouseOver}"?/></Trigger.EnterActions><Trigger.ExitActions><StopStoryboard?BeginStoryboardName="BeginStoryboard"/><!--<BeginStoryboard?Storyboard="{StaticResource?ThumbMouseOut}"?/>--></Trigger.ExitActions></Trigger></ControlTemplate.Triggers></ControlTemplate><ControlTemplate?x:Key="SliderVertical"?TargetType="{x:Type?Slider}"><Border?x:Name="border"?BorderBrush="{TemplateBinding?BorderBrush}"?BorderThickness="{TemplateBinding?BorderThickness}"?Background="{TemplateBinding?Background}"?SnapsToDevicePixels="True"Padding="2"><Grid><Grid.ColumnDefinitions><ColumnDefinition?Width="Auto"/><ColumnDefinition?MinWidth="{TemplateBinding?MinWidth}"?Width="Auto"/><ColumnDefinition?Width="Auto"/></Grid.ColumnDefinitions><TickBar?x:Name="TopTick"?Grid.Column="0"?Fill="{TemplateBinding?Foreground}"?Margin="0,0,2,0"?Placement="Left"?Visibility="Collapsed"?Width="4"/><TickBar?x:Name="BottomTick"?Grid.Column="2"?Fill="{TemplateBinding?Foreground}"?Margin="2,0,0,0"?Placement="Right"?Visibility="Collapsed"?Width="4"/><Border?x:Name="TrackBackground"?HorizontalAlignment="center"?Margin="0,5"Width="6.0"><Canvas?Margin="-1,-6"><Rectangle?x:Name="PART_SelectionRange"?Fill="{DynamicResource?{x:Static?SystemColors.HighlightBrushKey}}"?Visibility="Hidden"?Width="4.0"/></Canvas></Border><Track?x:Name="PART_Track"?Grid.Column="1"><Track.DecreaseRepeatButton><RepeatButton?Command="{x:Static?Slider.DecreaseLarge}"Style="{StaticResource?RepeatButtonTransparent}"Background="{DynamicResource?PrimaryNormalSolidColorBrush}"?Width="{StaticResource?RepeatButtonSize}"/></Track.DecreaseRepeatButton><Track.IncreaseRepeatButton><RepeatButton?Command="{x:Static?Slider.IncreaseLarge}"?Style="{StaticResource?RepeatButtonTransparent}"Background="{DynamicResource?LightSolidColorBrush}"?Width="{StaticResource?RepeatButtonSize}"/></Track.IncreaseRepeatButton><Track.Thumb><Thumb?x:Name="Thumb"?Focusable="False"?OverridesDefaultStyle="True"?Template="{StaticResource?SliderThumbVertical}"?VerticalAlignment="Top"/></Track.Thumb></Track></Grid></Border><ControlTemplate.Triggers><Trigger?Property="TickPlacement"?Value="TopLeft"><Setter?Property="Visibility"?TargetName="TopTick"?Value="Visible"/><Setter?Property="Template"?TargetName="Thumb"?Value="{StaticResource?SliderThumbVertical}"/><Setter?Property="Margin"?TargetName="TrackBackground"?Value="2,5,0,5"/></Trigger><Trigger?Property="TickPlacement"?Value="BottomRight"><Setter?Property="Visibility"?TargetName="BottomTick"?Value="Visible"/><Setter?Property="Template"?TargetName="Thumb"?Value="{StaticResource?SliderThumbVertical}"/><Setter?Property="Margin"?TargetName="TrackBackground"?Value="0,5,2,5"/></Trigger><Trigger?Property="TickPlacement"?Value="Both"><Setter?Property="Visibility"?TargetName="TopTick"?Value="Visible"/><Setter?Property="Visibility"?TargetName="BottomTick"?Value="Visible"/></Trigger><Trigger?Property="IsSelectionRangeEnabled"?Value="True"><Setter?Property="Visibility"?TargetName="PART_SelectionRange"?Value="Visible"/></Trigger></ControlTemplate.Triggers></ControlTemplate><Style?TargetType="{x:Type?Slider}"?BasedOn="{StaticResource?ControlBasicStyle}"><Setter?Property="Stylus.IsPressAndHoldEnabled"?Value="False"/><Setter?Property="Background"?Value="Transparent"/><Setter?Property="BorderBrush"?Value="Transparent"/><Setter?Property="Cursor"?Value="Hand"/><Setter?Property="Foreground"?Value="{DynamicResource?PrimaryNormalSolidColorBrush}"/><Setter?Property="Template"?Value="{StaticResource?SliderHorizontal}"/><Style.Triggers><Trigger?Property="Orientation"?Value="Vertical"><Setter?Property="Template"?Value="{StaticResource?SliderVertical}"/></Trigger><!--<Trigger?Property="IsEnabled"?Value="False"><Setter?Property="Opacity"?Value="{StaticResource?EnabledOpacity}"?/></Trigger>--></Style.Triggers></Style></ResourceDictionary>

2)Styles.Slider.xaml 代碼如下;

<WrapPanel?Margin="0,10"><Slider?Width="200"/><Slider?Width="200"?Value="50"?Maximum="100"??Margin="10,0"/><Slider?Width="200"?Value="50"?Maximum="100"?IsEnabled="False"/></WrapPanel>

Nuget[1]Install-Package WPFDevelopers.Minimal

06427f713a147ec038891624927c754b.gif

[2][3]

參考資料

[1]

Nuget: https://www.nuget.org/packages/WPFDevelopers.Minimal/

[2]

GitHub: https://github.com/WPFDevelopersOrg

[3]

Gitee: https://gitee.com/WPFDevelopersOrg

本文來自互聯網用戶投稿,該文觀點僅代表作者本人,不代表本站立場。本站僅提供信息存儲空間服務,不擁有所有權,不承擔相關法律責任。
如若轉載,請注明出處:http://www.pswp.cn/news/286435.shtml
繁體地址,請注明出處:http://hk.pswp.cn/news/286435.shtml
英文地址,請注明出處:http://en.pswp.cn/news/286435.shtml

如若內容造成侵權/違法違規/事實不符,請聯系多彩編程網進行投訴反饋email:809451989@qq.com,一經查實,立即刪除!

相關文章

SQL 通過syscolumns.xtype動態查找指定數據類型字段所包含的數據

表中太多列&#xff0c;只想查找某些比如&#xff0c;數據類型為varchar的字段的數據。 思路&#xff1a;1、先獲取列名&#xff1a; select * from syscolumns where id(select max(id) from sysobjects where xtypeu and nametest_A)2、查找指定數據類型&#xff0c;xtype就…

css案例學習之span邊框實現的特殊效果

bottom left bottom right top left top right 配合顏色來使用&#xff0c;實現一些神奇的效果 #menu a span{height:0;width:0;/*border-top:solid 6px #fff;border-left:solid 6px #f90;*//*border-top:solid 6px #fff;border-right:solid 6px #f90;*//*border-bottom:solid …

網頁版消消樂快速實現,無代碼嗎iVX 真那么簡單?

最近沒事想做個消消樂&#xff0c;然后聽說 iVX 免費了&#xff0c;所以又跑去看看 iVX 了&#xff0c;就用一個無代碼來看看消消樂怎么玩吧。 首先咱們打開 iVX 的在線編輯器&#xff1a;https://editor.ivx.cn/ 隨后咱們不需要游戲類型也可以制作一個消消樂游戲&#xff1a…

虛擬化記錄--No.1

近段時間&#xff0c;會花些時間做關于系統虛擬化的工作。所以會做一些這樣的記錄。相信很多東西不會特別成體系&#xff0c;每個人因為關注的不同而記錄和學習的重點也會有比較大的出入。這篇是NO.1(注意不是TOP 1 )真的是由于對于ORACLE很有感覺&#xff0c;所以上手去做的也…

C語言試題三之計算并輸出 s=1+(1+2^(0.5))+(1+2^(0.5)+3^(0.5))+…+(1+2^(0.5)+3^(0.5)+…+n^(0.5))

??個人主頁:個人主頁 ??系列專欄:C語言試題200例目錄 ??推薦一款刷算法、筆試、面經、拿大公司offer神器 ?? 點擊跳轉進入網站 ?作者簡介:大家好,我是碼莎拉蒂,CSDN博客專家(全站排名Top 50),阿里云博客專家、51CTO博客專家、華為云享專家 1 、題目 請編寫函…

C# Java間進行RSA加密解密交互

這里&#xff0c;講一下RSA算法加解密在C#和Java之間交互的問題&#xff0c;這兩天糾結了很久&#xff0c;也看了很多其他人寫的文章&#xff0c;頗受裨益&#xff0c;但沒能解決我的實際問題&#xff0c;終于&#xff0c;還是被我搗鼓出來了。 首先&#xff0c;介紹一下寫這代…

【Microstation】三維建模基礎及軟件入門到精通實驗教程目錄

文章目錄1. 專欄簡介2. 專欄地址3. 專欄目錄1. 專欄簡介 MicroStation是一款非常不錯的二維和三維設計軟件&#xff0c;由奔特力&#xff08;Bentley&#xff09;工程軟件系統有限公司開發的一款軟件。在CAD設計上該軟件是和AutoCAD是齊名的軟件&#xff0c;其專用的文件格式是…

無代碼iVX編程實現簡單魂斗羅

首先咱們打開 iVX 的在線編輯器&#xff1a;https://editor.ivx.cn/ 隨后咱們選擇2D游戲類型制作一個簡單魂斗羅游戲&#xff1a; 隨后咱們開始創建一個物理世界&#xff0c;不并且在物理世界之下創建一個一個圖片添加物體屬性&#xff0c;在物體屬性中更改對應的屬性內容&am…

【ArcGIS遇上Python】ArcGIS Python批處理入門到精通實用教程目錄

文章目錄1. 專欄簡介2. 專欄地址3. 專欄目錄1. 專欄簡介 Python語言是目前很火熱的語言&#xff0c;極大的促進了人工智能發展。你知道在ArcGIS中也會有python的身影嗎&#xff1f;事實上&#xff0c;在ArcGIS中使用Python會起到事半功倍的效果&#xff0c;大大提高工作效率&am…

Android之提示javax.net.ssl.SSLHandshakeException: Chain validation failed

1、問題 個別手機用OkDownload下載Bilibili網址視頻的時候下載失敗,但是大部分手機下載沒問題。 在繼承的DownloadListener4WithSpeed類的重寫taskEnd函數里面。 override fun taskEnd(task: DownloadTask, cause: EndCause, realCause: Exception?, taskSpeed: SpeedCalcu…

c# XML和實體類之間相互轉換(序列化和反序列化)

using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.IO; using System.Data; using System.Xml; using System.Xml.Serialization; /// <summary>/// Xml序列化與反序列化/// </summary>public class XmlUtil {…

深入探究MinimalApi是如何在Swagger中展示的

前言之前看到技術群里有同學討論說對于MinimalApi能接入到Swagger中感到很神奇,加上Swagger的數據本身是支持OpenApi2.0和OpenApi3.0使得swagger.json成為了許多接口文檔管理工具的標準數據源。ASP.NET Core能夠輕松快速的集成Swagger得益于微軟對OpenApi的大力支持&#xff0c…

語句的輸入、輸出

一、C#基礎 1、項目后綴&#xff1a; .config——配置文件&#xff08;存放配置參數文件&#xff09; .csproj——項目文件&#xff08;管理文件項&#xff09; .sln——解決方案文件&#xff08;管理項目&#xff09; .cs——源文件&#xff08;程序代碼&#xff09; 2、函數四…

Samba平臺搭建和用戶自行修改密碼環境搭建筆記

Samba 平臺搭建和用戶自行修改密碼環境搭建筆記系統&#xff1a;CentOS release 6.5 (Final)x86_64軟件: samba #服務端samba-client #客戶端samba-common #通用工具和庫Apache:httpdWeb: changepassword-0.9.tar.gz #需 GCC 編譯源碼包&#…

Android使用C/C++來保存密鑰

Android使用C/C來保存密鑰本文主要介紹如何通過native方法調用取出密鑰&#xff0c;以替代原本直接寫在Java中&#xff0c;或寫在gradle腳本中的不安全方式。為什么要這么做 如果需要在本地存儲一個密鑰串&#xff0c;典型的方式有 1. 直接寫在java source code中 2. 寫在gradl…

無代碼iVX編程實現簡單跳躍超級瑪麗游戲

首先咱們打開 iVX 的在線編輯器&#xff1a;https://editor.ivx.cn/ 隨后咱們選擇2D游戲類型制作一個簡單跳躍游戲&#xff1a; 接下來創建幾個圖片&#xff0c;并且添加物體&#xff0c;如圖所示&#xff1a; 在此需要更改對應稱重地面的阻尼值&#xff0c;讓其能夠緩慢降落…

【三維激光掃描】實驗01:環境搭建CAD2014+StonexSiScan軟件安裝

目 錄 一、CAD2014簡體中文版安裝1. 安裝過程2. 激活過程二、Si-Scan安裝1. 主程序安裝2. 驅動安裝一、CAD2014簡體中文版安裝 1. 安裝過程 雙擊安裝包:AutoCAD_2014_Simplified_Chinese_Win_64bit_dlm.sfx.exe,進行自解壓。 解壓完成后,如下圖所示,點擊【安裝】。 接受許…

C# 11 新特性:原始字符串

之前我們經常需要使用 string 類型定義字符串文本&#xff0c;字符串文本用一對雙引號括起來表示&#xff1a;var str "Hello MyIO";字符串可包含任何字符文本&#xff0c;但是有些字符需要轉義才能表示&#xff0c;比如雙引號要轉義成\"&#xff1a;var str …

File,FileInfo,Directory,DirectoryInfo

兩者的共同點&#xff1a; 一&#xff1a;都用于典型的操作&#xff0c;如復制、移動、重命名、創建、打開、刪除和追加到文件 二&#xff1a;默認情況下&#xff0c;將向所有用戶授予對新文件的完全讀/寫訪問權限。 兩者的區別&#xff1a; File類是靜態類&#xff0c;由…

C語言試題四之計算并輸出3到n之間所有素數的平方根之和

??個人主頁:個人主頁 ??系列專欄:C語言試題200例目錄 ??推薦一款刷算法、筆試、面經、拿大公司offer神器 ?? 點擊跳轉進入網站 ?作者簡介:大家好,我是碼莎拉蒂,CSDN博客專家(全站排名Top 50),阿里云博客專家、51CTO博客專家、華為云享專家 1、題目 請編寫函數…